diff --git a/src/lint.ts b/src/lint.ts index ea96f20..ee9fe91 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -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 []; }