From 81a250aba1a5229b1cdbc325d09ac2f7cab1dca8 Mon Sep 17 00:00:00 2001 From: detachhead Date: Fri, 18 Oct 2024 19:11:12 +1000 Subject: [PATCH] fix `typeCheckingMode` still defaulting to `"all"` in the language server when there's no config file --- packages/pyright-internal/src/realLanguageServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pyright-internal/src/realLanguageServer.ts b/packages/pyright-internal/src/realLanguageServer.ts index 2b0c189550..a8952f6ed0 100644 --- a/packages/pyright-internal/src/realLanguageServer.ts +++ b/packages/pyright-internal/src/realLanguageServer.ts @@ -97,7 +97,7 @@ export abstract class RealLanguageServer extends LanguageServerBase { disableLanguageServices: false, disableTaggedHints: false, disableOrganizeImports: false, - typeCheckingMode: 'all', + typeCheckingMode: 'recommended', diagnosticSeverityOverrides: {}, logLevel: LogLevel.Info, autoImportCompletions: true,