Multiple Godot projects in one window
还没有人认领这个 Issue。
评估
调研方向
首先跟踪在一个 Zed 窗口中打开多个 Godot 项目时如何使用 Godot language server。复现 issue 中描述的双项目场景,并确定是否可以将单独的实例与项目路径匹配,或者是否应跳过无关文件。完成的标准是,来自另一个项目的文件不再产生缺少类型或找不到文件的诊断。
由索引模型根据 Issue 内容生成。
描述
I'm submitting a...
- Bug report.
- Feature request.
Bug report
What is the current behavior?
If you open multiple Godot projects in one Zed window it uses the connected Godot instance for files from all projects, resulting in file not found errors in Godot and type not found in Zed diagnostics.
What is the expected behavior?
Ideally, Godot language server would handle this, but given that's not under your control here maybe only operate on files in the first project in the list in Zed?
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
- Add two Godot projects to a single Zed window.
- Open one of them in Godot for the language server to start.
- Open a file from the other project in Zed.
- See errors reported for missing types.
Feature request
Describe the problem you're trying to solve.
I have been working on a selection of prototypes/demos in Godot and often have extra projects open for reference besides the main one I'm working on at the time, but this results in errors as detailed above.
Tell us which solutions you've explored, the solution you would pick, and why you think it would be the best for everyone.
Aside from avoiding the errors from multiple projects, it would be nice if this extension could handle multiple projects each connected to a separate running Godot instance, but I am not sure how you would go about this.
I think you'd have to detect running Godot instances and check the project paths against them, if that's even provided by the Godot LSP, to direct file diagnostic requests to the correct Godot instance or skip it if no matching instance is found.
Having the dynamic Godot instance detection could also be useful beyond this as it would allow you to run Godot on different ports without reconfiguring the plugin in Zed.
Other
Other information
I'm primarily reporting the issues I've faced with the multiple projects and don't expect multiple to be supported, but thought it would be good to document it all :) I'd love to see it at least filtering out files not a part of the main project though!
- 主要语言
- Tree-sitter Query
- 星标
- 209
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GDQuest/zed-gdscript 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 63/100
GDQuest/zed-gdscript#98 · 6 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
GDQuest/zed-gdscript#97 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
GDQuest/zed-gdscript#78 · 6 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
GDQuest/zed-gdscript#71 · 5 条评论 ·
-
upstream
难度 4/5 3-5 天 新手友好度 35/100
GDQuest/zed-gdscript#69 · 10 条评论 · 1 个 reaction ·
查看 GDQuest/zed-gdscript 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Far-Beyond-Pulsar/Pulsar-Native#988 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
-
A-Game-Objects A-Mapping P-Major
难度 2/5 1-3 小时 新手友好度 72/100
goonstation/goonstation#27983 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
Facepunch/garrysmod-issues#7073 ·