grafana / vscode-jsonnet

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

v0.6.0 Seems to ignore configurations #41

Open Kidswiss opened 4 months ago

Kidswiss commented 4 months ago

Hi

I've updated the extensions to v0.6.0 and noticed that the PadArrays parameter doesn't work anymore.

Output with v0.6.0:

time="2024-03-06T10:18:41+01:00" level=info msg="Starting the language server"
time="2024-03-06T10:18:41+01:00" level=info msg="Initializing jsonnet-language-server version 0.13.1"
time="2024-03-06T10:18:41+01:00" level=info msg="Reading stdlib"

Output after downgrading to v0.5.1:


time="2024-03-06T10:19:04+01:00" level=info msg="Starting the language server"
time="2024-03-06T10:19:04+01:00" level=info msg="Initializing jsonnet-language-server version 0.13.1"
time="2024-03-06T10:19:04+01:00" level=info msg="Reading stdlib"
time="2024-03-06T10:19:04+01:00" level=info msg="configuration updated: {ResolvePathsWithTanka:false JPaths:[/Users/simonbeck/repos/appcat/component-appcat/lib/ /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/commodore /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/kapitan] ExtVars:map[] ExtCode:map[] FormattingOptions:{Indent:2 MaxBlankLines:2 StringStyle:1 CommentStyle:1 PrettyFieldNames:true PadArrays:true PadObjects:true SortImports:true UseImplicitPlus:true StripEverything:false StripComments:false StripAllButComments:false} EnableEvalDiagnostics:true EnableLintDiagnostics:true}"
time="2024-03-06T10:19:04+01:00" level=info msg="configuration updated: {ResolvePathsWithTanka:false JPaths:[/Users/simonbeck/repos/appcat/component-appcat/lib/ /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/commodore /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/kapitan] ExtVars:map[] ExtCode:map[] FormattingOptions:{Indent:2 MaxBlankLines:2 StringStyle:1 CommentStyle:1 PrettyFieldNames:true PadArrays:true PadObjects:true SortImports:true UseImplicitPlus:true StripEverything:false StripComments:false StripAllButComments:false} EnableEvalDiagnostics:true EnableLintDiagnostics:true}"
time="2024-03-06T10:19:05+01:00" level=info msg="configuration updated: {ResolvePathsWithTanka:false JPaths:[/Users/simonbeck/repos/appcat/component-appcat/lib/ /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/commodore /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/kapitan] ExtVars:map[] ExtCode:map[] FormattingOptions:{Indent:2 MaxBlankLines:2 StringStyle:1 CommentStyle:1 PrettyFieldNames:true PadArrays:true PadObjects:true SortImports:true UseImplicitPlus:true StripEverything:false StripComments:false StripAllButComments:false} EnableEvalDiagnostics:true EnableLintDiagnostics:true}"
time="2024-03-06T10:19:05+01:00" level=info msg="configuration updated: {ResolvePathsWithTanka:false JPaths:[/Users/simonbeck/repos/appcat/component-appcat/lib/ /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/commodore /Users/simonbeck/Library/Python/3.10/lib/python/site-packages/kapitan] ExtVars:map[] ExtCode:map[] FormattingOptions:{Indent:2 MaxBlankLines:2 StringStyle:1 CommentStyle:1 PrettyFieldNames:true PadArrays:true PadObjects:true SortImports:true UseImplicitPlus:true StripEverything:false StripComments:false StripAllButComments:false} EnableEvalDiagnostics:true EnableLintDiagnostics:true}"

After downgrading the arrays are padded correctly again.