Skip to content

Commit

Permalink
Merge pull request #85 from FelixLisczyk/fix-swift-interface-files
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel authored Jun 8, 2024
2 parents 37dd79d + 1674274 commit e16792a
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 e16792a

Please sign in to comment.