Skip to content

Commit f53de02

Browse files
committed
Fix #2006
1 parent b88a39d commit f53de02

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### 0.27.0
44

5+
- Fix VLS crash for *.vue files in node_modules. #2006.
56
- Upgrade to TypeScript 4.0.2 and fix symbol outline issue. #1849.
67
- Improve JSDoc presentation in hover/completion in interpolation mode. #1337.
78
- Improve JSDoc presentation in hover/completion/signatureHelp. #2193.

server/src/services/vls.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,10 @@ export class VLS {
472472
}
473473

474474
private triggerValidation(textDocument: TextDocument): void {
475+
if (textDocument.uri.includes('node_modules')) {
476+
return;
477+
}
478+
475479
this.cleanPendingValidation(textDocument);
476480
this.pendingValidationRequests[textDocument.uri] = setTimeout(() => {
477481
delete this.pendingValidationRequests[textDocument.uri];

0 commit comments

Comments
 (0)