Fix Indent affecting lines incorrectly
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- lua, typescript
- 领域
- tooling
调研方向
首先,在启用 Fix Indent 的 VSCode Lua extension 中重现报告的行为:在 Lua 函数调用中的参数前换行,并将其与多行字符串进行比较。跟踪缩进处理的入口点,并为这两种情况添加覆盖;完成的标准是参数仍保持缩进,而字符串续行不会被错误地缩进。
由索引模型根据 Issue 内容生成。
描述
Which OS are you using?
Windows
Expected Behaviour
Writing local ret = Button:new(text, x, y) and then putting in a new line before text, to change the arguments to a vertical list, un-indents at text. That is, the result is
Button:new(
text, x, y)
Actual Behaviour
The result should be
Button:new(
text, x, y)
Reproduction steps
- Write a function with an argument
- Break before the argument
Additional Notes
The behaviour is as expected if Fix Indent is off. However I believe the point is for other cases like strings, to get
"I went to a function
the other day"
and not
"I went to a function
the other day"
I'm not exactly sure what the point of the option is. I assume it doesn't apply to every time vscode indents code, but I think the set it's supposed to apply to probably shouldn't apply to the function(arg) case.
Log
No response
- 主要语言
- TypeScript
- 星标
- 216
- 派生
- 64
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LuaLS/vscode-lua 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
LuaLS/vscode-lua#189 ·
-
难度 5/5 一周以上 新手友好度 42/100
LuaLS/vscode-lua#186 ·
-
难度 3/5 1-2 天 新手友好度 35/100
LuaLS/vscode-lua#175 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
LuaLS/vscode-lua#172 ·
-
难度 4/5 3-5 天 新手友好度 35/100
LuaLS/vscode-lua#170 · 1 条评论 ·
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 73/100
ajv-validator/ajv#2689 ·
-
[Bug]: IME confirmation Enter can submit the SSH port-forward dialog可能已有人在做 @seijikohara 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
home-assistant/frontend#55323 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 72/100
lingdojo/kana-dojo#33188 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
self-driving
难度 1/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复