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
50.61k stars 3.14k forks source link

Not able to disable python language support #21066

Closed geohuz closed 2 days ago

geohuz commented 3 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

with the following user configuration:

  "languages": {
    "Python": {
      "tab_size": 2,
      "enable_language_server": false
    }
  }

The pyright and pyflake still loads. I don't have type information for my project, can I disable pyright for type checking? I've tested the following options but failed:

pyright.disableLanguageServices: true

  "lsp": {
    "pyright": {
      "python.analysis": {
        "typeCheckingMode": "off"
      }
    }
  }

By using the menu: open settings

None of them takes effect.

Environment

Zed: v0.162.5 (Zed) OS: macOS 15.1.1 Memory: 16 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
notpeter commented 3 days ago

I am not able to reproduce. When I add this to my settings, restart Zed and open a python file there are no pyright subprocess running.

  "languages": {
    "Python": {
      "enable_language_server": false
    }
  }

Do you perhaps have any extensions installed (BasedPyright, Python LSP, etc)?

geohuz commented 2 days ago

Ok, the problem is actually with the remote editing, I've ssh into the remote machine and changed the .zed/settings.json then no pyright

notpeter commented 2 days ago

Ah, gotcha. Glad you figured it out.