grafana / vscode-jsonnet

Full code support (formatting, highlighting, navigation, etc) for Jsonnet
Apache License 2.0
66 stars 7 forks source link

folder settings ignored #39

Open schmurfy opened 4 months ago

schmurfy commented 4 months ago

in my currently open folder I have a .vscode/settings.json file with:

{
  "jsonnet.languageServer.tankaMode": false,
  "jsonnet.languageServer.jpath": [
    "/test",
    "."
  ]
}

(the settings ui correctly shows these values)

But when I save it the content is ignored, here is the jsonnet language server output:

time="2024-02-26T11:30:32+01:00" level=info msg="configuration updated: {ResolvePathsWithTanka:false JPaths:[] ExtVars:map[] ExtCode:map[] FormattingOptions:{Indent:2 MaxBlankLines:2 StringStyle:1 CommentStyle:1 PrettyFieldNames:true PadArrays:false PadObjects:true SortImports:true UseImplicitPlus:true StripEverything:false StripComments:false StripAllButComments:false} EnableEvalDiagnostics:true EnableLintDiagnostics:false}"

I have the latest jsonnet language server (0.13.1) and the vscode extension is up to date too (v0.5.1)

if I move the settings in my workspace settings it works.