Skip to content

feat(ast_grep): support multiple workspaces #3866

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

powerman
Copy link
Contributor

Related to #3850

@@ -3,6 +3,10 @@ local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'ast-grep', 'lsp' },
reuse_client = function(client, config)
Copy link
Member

@justinmk justinmk May 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure the old configs support reuse_client ? they are frozen anyway, as noted by the failing CI check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but… it should be provided in second arg to lsp.start.client: https://github.com/neovim/neovim/blob/v0.10.0/runtime/doc/lsp.txt#L858
I've no idea is this handled by lspconfig or this callback should be in some other place in the config or there is no place for it at all.
Should I just remove it?

@powerman powerman force-pushed the feat-ast_grep-cwd branch from f8a7a79 to 87ea61d Compare May 24, 2025 17:28
@powerman
Copy link
Contributor Author

Removed old config.

@justinmk justinmk merged commit 6c573c8 into neovim:master May 26, 2025
10 checks passed
@powerman powerman deleted the feat-ast_grep-cwd branch May 26, 2025 15:33
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.

2 participants