Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Multiple Godot projects in one window

未关闭
#32 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
godot
领域
game-dev, tooling

调研方向

首先跟踪在一个 Zed 窗口中打开多个 Godot 项目时如何使用 Godot language server。复现 issue 中描述的双项目场景,并确定是否可以将单独的实例与项目路径匹配,或者是否应跳过无关文件。完成的标准是,来自另一个项目的文件不再产生缺少类型或找不到文件的诊断。

由索引模型根据 Issue 内容生成。

描述

upstream

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.

  1. Add two Godot projects to a single Zed window.
  2. Open one of them in Godot for the language server to start.
  3. Open a file from the other project in Zed.
  4. 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GDQuest/zed-gdscript 的其他 Issue

查看 GDQuest/zed-gdscript 的全部 Issue

相似的 Issue

更多 Game Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。