Skip to content

fix: use the same new conf of metals.ls vscode #986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

angelozerr
Copy link
Contributor

fix: use the same new conf of metals.ls vscode

@tribbloid LSP4IJ used an out of date Server Configuration settings. This PR fixes that and now semantic tokkens and inlay hint should work:

image

To test that:

  • install nighty build
  • update Server Configuration

image

with this content:

{
  "metals": {
    "disableReleaseNotes": false,
    "serverVersion": "1.5.2",
    "serverProperties": [
      "-Xmx2G",
      "-XX:+UseZGC",
      "-XX:ZUncommitDelay=30",
      "-XX:ZCollectionInterval=5",
      "-XX:+IgnoreUnrecognizedVMOptions"
    ],
    "coursierMirror": "",
    "excludedPackages": [],
    "inlayHints": {
      "inferredTypes": {
        "enable": true
      },
      "implicitArguments": {
        "enable": true
      },
      "implicitConversions": {
        "enable": true
      },
      "typeParameters": {
        "enable": true
      },
      "hintsInPatternMatch": {
        "enable": true
      }
    },
    "javaHome": "",
    "metalsJavaHome": "",
    "javaVersion": "17",
    "sbtScript": "",
    "millScript": "",
    "mavenScript": "",
    "gradleScript": "",
    "scalafmtConfigPath": "",
    "scalafixConfigPath": "",
    "scalafixRulesDependencies": [],
    "bloopVersion": "",
    "bloopJvmProperties": [],
    "bloopSbtAlreadyInstalled": true,
    "customRepositories": [],
    "superMethodLensesEnabled": true,
    "enableStripMarginOnTypeFormatting": true,
    "enableIndentOnPaste": false,
    "verboseCompilation": true,
    "enableSemanticHighlighting": true,
    "testUserInterface": "Test Explorer",
    "customProjectRoot": "",
    "fallbackScalaVersion": "automatic",
    "javaFormat": {
      "eclipseConfigPath": "",
      "eclipseProfile": ""
    },
    "scalaCliLauncher": "",
    "suggestLatestUpgrade": false,
    "defaultBspToBuildTool": false,
    "autoImportBuilds": "off"
  }
}

Signed-off-by: azerr <azerr@redhat.com>
@angelozerr angelozerr added the bug Something isn't working label Apr 22, 2025
@angelozerr angelozerr added this to the 0.13.0 milestone Apr 22, 2025
@angelozerr angelozerr self-assigned this Apr 22, 2025
@angelozerr angelozerr merged commit 578c9c3 into redhat-developer:main Apr 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant