Skip to content

Commit

Permalink
Merge pull request #90 from FelixLisczyk/fix-cursor-chat
Browse files Browse the repository at this point in the history
Fixed "no lintable files found" error when adding files to Cursor AI Chat
  • Loading branch information
vknabel authored Jun 8, 2024
2 parents e16792a + 37f58f6 commit a4dbc08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ 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")) {
if (!request.document.uri.fsPath || request.document.uri.fsPath.includes(".swiftinterface")) {
return [];
}

Expand Down

0 comments on commit a4dbc08

Please sign in to comment.