Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft Zed extension for Air #195

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Draft Zed extension for Air #195

wants to merge 1 commit into from

Conversation

DavisVaughan
Copy link
Collaborator

@DavisVaughan DavisVaughan commented Jan 21, 2025

It seems to work but I haven't tested the download bit yet

Point Install Dev Extension at this zed/ directory and it figures out the rest
https://zed.dev/docs/extensions/developing-extensions#developing-an-extension-locally

You also need

{
  "languages": {
    "R": {
      "language_servers": ["air"]
    }
  }
}

Seeing this in the main zed logs

2025-01-21T16:43:49.356164-05:00 [WARN] unhandled capability registration: Registration { id: "49284ae4-dd65-4b77-9b45-a19d45775a4a", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("editor.insertSpaces")}) }
2025-01-21T16:43:49.356315-05:00 [WARN] unhandled capability registration: Registration { id: "e9811741-5b28-4b17-97dc-819826d1b42e", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("editor.indentSize")}) }
2025-01-21T16:43:49.356445-05:00 [WARN] unhandled capability registration: Registration { id: "abf5dcbc-5d1d-4494-9670-c11678f3405b", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("editor.tabSize")}) }
2025-01-21T16:43:49.356576-05:00 [WARN] unhandled capability registration: Registration { id: "7180a94d-3388-4f9c-8681-dfe59cdbda3f", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("positron.r.diagnostics.enable")}) }
2025-01-21T16:43:49.356706-05:00 [WARN] unhandled capability registration: Registration { id: "99ccae7b-f9fe-4b67-979a-3c4c6b6ec920", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("air.logLevel")}) }
2025-01-21T16:43:49.356838-05:00 [WARN] unhandled capability registration: Registration { id: "89333197-19fa-474b-b797-9d8ba7312c83", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("air.dependencyLogLevels")}) }
2025-01-21T16:43:49.356966-05:00 [WARN] unhandled capability registration: Registration { id: "60327824-4b42-4471-ac74-4234f644aad7", method: "workspace/didChangeConfiguration", register_options: Some(Object {"section": String("air.syncFileSettingsWithClient")}) }

Looks like Zed has a very small set of capabilities right now
https://github.com/zed-industries/zed/blob/9a7f1d1de426b15e527d803305e32c25fe5702ea/crates/project/src/lsp_store.rs#L606-L709

It probably should not set DidChangeConfigurationClientCapabilities...

https://github.com/zed-industries/zed/blob/9a7f1d1de426b15e527d803305e32c25fe5702ea/crates/lsp/src/lsp.rs#L636-L638

Opened a Zed issue zed-industries/zed#23430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant