lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

[FEATURE-REQUEST] Configuration option to disable didRenameFiles prompt

Open stefanwatt opened this issue 1 year ago • 1 comments

When the language server is notified that a file rename has occured you are always prompted with "Do you want to modify the require path?"

I find that to be bothersome and would prefer if the refactoring would happen silently. As far as I can tell there's currently no configuration option for this.

The responsible code seems to be in lua-language-server/script/core/modifyRequirePath.lua:67:

    local _, index = client.awaitRequestMessage('Info', lang.script.WINDOW_MODIFY_REQUIRE_PATH, {
        lang.script.WINDOW_MODIFY_REQUIRE_OK
    })

Would it be possible to simply add a check for a config option here?

stefanwatt avatar Aug 11 '24 00:08 stefanwatt