Skip to content

Commit

Permalink
fix: no lintable files found when navigating to Swift interface files
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLisczyk committed Jan 16, 2024
1 parent abc4118 commit 1674274
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export async function diagnosticsForDocument(request: {
return [];
}

// Skip linting if the user navigates to a system framework interface file.
if (request.document.uri.fsPath.includes(".swiftinterface")) {
return [];
}

const workspaceOrRoot =
request.workspaceFolder?.uri.fsPath ?? path.normalize("/");
const relativeDocumentPath = path.relative(
Expand Down

0 comments on commit 1674274

Please sign in to comment.