From 477f412973484b4de20ae70c142e28a5790936a5 Mon Sep 17 00:00:00 2001 From: Caleb White Date: Wed, 25 Jun 2025 07:39:03 -0500 Subject: fix: phpactor root markers precedence #3928 This fixes the precedence of root markers for phpactor. When opening a vendor file, a new lsp workspace was being created in the context of the vendor directory, which causes failures because there's no vendor/ directory in the workspace root and therefor the lsp cannot find any of the symbols. --- lsp/phpactor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp/phpactor.lua') diff --git a/lsp/phpactor.lua b/lsp/phpactor.lua index 41f6921d..7116e264 100644 --- a/lsp/phpactor.lua +++ b/lsp/phpactor.lua @@ -7,6 +7,6 @@ return { cmd = { 'phpactor', 'language-server' }, filetypes = { 'php' }, - root_markers = { 'composer.json', '.git', '.phpactor.json', '.phpactor.yml' }, + root_markers = { '.git', 'composer.json', '.phpactor.json', '.phpactor.yml' }, workspace_required = true, } -- cgit v1.2.3-70-g09d2