fix(ast_grep, ruby_lsp): check name in reuse_client #4408

This commit is contained in:
Sam Wight 2026-04-28 17:22:38 -05:00 committed by GitHub
parent bf5abe69c1
commit 6419b36f50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ return {
workspace_required = true,
reuse_client = function(client, config)
config.cmd_cwd = config.root_dir
return client.config.cmd_cwd == config.cmd_cwd
return client.name == config.name and client.config.cmd_cwd == config.cmd_cwd
end,
filetypes = { -- https://ast-grep.github.io/reference/languages.html
'bash',

View File

@ -28,6 +28,6 @@ return {
},
reuse_client = function(client, config)
config.cmd_cwd = config.root_dir
return client.config.cmd_cwd == config.cmd_cwd
return client.name == config.name and client.config.cmd_cwd == config.cmd_cwd
end,
}