import { PythonVersion } from './pythonVersion' ; export const enum DiagnosticSeverityOverrides { Error = 'error' , Warning = 'warning' , Information = 'information' , None = 'none' } export function getDiagnosticSeverityOverrides ( ) { return [ DiagnosticSeverityOverrides . Error , DiagnosticSeverityOverrides . Warning , DiagnosticSeverityOverrides . Information , DiagnosticSeverityOverrides . None , ] ; } export type DiagnosticSeverityOverridesMap = { [ ruleName ] : DiagnosticSeverityOverrides ; } ; export class CommandLineOptions { constructor ( executionRoot , fromVsCodeExtension ) { this . executionRoot = executionRoot ; this . fromVsCodeExtension = fromVsCodeExtension ; } fileSpecs : string [ ] = [ ] ; watchForSourceChanges ? : boolean | undefined ; watchForLibraryChanges ? : boolean | undefined ; watchForConfigChanges ? : boolean | undefined ; configFilePath ? : string | undefined ; venvPath ? : string | undefined ; pythonPath ? : string | undefined ; pythonPlatform ? : 'Darwin' | 'Linux' | 'Windows' | undefined ; pythonVersion ? : PythonVersion | undefined ; typeshedPath ? : string | undefined ; stubPath ? : string | undefined ; executionRoot : string ; typeStubTargetImportName ? : string | undefined ; verboseOutput ? : boolean | undefined ; checkOnlyOpenFiles ? : boolean | undefined ; useLibraryCodeForTypes ? : boolean | undefined ; autoSearchPaths ? : boolean | undefined ; extraPaths ? : string [ ] | undefined ; typeCheckingMode ? : string | undefined ; fromVsCodeExtension : boolean ; diagnosticSeverityOverrides ? : DiagnosticSeverityOverridesMap | undefined ; autoImportCompletions ? : boolean | undefined ; indexing ? : boolean | undefined ; logTypeEvaluationTime = false ; typeEvaluationTimeThreshold = 50 ; enableAmbientAnalysis = true ; analyzeUnannotatedFunctions = true ; }