sublimelsp / LSP-lua

Convenience package with a lua language server bundled
MIT License
24 stars 5 forks source link

Cannot mark variable as global, "Your client does not support modifying settings from the server side" #23

Closed jamesWalker55 closed 3 years ago

jamesWalker55 commented 3 years ago

I have a sublime project loaded, and I'm trying to mark a variable named reaper as a global variable. After clicking on Mark 'reaper' as defined global, the reaper variable is marked a global variable until I restart Sublime Text. Once I restart the Sublime Text, reaper is not marked as global anymore. The sublime-project file never gets modified by LSP.

The following message is displayed in the log panel after running the code action:

LSP-lua: Your client does not support modifying settings from the server side, please manually modify the following settings:
`Lua.diagnostics.globals`: add element `"reaper"` ;

Here is my sublime-project file:

{
    "folders": [
        {
            "path": "D:\\Programming\\reaper-scripting"
        }
    ],
    "build_systems": [
        {
            "name": "Build index xml",
            "cmd": [
                "python",
                "D:\\Programming\\reapack-indexer\\cli.py",
                // "echo",
                "${folder}"
            ],
            "working_dir": "${folder}"
        }
    ]
}