godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.55k stars 163 forks source link

Open the script document to add a language switch #617

Closed lionet1224 closed 6 months ago

lionet1224 commented 7 months ago

Godot version

4.2.1

VS Code version

1.86.2

Godot Tools VS Code extension version

2.0.0

System information

macOS 14.2.1 (23C71)

Problem statement

Open the script document to add a language switch

Proposed solution

Open the script document to add a language switch

Calinou commented 7 months ago

Open the script document to add a language switch

Can you describe what you want in detail, or post screenshots/mockups of what it's supposed to do? I don't understand.

Rrenovation commented 7 months ago

@Calinou I guess what he wanted to express was Add support for documentation in other languages

lionet1224 commented 6 months ago

@Calinou I guess what he wanted to express was Add support for documentation in other languages 我猜他想表达的是添加对其他语言文档的支持

Yes, that's exactly what I meant.

DaelonSuzuka commented 6 months ago

As mentioned in the linked issue:

The documentation is provided 100% by the language server, which runs in your Godot Editor.

A cursory inspection reveals that changing the editor's language DOES change the language of the docs when Godot itself displays them, so in theory that information should be accessible to the language server.

It should be possible to modify the language server to either return the docs in the editor's selected language, or to allow the language client(this extension) to specify the desired language for the docs.

I would recommend opening a feature proposal to see if anybody else is interested in this improvement.

In other words, it's not possible for this extension to control the language the docs are presented in. I would recommend opening a feature proposal to see who else is interested in this improvement.