Skip to content

Commit

Permalink
fix: skip check for devDependencies from node_modules
Browse files Browse the repository at this point in the history
close #15
  • Loading branch information
hyoban committed Jul 15, 2024
1 parent 0dbc89f commit f526234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diagnostic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export async function updateDiagnostic(document: vscode.TextDocument) {
}

async function checkDependency(key: string) {
if (document.uri.fsPath.includes('node_modules') && key === 'devDependencies') return;

const nodePath = key.split('.');
if (nodePath.length === 0) return;

Expand Down

0 comments on commit f526234

Please sign in to comment.