Skip to content

Commit a614fde

Browse files
authored
Merge pull request #1097 from tien-ekn/fix/ignore-jj-vfs
Ignore Jujutsu VFS scheme to prevent fs.readDirectory errors
2 parents fd33dc5 + 4fca8ef commit a614fde

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/sweet-turkey-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/theme-language-server-common': patch
3+
---
4+
5+
Added jj to the URI prefixes ignored by hasUnsupportedDocument

packages/theme-language-server-common/src/server/startServer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ const hasUnsupportedDocument = (params: any) => {
7575
'textDocument' in params &&
7676
'uri' in params.textDocument &&
7777
typeof params.textDocument.uri === 'string' &&
78-
(params.textDocument.uri.startsWith('git:') || params.textDocument.uri.startsWith('output:'))
78+
(params.textDocument.uri.startsWith('jj:') ||
79+
params.textDocument.uri.startsWith('git:') ||
80+
params.textDocument.uri.startsWith('output:'))
7981
);
8082
};
8183

0 commit comments

Comments
 (0)