sublimelsp / LSP

Client implementation of the Language Server Protocol for Sublime Text

Home Page:https://lsp.sublimetext.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSP.sublime-settings does not recognize lsp_code_actions_on_save configuration

skytwosea opened this issue · comments

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",
        }
    }
}

Can you post the output of LSP: Troubleshoot server?

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`