Skip to content

Commit 29139c1

Browse files
authored
feat(sourcekit): update root_dir check for .bsp #4186
Mirrors: swiftlang/vscode-swift#1865
1 parent c6f05c0 commit 29139c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp/sourcekit.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ return {
1313
root_dir = function(bufnr, on_dir)
1414
local filename = vim.api.nvim_buf_get_name(bufnr)
1515
on_dir(
16-
util.root_pattern 'buildServer.json'(filename)
16+
util.root_pattern('buildServer.json', '.bsp')(filename)
1717
or util.root_pattern('*.xcodeproj', '*.xcworkspace')(filename)
1818
-- better to keep it at the end, because some modularized apps contain multiple Package.swift files
1919
or util.root_pattern('compile_commands.json', 'Package.swift')(filename)

0 commit comments

Comments
 (0)