Skip to content

Commit

Permalink
fix: handle incorrect lsp file name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 10, 2022
1 parent c9c6577 commit 8c7f0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-server/src/utils.ts
Expand Up @@ -12,7 +12,7 @@ export function getDocumentSafely(documents: vscode.TextDocuments<TextDocument>,
}

for (const document of documents.all()) {
if (shared.normalizeUri(document.uri) === normalizeUri) {
if (shared.normalizeUri(document.uri).toLowerCase() === normalizeUri.toLowerCase()) {
return document;
}
}
Expand Down

0 comments on commit 8c7f0d0

Please sign in to comment.