Skip to content
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

LSP.sublime-settings does not recognize lsp_code_actions_on_save configuration #2434

Open
skytwosea opened this issue Mar 18, 2024 · 2 comments

Comments

@skytwosea
Copy link

Related to issue "Plugin does not reflect lsp_code_actions_on_save settings #2421"

Similar to @hrasekj : I have my LSP.sublime-settings configured to not fix or organize on save, but fixAll is being applied regardless and I can't figure out how to turn it off. My user settings are being ignored.
Sublime Text Build 4169 on Kubuntu; x86_64; kernel 5.15.0-100-generic; zsh

{
    // General settings
    "lsp_format_on_save": false,
    "lsp_code_actions_on_save": {
      "source.fixAll": false, // NOT BEING RECOGNIZED
      "source.organizeImports": false,
    },
    "show_inlay_hints": false,
    "semantic_highlighting": true,

    // Language server configurations
    "clients": {
        "zig": {
            // the startup command -- what you would type in a terminal
            "command": ["/home/vesper/.zls/zls"],
            // enable this configuration
            "enabled": true,
            // the selector that selects which type of buffers this language server attaches to
            "selector": "source.zig",
        }
    }
}
@rchl
Copy link
Member

rchl commented Mar 19, 2024

Can you post the output of LSP: Troubleshoot server?

@skytwosea
Copy link
Author

skytwosea commented Mar 23, 2024

Hello @rchl , apologies for the delay. The output of LSP: Troubleshoot server is below:
`# Troubleshooting: zig

Version

  • LSP: 1.29.0
  • Sublime Text: 4169

Server Test Run

  • exit code: 0
  • output
info : ( main ): Starting ZLS 0.12.0-dev.110+5973239 @ '/home/vesper/.zls/zls'
info : ( main ): No config file zls.json found.
info : (server): set config option 'builtin_path' to '/home/vesper/.cache/zls/builtin.zig'
info : (server): set config option 'zig_lib_path' to '/home/vesper/.zig/zig-linux-x86_64-0.12.0-dev.3212+40e64245f/lib'
info : (server): set config option 'zig_exe_path' to '/usr/bin/zig'
info : (server): set config option 'build_runner_path' to '/home/vesper/.cache/zls/build_runner_master.zig'
info : (server): set config option 'global_cache_path' to '/home/vesper/.cache/zls'
info : (server): set config option 'build_runner_global_cache_path' to '/home/vesper/.cache/zig'

Server Configuration

  • command
[
  "/home/vesper/.zls/zls"
]
  • shell command
/home/vesper/.zls/zls
  • selector
source.zig
  • priority_selector
source.zig
  • init_options
{}
  • settings
{}
  • env
{}

Active view

  • File name
/home/vesper/Dropbox/dev/languages/zig/school_exercises/assOne/main.zig
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": true, 
  "syntax": "Packages/Zig Language/Syntaxes/Zig.sublime-syntax"
}
  • base scope
source.zig

Project / Workspace

  • folders
[]
  • is project: False

LSP configuration

{
  "clients": {
    "zig": {
      "command": [
        "/home/vesper/.zls/zls"
      ], 
      "enabled": true, 
      "selector": "source.zig"
    }
  }, 
  "lsp_code_actions_on_save": {
    "source.fixAll": false, 
    "source.organizeImports": false
  }, 
  "lsp_format_on_save": false, 
  "semantic_highlighting": true, 
  "show_inlay_hints": false
}

System PATH

  • /usr/local/sbin
  • /usr/local/bin
  • /usr/sbin
  • /usr/bin
  • /sbin
  • /bin
  • /usr/games
  • /usr/local/games
  • /snap/bin`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants