diff --git a/src/lint.ts b/src/lint.ts index 5c67c2d..ea96f20 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -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(