Skip to content

Commit 34c9ecf

Browse files
authored
fix(ts/js): servers do not start when bun.lock exists #4008
1 parent 6ec90b3 commit 34c9ecf

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lsp/biome.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ return {
4343
-- As stated in the documentation above, this LSP supports monorepos and simple projects.
4444
-- We select then from the project root, which is identified by the presence of a package
4545
-- manager lock file.
46-
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb' }
46+
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
4747
local project_root = vim.fs.root(bufnr, project_root_markers)
4848
if not project_root then
4949
return nil

lsp/eslint.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ return {
9090
-- As stated in the documentation above, this LSP supports monorepos and simple projects.
9191
-- We select then from the project root, which is identified by the presence of a package
9292
-- manager lock file.
93-
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb' }
93+
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
9494
local project_root = vim.fs.root(bufnr, project_root_markers)
9595
if not project_root then
9696
return nil

lsp/svelte.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ return {
1313
cmd = { 'svelteserver', '--stdio' },
1414
filetypes = { 'svelte' },
1515
root_dir = function(bufnr, on_dir)
16-
local root_files = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb' }
16+
local root_files = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
1717
local fname = vim.api.nvim_buf_get_name(bufnr)
1818
-- Svelte LSP only supports file:// schema. https://github.com/sveltejs/language-tools/issues/2777
1919
if vim.uv.fs_stat(fname) ~= nil then

lsp/ts_ls.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ return {
5757
-- As stated in the documentation above, this LSP supports monorepos and simple projects.
5858
-- We select then from the project root, which is identified by the presence of a package
5959
-- manager lock file.
60-
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb' }
60+
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
6161
local project_root = vim.fs.root(bufnr, project_root_markers)
6262
if not project_root then
6363
return nil

lsp/tsgo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ return {
2828
-- As stated in the documentation above, this LSP supports monorepos and simple projects.
2929
-- We select then from the project root, which is identified by the presence of a package
3030
-- manager lock file.
31-
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb' }
31+
local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
3232
local project_root = vim.fs.root(bufnr, project_root_markers)
3333
if not project_root then
3434
return nil

0 commit comments

Comments
 (0)