LuaLS / LuaLS/lua-language-server

目录重命名, 移动目录, 在自动修改req路径时, 新路径会出现多余字符, 或者不修改

Open
#2,593 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Other

Expected Behaviour

原目录
根目录
-- 子目录
-- 文件名

新目录
-- 子目录
-- 文件名

原引用
include '原目录.子目录.文件名'

重命名后应该修改为
include '新目录.子目录.文件名'

实际修改结果
include '新目录.子目录F.文件名'

问题是, 子目录名称总会带个随机小尾巴
而且有些文件的引用并没有修改

Actual Behaviour

上面写完了

Reproduction steps

上面写完了

Additional Notes

No response

Log File

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are identified in the issue. Start by reproducing the directory rename in the Windows Visual Studio Code extension setup, then trace the automatic include-path update and verify that renamed directories produce exact paths and that all affected references are updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.