zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
33.1k stars 1.59k forks source link

Ability to turn off the language server #11007

Open krstp opened 1 week ago

krstp commented 1 week ago

Check for existing issues

Describe the feature

I would like to be able to turn off the language server at will, so no red underlinings are visible.

There are libraries such as KFP (python) that have virtual component attributes assignments, such as Input and Output, which are not functional in traditional pythonic sense, but require final VertexAI pipeline compilation and submission. As such, multiple functions ( multiple pipeline components with multiple attributes) get red underlying as the code is not exactly correct in local environments. In such cases underlinings are really annoying when reading the code.

I would like to have ability to turn off the language server from CMD+SHIFT+P. Currently, there is no such ability.

At the moment, I can only go to settings.json (CMD+,) and mark global language setting as false, such as:

"enable_language_server": false, //true,

There should be an option to be able to turn off language filter at will, without the need of having to modify the global settings file.

maxdeviant commented 1 week ago

With https://github.com/zed-industries/zed/issues/10906 you'll be able to disable individual languages servers via the settings.

krstp commented 1 week ago

This is exactly what I am NOT asking about. Please re-read and let me know if still not clear.

What I am asking for is at-will ability to turn on-off language server dynamically from tab-menu prompt. What you propose, the way I see settings, it is a global static definition.

maxdeviant commented 1 week ago

This is exactly what I am NOT asking about. Please re-read and let me know if still not clear.

First off, please tone it down.

I'm just trying to make you aware of some new developments that certainly sound (at least to me) like they would potentially address your use case.

What I am asking for is at-will ability to turn on-off language server dynamically from tab-menu prompt. What you propose, the way I see settings, it is a global static definition.

The enable_language_server setting disables all language servers.

The language_servers setting allows you to specifically pick and choose which language servers to run for a given language. This can also be placed in your project's .zed/settings.json in order to scope that decision just to a particular project.

Is it the case that you are wanting to be able to toggle a given language server on and off within a particular project?