LuaLS / LuaLS/lua-language-server
[FEATURE-REQUEST] Configuration option to disable didRenameFiles prompt
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at lua-language-server/script/core/modifyRequirePath.lua:67 and trace how configuration options are defined and read. Add a configuration choice for the didRenameFiles prompt, then verify that disabling it allows the refactoring to proceed silently while the existing prompt remains available by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100