@zzzen/pyright-internal 1.1.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer/aliasDeclarationUtils.d.ts +9 -0
- package/dist/analyzer/aliasDeclarationUtils.js +128 -0
- package/dist/analyzer/aliasDeclarationUtils.js.map +1 -0
- package/dist/analyzer/analysis.d.ts +18 -0
- package/dist/analyzer/analysis.js +81 -0
- package/dist/analyzer/analysis.js.map +1 -0
- package/dist/analyzer/analyzerFileInfo.d.ts +39 -0
- package/dist/analyzer/analyzerFileInfo.js +17 -0
- package/dist/analyzer/analyzerFileInfo.js.map +1 -0
- package/dist/analyzer/analyzerNodeInfo.d.ts +32 -0
- package/dist/analyzer/analyzerNodeInfo.js +138 -0
- package/dist/analyzer/analyzerNodeInfo.js.map +1 -0
- package/dist/analyzer/backgroundAnalysisProgram.d.ts +54 -0
- package/dist/analyzer/backgroundAnalysisProgram.js +222 -0
- package/dist/analyzer/backgroundAnalysisProgram.js.map +1 -0
- package/dist/analyzer/binder.d.ts +149 -0
- package/dist/analyzer/binder.js +3195 -0
- package/dist/analyzer/binder.js.map +1 -0
- package/dist/analyzer/checker.d.ts +116 -0
- package/dist/analyzer/checker.js +3828 -0
- package/dist/analyzer/checker.js.map +1 -0
- package/dist/analyzer/circularDependency.d.ts +7 -0
- package/dist/analyzer/circularDependency.js +51 -0
- package/dist/analyzer/circularDependency.js.map +1 -0
- package/dist/analyzer/codeFlowEngine.d.ts +21 -0
- package/dist/analyzer/codeFlowEngine.js +1132 -0
- package/dist/analyzer/codeFlowEngine.js.map +1 -0
- package/dist/analyzer/codeFlowTypes.d.ts +82 -0
- package/dist/analyzer/codeFlowTypes.js +134 -0
- package/dist/analyzer/codeFlowTypes.js.map +1 -0
- package/dist/analyzer/codeFlowUtils.d.ts +2 -0
- package/dist/analyzer/codeFlowUtils.js +348 -0
- package/dist/analyzer/codeFlowUtils.js.map +1 -0
- package/dist/analyzer/commentUtils.d.ts +4 -0
- package/dist/analyzer/commentUtils.js +131 -0
- package/dist/analyzer/commentUtils.js.map +1 -0
- package/dist/analyzer/constraintSolver.d.ts +7 -0
- package/dist/analyzer/constraintSolver.js +605 -0
- package/dist/analyzer/constraintSolver.js.map +1 -0
- package/dist/analyzer/constructorTransform.d.ts +4 -0
- package/dist/analyzer/constructorTransform.js +219 -0
- package/dist/analyzer/constructorTransform.js.map +1 -0
- package/dist/analyzer/dataClasses.d.ts +9 -0
- package/dist/analyzer/dataClasses.js +762 -0
- package/dist/analyzer/dataClasses.js.map +1 -0
- package/dist/analyzer/declaration.d.ts +90 -0
- package/dist/analyzer/declaration.js +42 -0
- package/dist/analyzer/declaration.js.map +1 -0
- package/dist/analyzer/declarationUtils.d.ts +12 -0
- package/dist/analyzer/declarationUtils.js +212 -0
- package/dist/analyzer/declarationUtils.js.map +1 -0
- package/dist/analyzer/docStringConversion.d.ts +2 -0
- package/dist/analyzer/docStringConversion.js +699 -0
- package/dist/analyzer/docStringConversion.js.map +1 -0
- package/dist/analyzer/docStringUtils.d.ts +3 -0
- package/dist/analyzer/docStringUtils.js +103 -0
- package/dist/analyzer/docStringUtils.js.map +1 -0
- package/dist/analyzer/functionTransform.d.ts +4 -0
- package/dist/analyzer/functionTransform.js +96 -0
- package/dist/analyzer/functionTransform.js.map +1 -0
- package/dist/analyzer/importResolver.d.ts +97 -0
- package/dist/analyzer/importResolver.js +1617 -0
- package/dist/analyzer/importResolver.js.map +1 -0
- package/dist/analyzer/importResult.d.ts +33 -0
- package/dist/analyzer/importResult.js +11 -0
- package/dist/analyzer/importResult.js.map +1 -0
- package/dist/analyzer/importStatementUtils.d.ts +46 -0
- package/dist/analyzer/importStatementUtils.js +618 -0
- package/dist/analyzer/importStatementUtils.js.map +1 -0
- package/dist/analyzer/namedTuples.d.ts +5 -0
- package/dist/analyzer/namedTuples.js +342 -0
- package/dist/analyzer/namedTuples.js.map +1 -0
- package/dist/analyzer/packageTypeReport.d.ts +52 -0
- package/dist/analyzer/packageTypeReport.js +45 -0
- package/dist/analyzer/packageTypeReport.js.map +1 -0
- package/dist/analyzer/packageTypeVerifier.d.ts +37 -0
- package/dist/analyzer/packageTypeVerifier.js +908 -0
- package/dist/analyzer/packageTypeVerifier.js.map +1 -0
- package/dist/analyzer/parentDirectoryCache.d.ts +23 -0
- package/dist/analyzer/parentDirectoryCache.js +71 -0
- package/dist/analyzer/parentDirectoryCache.js.map +1 -0
- package/dist/analyzer/parseTreeCleaner.d.ts +8 -0
- package/dist/analyzer/parseTreeCleaner.js +51 -0
- package/dist/analyzer/parseTreeCleaner.js.map +1 -0
- package/dist/analyzer/parseTreeUtils.d.ts +98 -0
- package/dist/analyzer/parseTreeUtils.js +1753 -0
- package/dist/analyzer/parseTreeUtils.js.map +1 -0
- package/dist/analyzer/parseTreeWalker.d.ts +81 -0
- package/dist/analyzer/parseTreeWalker.js +437 -0
- package/dist/analyzer/parseTreeWalker.js.map +1 -0
- package/dist/analyzer/patternMatching.d.ts +6 -0
- package/dist/analyzer/patternMatching.js +866 -0
- package/dist/analyzer/patternMatching.js.map +1 -0
- package/dist/analyzer/program.d.ts +158 -0
- package/dist/analyzer/program.js +1902 -0
- package/dist/analyzer/program.js.map +1 -0
- package/dist/analyzer/properties.d.ts +10 -0
- package/dist/analyzer/properties.js +368 -0
- package/dist/analyzer/properties.js.map +1 -0
- package/dist/analyzer/protocols.d.ts +8 -0
- package/dist/analyzer/protocols.js +409 -0
- package/dist/analyzer/protocols.js.map +1 -0
- package/dist/analyzer/pyTypedUtils.d.ts +6 -0
- package/dist/analyzer/pyTypedUtils.js +42 -0
- package/dist/analyzer/pyTypedUtils.js.map +1 -0
- package/dist/analyzer/pythonPathUtils.d.ts +14 -0
- package/dist/analyzer/pythonPathUtils.js +173 -0
- package/dist/analyzer/pythonPathUtils.js.map +1 -0
- package/dist/analyzer/scope.d.ts +39 -0
- package/dist/analyzer/scope.js +110 -0
- package/dist/analyzer/scope.js.map +1 -0
- package/dist/analyzer/scopeUtils.d.ts +6 -0
- package/dist/analyzer/scopeUtils.js +72 -0
- package/dist/analyzer/scopeUtils.js.map +1 -0
- package/dist/analyzer/service.d.ts +144 -0
- package/dist/analyzer/service.js +1197 -0
- package/dist/analyzer/service.js.map +1 -0
- package/dist/analyzer/sourceFile.d.ts +123 -0
- package/dist/analyzer/sourceFile.js +908 -0
- package/dist/analyzer/sourceFile.js.map +1 -0
- package/dist/analyzer/sourceMapper.d.ts +47 -0
- package/dist/analyzer/sourceMapper.js +543 -0
- package/dist/analyzer/sourceMapper.js.map +1 -0
- package/dist/analyzer/staticExpressions.d.ts +4 -0
- package/dist/analyzer/staticExpressions.js +242 -0
- package/dist/analyzer/staticExpressions.js.map +1 -0
- package/dist/analyzer/symbol.d.ts +50 -0
- package/dist/analyzer/symbol.js +160 -0
- package/dist/analyzer/symbol.js.map +1 -0
- package/dist/analyzer/symbolNameUtils.d.ts +8 -0
- package/dist/analyzer/symbolNameUtils.js +53 -0
- package/dist/analyzer/symbolNameUtils.js.map +1 -0
- package/dist/analyzer/symbolUtils.d.ts +7 -0
- package/dist/analyzer/symbolUtils.js +46 -0
- package/dist/analyzer/symbolUtils.js.map +1 -0
- package/dist/analyzer/testWalker.d.ts +14 -0
- package/dist/analyzer/testWalker.js +92 -0
- package/dist/analyzer/testWalker.js.map +1 -0
- package/dist/analyzer/tracePrinter.d.ts +11 -0
- package/dist/analyzer/tracePrinter.js +222 -0
- package/dist/analyzer/tracePrinter.js.map +1 -0
- package/dist/analyzer/typeCache.d.ts +40 -0
- package/dist/analyzer/typeCache.js +134 -0
- package/dist/analyzer/typeCache.js.map +1 -0
- package/dist/analyzer/typeDocStringUtils.d.ts +12 -0
- package/dist/analyzer/typeDocStringUtils.js +293 -0
- package/dist/analyzer/typeDocStringUtils.js.map +1 -0
- package/dist/analyzer/typeEvaluator.d.ts +18 -0
- package/dist/analyzer/typeEvaluator.js +16598 -0
- package/dist/analyzer/typeEvaluator.js.map +1 -0
- package/dist/analyzer/typeEvaluatorTypes.d.ts +220 -0
- package/dist/analyzer/typeEvaluatorTypes.js +16 -0
- package/dist/analyzer/typeEvaluatorTypes.js.map +1 -0
- package/dist/analyzer/typeEvaluatorWithTracker.d.ts +6 -0
- package/dist/analyzer/typeEvaluatorWithTracker.js +121 -0
- package/dist/analyzer/typeEvaluatorWithTracker.js.map +1 -0
- package/dist/analyzer/typeGuards.d.ts +6 -0
- package/dist/analyzer/typeGuards.js +1293 -0
- package/dist/analyzer/typeGuards.js.map +1 -0
- package/dist/analyzer/typePrinter.d.ts +17 -0
- package/dist/analyzer/typePrinter.js +603 -0
- package/dist/analyzer/typePrinter.js.map +1 -0
- package/dist/analyzer/typeStubWriter.d.ts +48 -0
- package/dist/analyzer/typeStubWriter.js +605 -0
- package/dist/analyzer/typeStubWriter.js.map +1 -0
- package/dist/analyzer/typeUtils.d.ts +134 -0
- package/dist/analyzer/typeUtils.js +2380 -0
- package/dist/analyzer/typeUtils.js.map +1 -0
- package/dist/analyzer/typeVarContext.d.ts +50 -0
- package/dist/analyzer/typeVarContext.js +250 -0
- package/dist/analyzer/typeVarContext.js.map +1 -0
- package/dist/analyzer/typedDicts.d.ts +12 -0
- package/dist/analyzer/typedDicts.js +695 -0
- package/dist/analyzer/typedDicts.js.map +1 -0
- package/dist/analyzer/types.d.ts +484 -0
- package/dist/analyzer/types.js +1844 -0
- package/dist/analyzer/types.js.map +1 -0
- package/dist/backgroundAnalysis.d.ts +14 -0
- package/dist/backgroundAnalysis.js +42 -0
- package/dist/backgroundAnalysis.js.map +1 -0
- package/dist/backgroundAnalysisBase.d.ts +83 -0
- package/dist/backgroundAnalysisBase.js +429 -0
- package/dist/backgroundAnalysisBase.js.map +1 -0
- package/dist/backgroundThreadBase.d.ts +34 -0
- package/dist/backgroundThreadBase.js +134 -0
- package/dist/backgroundThreadBase.js.map +1 -0
- package/dist/commands/commandController.d.ts +13 -0
- package/dist/commands/commandController.js +48 -0
- package/dist/commands/commandController.js.map +1 -0
- package/dist/commands/commandResult.d.ts +9 -0
- package/dist/commands/commandResult.js +19 -0
- package/dist/commands/commandResult.js.map +1 -0
- package/dist/commands/commands.d.ts +7 -0
- package/dist/commands/commands.js +11 -0
- package/dist/commands/commands.js.map +1 -0
- package/dist/commands/createTypeStub.d.ts +8 -0
- package/dist/commands/createTypeStub.js +50 -0
- package/dist/commands/createTypeStub.js.map +1 -0
- package/dist/commands/quickActionCommand.d.ts +8 -0
- package/dist/commands/quickActionCommand.js +31 -0
- package/dist/commands/quickActionCommand.js.map +1 -0
- package/dist/commands/restartServer.d.ts +8 -0
- package/dist/commands/restartServer.js +20 -0
- package/dist/commands/restartServer.js.map +1 -0
- package/dist/common/cancellationUtils.d.ts +16 -0
- package/dist/common/cancellationUtils.js +60 -0
- package/dist/common/cancellationUtils.js.map +1 -0
- package/dist/common/chokidarFileWatcherProvider.d.ts +9 -0
- package/dist/common/chokidarFileWatcherProvider.js +88 -0
- package/dist/common/chokidarFileWatcherProvider.js.map +1 -0
- package/dist/common/collectionUtils.d.ts +114 -0
- package/dist/common/collectionUtils.js +292 -0
- package/dist/common/collectionUtils.js.map +1 -0
- package/dist/common/commandLineOptions.d.ts +41 -0
- package/dist/common/commandLineOptions.js +46 -0
- package/dist/common/commandLineOptions.js.map +1 -0
- package/dist/common/configOptions.d.ts +144 -0
- package/dist/common/configOptions.js +908 -0
- package/dist/common/configOptions.js.map +1 -0
- package/dist/common/console.d.ts +61 -0
- package/dist/common/console.js +191 -0
- package/dist/common/console.js.map +1 -0
- package/dist/common/core.d.ts +67 -0
- package/dist/common/core.js +118 -0
- package/dist/common/core.js.map +1 -0
- package/dist/common/crypto.d.ts +1 -0
- package/dist/common/crypto.js +37 -0
- package/dist/common/crypto.js.map +1 -0
- package/dist/common/debug.d.ts +13 -0
- package/dist/common/debug.js +131 -0
- package/dist/common/debug.js.map +1 -0
- package/dist/common/deferred.d.ts +11 -0
- package/dist/common/deferred.js +62 -0
- package/dist/common/deferred.js.map +1 -0
- package/dist/common/diagnostic.d.ts +59 -0
- package/dist/common/diagnostic.js +134 -0
- package/dist/common/diagnostic.js.map +1 -0
- package/dist/common/diagnosticRules.d.ts +67 -0
- package/dist/common/diagnosticRules.js +83 -0
- package/dist/common/diagnosticRules.js.map +1 -0
- package/dist/common/diagnosticSink.d.ts +34 -0
- package/dist/common/diagnosticSink.js +110 -0
- package/dist/common/diagnosticSink.js.map +1 -0
- package/dist/common/editAction.d.ts +29 -0
- package/dist/common/editAction.js +11 -0
- package/dist/common/editAction.js.map +1 -0
- package/dist/common/extensibility.d.ts +11 -0
- package/dist/common/extensibility.js +10 -0
- package/dist/common/extensibility.js.map +1 -0
- package/dist/common/extensions.d.ts +3 -0
- package/dist/common/extensions.js +15 -0
- package/dist/common/extensions.js.map +1 -0
- package/dist/common/fileBasedCancellationUtils.d.ts +11 -0
- package/dist/common/fileBasedCancellationUtils.js +259 -0
- package/dist/common/fileBasedCancellationUtils.js.map +1 -0
- package/dist/common/fileSystem.d.ts +72 -0
- package/dist/common/fileSystem.js +69 -0
- package/dist/common/fileSystem.js.map +1 -0
- package/dist/common/fullAccessHost.d.ts +19 -0
- package/dist/common/fullAccessHost.js +193 -0
- package/dist/common/fullAccessHost.js.map +1 -0
- package/dist/common/host.d.ts +21 -0
- package/dist/common/host.js +30 -0
- package/dist/common/host.js.map +1 -0
- package/dist/common/logTracker.d.ts +15 -0
- package/dist/common/logTracker.js +129 -0
- package/dist/common/logTracker.js.map +1 -0
- package/dist/common/lspUtils.d.ts +3 -0
- package/dist/common/lspUtils.js +20 -0
- package/dist/common/lspUtils.js.map +1 -0
- package/dist/common/memUtils.d.ts +3 -0
- package/dist/common/memUtils.js +37 -0
- package/dist/common/memUtils.js.map +1 -0
- package/dist/common/pathConsts.d.ts +8 -0
- package/dist/common/pathConsts.js +19 -0
- package/dist/common/pathConsts.js.map +1 -0
- package/dist/common/pathUtils.d.ts +170 -0
- package/dist/common/pathUtils.js +762 -0
- package/dist/common/pathUtils.js.map +1 -0
- package/dist/common/positionUtils.d.ts +7 -0
- package/dist/common/positionUtils.js +71 -0
- package/dist/common/positionUtils.js.map +1 -0
- package/dist/common/progressReporter.d.ts +15 -0
- package/dist/common/progressReporter.js +44 -0
- package/dist/common/progressReporter.js.map +1 -0
- package/dist/common/pythonVersion.d.ts +20 -0
- package/dist/common/pythonVersion.js +71 -0
- package/dist/common/pythonVersion.js.map +1 -0
- package/dist/common/realFileSystem.d.ts +8 -0
- package/dist/common/realFileSystem.js +368 -0
- package/dist/common/realFileSystem.js.map +1 -0
- package/dist/common/stringUtils.d.ts +47 -0
- package/dist/common/stringUtils.js +160 -0
- package/dist/common/stringUtils.js.map +1 -0
- package/dist/common/textEditUtils.d.ts +3 -0
- package/dist/common/textEditUtils.js +29 -0
- package/dist/common/textEditUtils.js.map +1 -0
- package/dist/common/textRange.d.ts +47 -0
- package/dist/common/textRange.js +211 -0
- package/dist/common/textRange.js.map +1 -0
- package/dist/common/textRangeCollection.d.ts +13 -0
- package/dist/common/textRangeCollection.js +108 -0
- package/dist/common/textRangeCollection.js.map +1 -0
- package/dist/common/timing.d.ts +31 -0
- package/dist/common/timing.js +100 -0
- package/dist/common/timing.js.map +1 -0
- package/dist/common/uriParser.d.ts +12 -0
- package/dist/common/uriParser.js +25 -0
- package/dist/common/uriParser.js.map +1 -0
- package/dist/common/workspaceEditUtils.d.ts +7 -0
- package/dist/common/workspaceEditUtils.js +63 -0
- package/dist/common/workspaceEditUtils.js.map +1 -0
- package/dist/languageServerBase.d.ts +211 -0
- package/dist/languageServerBase.js +923 -0
- package/dist/languageServerBase.js.map +1 -0
- package/dist/languageService/analyzerServiceExecutor.d.ts +8 -0
- package/dist/languageService/analyzerServiceExecutor.js +97 -0
- package/dist/languageService/analyzerServiceExecutor.js.map +1 -0
- package/dist/languageService/autoImporter.d.ts +84 -0
- package/dist/languageService/autoImporter.js +635 -0
- package/dist/languageService/autoImporter.js.map +1 -0
- package/dist/languageService/callHierarchyProvider.d.ts +12 -0
- package/dist/languageService/callHierarchyProvider.js +368 -0
- package/dist/languageService/callHierarchyProvider.js.map +1 -0
- package/dist/languageService/codeActionProvider.d.ts +6 -0
- package/dist/languageService/codeActionProvider.js +53 -0
- package/dist/languageService/codeActionProvider.js.map +1 -0
- package/dist/languageService/completionProvider.d.ts +147 -0
- package/dist/languageService/completionProvider.js +2220 -0
- package/dist/languageService/completionProvider.js.map +1 -0
- package/dist/languageService/definitionProvider.d.ts +17 -0
- package/dist/languageService/definitionProvider.js +206 -0
- package/dist/languageService/definitionProvider.js.map +1 -0
- package/dist/languageService/documentHighlightProvider.d.ts +7 -0
- package/dist/languageService/documentHighlightProvider.js +63 -0
- package/dist/languageService/documentHighlightProvider.js.map +1 -0
- package/dist/languageService/documentSymbolCollector.d.ts +37 -0
- package/dist/languageService/documentSymbolCollector.js +344 -0
- package/dist/languageService/documentSymbolCollector.js.map +1 -0
- package/dist/languageService/documentSymbolProvider.d.ts +37 -0
- package/dist/languageService/documentSymbolProvider.js +308 -0
- package/dist/languageService/documentSymbolProvider.js.map +1 -0
- package/dist/languageService/hoverProvider.d.ts +25 -0
- package/dist/languageService/hoverProvider.js +366 -0
- package/dist/languageService/hoverProvider.js.map +1 -0
- package/dist/languageService/importAdder.d.ts +24 -0
- package/dist/languageService/importAdder.js +296 -0
- package/dist/languageService/importAdder.js.map +1 -0
- package/dist/languageService/importSorter.d.ts +15 -0
- package/dist/languageService/importSorter.js +152 -0
- package/dist/languageService/importSorter.js.map +1 -0
- package/dist/languageService/indentationUtils.d.ts +4 -0
- package/dist/languageService/indentationUtils.js +597 -0
- package/dist/languageService/indentationUtils.js.map +1 -0
- package/dist/languageService/quickActions.d.ts +4 -0
- package/dist/languageService/quickActions.js +97 -0
- package/dist/languageService/quickActions.js.map +1 -0
- package/dist/languageService/referencesProvider.d.ts +36 -0
- package/dist/languageService/referencesProvider.js +236 -0
- package/dist/languageService/referencesProvider.js.map +1 -0
- package/dist/languageService/renameModuleProvider.d.ts +58 -0
- package/dist/languageService/renameModuleProvider.js +884 -0
- package/dist/languageService/renameModuleProvider.js.map +1 -0
- package/dist/languageService/signatureHelpProvider.d.ts +26 -0
- package/dist/languageService/signatureHelpProvider.js +180 -0
- package/dist/languageService/signatureHelpProvider.js.map +1 -0
- package/dist/languageService/tooltipUtils.d.ts +9 -0
- package/dist/languageService/tooltipUtils.js +129 -0
- package/dist/languageService/tooltipUtils.js.map +1 -0
- package/dist/localization/localize.d.ts +1324 -0
- package/dist/localization/localize.js +788 -0
- package/dist/localization/localize.js.map +1 -0
- package/dist/localization/package.nls.de.json +1 -0
- package/dist/localization/package.nls.en-us.json +636 -0
- package/dist/localization/package.nls.es.json +1 -0
- package/dist/localization/package.nls.fr.json +1 -0
- package/dist/localization/package.nls.ja.json +1 -0
- package/dist/localization/package.nls.ru.json +1 -0
- package/dist/localization/package.nls.zh-cn.json +1 -0
- package/dist/localization/package.nls.zh-tw.json +1 -0
- package/dist/nodeMain.d.ts +1 -0
- package/dist/nodeMain.js +21 -0
- package/dist/nodeMain.js.map +1 -0
- package/dist/nodeServer.d.ts +3 -0
- package/dist/nodeServer.js +31 -0
- package/dist/nodeServer.js.map +1 -0
- package/dist/parser/characterStream.d.ts +27 -0
- package/dist/parser/characterStream.js +120 -0
- package/dist/parser/characterStream.js.map +1 -0
- package/dist/parser/characters.d.ts +17 -0
- package/dist/parser/characters.js +240 -0
- package/dist/parser/characters.js.map +1 -0
- package/dist/parser/parseNodes.d.ts +750 -0
- package/dist/parser/parseNodes.js +1406 -0
- package/dist/parser/parseNodes.js.map +1 -0
- package/dist/parser/parser.d.ts +191 -0
- package/dist/parser/parser.js +3806 -0
- package/dist/parser/parser.js.map +1 -0
- package/dist/parser/stringTokenUtils.d.ts +25 -0
- package/dist/parser/stringTokenUtils.js +455 -0
- package/dist/parser/stringTokenUtils.js.map +1 -0
- package/dist/parser/tokenizer.d.ts +71 -0
- package/dist/parser/tokenizer.js +1111 -0
- package/dist/parser/tokenizer.js.map +1 -0
- package/dist/parser/tokenizerTypes.d.ts +223 -0
- package/dist/parser/tokenizerTypes.js +164 -0
- package/dist/parser/tokenizerTypes.js.map +1 -0
- package/dist/parser/unicode.d.ts +23 -0
- package/dist/parser/unicode.js +2899 -0
- package/dist/parser/unicode.js.map +1 -0
- package/dist/pyright.d.ts +1 -0
- package/dist/pyright.js +645 -0
- package/dist/pyright.js.map +1 -0
- package/dist/pyrightFileSystem.d.ts +28 -0
- package/dist/pyrightFileSystem.js +196 -0
- package/dist/pyrightFileSystem.js.map +1 -0
- package/dist/readonlyAugmentedFileSystem.d.ts +40 -0
- package/dist/readonlyAugmentedFileSystem.js +155 -0
- package/dist/readonlyAugmentedFileSystem.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +232 -0
- package/dist/server.js.map +1 -0
- package/dist/tests/chainedSourceFiles.test.d.ts +1 -0
- package/dist/tests/chainedSourceFiles.test.js +153 -0
- package/dist/tests/chainedSourceFiles.test.js.map +1 -0
- package/dist/tests/checker.test.d.ts +1 -0
- package/dist/tests/checker.test.js +346 -0
- package/dist/tests/checker.test.js.map +1 -0
- package/dist/tests/collectionUtils.test.d.ts +1 -0
- package/dist/tests/collectionUtils.test.js +153 -0
- package/dist/tests/collectionUtils.test.js.map +1 -0
- package/dist/tests/common.test.d.ts +1 -0
- package/dist/tests/common.test.js +125 -0
- package/dist/tests/common.test.js.map +1 -0
- package/dist/tests/config.test.d.ts +1 -0
- package/dist/tests/config.test.js +230 -0
- package/dist/tests/config.test.js.map +1 -0
- package/dist/tests/debug.test.d.ts +1 -0
- package/dist/tests/debug.test.js +102 -0
- package/dist/tests/debug.test.js.map +1 -0
- package/dist/tests/deferred.test.d.ts +1 -0
- package/dist/tests/deferred.test.js +65 -0
- package/dist/tests/deferred.test.js.map +1 -0
- package/dist/tests/diagnosticOverrides.test.d.ts +1 -0
- package/dist/tests/diagnosticOverrides.test.js +108 -0
- package/dist/tests/diagnosticOverrides.test.js.map +1 -0
- package/dist/tests/docStringConversion.test.d.ts +1 -0
- package/dist/tests/docStringConversion.test.js +695 -0
- package/dist/tests/docStringConversion.test.js.map +1 -0
- package/dist/tests/docStringUtils.test.d.ts +1 -0
- package/dist/tests/docStringUtils.test.js +70 -0
- package/dist/tests/docStringUtils.test.js.map +1 -0
- package/dist/tests/documentSymbolCollector.test.d.ts +1 -0
- package/dist/tests/documentSymbolCollector.test.js +635 -0
- package/dist/tests/documentSymbolCollector.test.js.map +1 -0
- package/dist/tests/filesystem.test.d.ts +1 -0
- package/dist/tests/filesystem.test.js +194 -0
- package/dist/tests/filesystem.test.js.map +1 -0
- package/dist/tests/fourSlashParser.test.d.ts +1 -0
- package/dist/tests/fourSlashParser.test.js +281 -0
- package/dist/tests/fourSlashParser.test.js.map +1 -0
- package/dist/tests/fourSlashRunner.test.d.ts +1 -0
- package/dist/tests/fourSlashRunner.test.js +52 -0
- package/dist/tests/fourSlashRunner.test.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.js +30 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.js +42 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.js +13 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.js +23 -0
- package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.js +35 -0
- package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.autoimport.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.js +128 -0
- package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.js +43 -0
- package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.js +29 -0
- package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.js +50 -0
- package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.js +116 -0
- package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.builtinOverride.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.builtinOverride.fourslash.js +21 -0
- package/dist/tests/fourslash/completions.builtinOverride.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.js +54 -0
- package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.fourslash.js +245 -0
- package/dist/tests/fourslash/completions.call.typedDict.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.js +162 -0
- package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.js +132 -0
- package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.classVariable.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.classVariable.fourslash.js +37 -0
- package/dist/tests/fourslash/completions.classVariable.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.comment.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.comment.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.comment.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.class.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.class.fourslash.js +30 -0
- package/dist/tests/fourslash/completions.declNames.class.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.exception.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.exception.fourslash.js +18 -0
- package/dist/tests/fourslash/completions.declNames.exception.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.for.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.for.fourslash.js +26 -0
- package/dist/tests/fourslash/completions.declNames.for.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.js +15 -0
- package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.lambda.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.lambda.fourslash.js +36 -0
- package/dist/tests/fourslash/completions.declNames.lambda.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.method.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.method.fourslash.js +68 -0
- package/dist/tests/fourslash/completions.declNames.method.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.overload.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.overload.fourslash.js +147 -0
- package/dist/tests/fourslash/completions.declNames.overload.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.js +131 -0
- package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.js +73 -0
- package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.js +58 -0
- package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.js +154 -0
- package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.js +143 -0
- package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.js +109 -0
- package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.js +50 -0
- package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.enums.members.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.enums.members.fourslash.js +44 -0
- package/dist/tests/fourslash/completions.enums.members.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.excluded.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.excluded.fourslash.js +12 -0
- package/dist/tests/fourslash/completions.excluded.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fourslash.js +51 -0
- package/dist/tests/fourslash/completions.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fstring.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fstring.fourslash.js +32 -0
- package/dist/tests/fourslash/completions.fstring.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.js +96 -0
- package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.js +30 -0
- package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.importDunderNames.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.importDunderNames.fourslash.js +29 -0
- package/dist/tests/fourslash/completions.importDunderNames.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.importSubmodule.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.importSubmodule.fourslash.js +22 -0
- package/dist/tests/fourslash/completions.importSubmodule.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.importsDuplicates.fourslash.d.ts +0 -0
- package/dist/tests/fourslash/completions.importsDuplicates.fourslash.js +22 -0
- package/dist/tests/fourslash/completions.importsDuplicates.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inList.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inList.fourslash.js +32 -0
- package/dist/tests/fourslash/completions.inList.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.included.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.included.fourslash.js +12 -0
- package/dist/tests/fourslash/completions.included.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.js +54 -0
- package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.js +26 -0
- package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.js +49 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.js +50 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.js +101 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.js +105 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.js +67 -0
- package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.js +75 -0
- package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.js +66 -0
- package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.libStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.libStub.fourslash.js +66 -0
- package/dist/tests/fourslash/completions.libStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.literals.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.literals.fourslash.js +31 -0
- package/dist/tests/fourslash/completions.literals.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.localCode.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.localCode.fourslash.js +71 -0
- package/dist/tests/fourslash/completions.localCode.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.js +17 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.js +57 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.overloads.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.overloads.fourslash.js +37 -0
- package/dist/tests/fourslash/completions.overloads.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.default.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.importStub.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.importStub.js +49 -0
- package/dist/tests/fourslash/completions.override.default.importStub.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.imported.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.imported.fourslash.js +60 -0
- package/dist/tests/fourslash/completions.override.default.imported.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.stub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.stub.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.default.stub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.property.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.property.fourslash.js +31 -0
- package/dist/tests/fourslash/completions.override.property.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.property.stub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.property.stub.fourslash.js +31 -0
- package/dist/tests/fourslash/completions.override.property.stub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.js +63 -0
- package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.stub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.stub.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.stub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override2.fourslash.js +66 -0
- package/dist/tests/fourslash/completions.override2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.parameters.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.parameters.fourslash.js +22 -0
- package/dist/tests/fourslash/completions.parameters.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.params.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.params.fourslash.js +23 -0
- package/dist/tests/fourslash/completions.params.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.parentFolder.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.parentFolder.fourslash.js +15 -0
- package/dist/tests/fourslash/completions.parentFolder.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.parentFolders.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.parentFolders.fourslash.js +68 -0
- package/dist/tests/fourslash/completions.parentFolders.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.plainText.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.plainText.fourslash.js +34 -0
- package/dist/tests/fourslash/completions.plainText.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.private.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.private.fourslash.js +61 -0
- package/dist/tests/fourslash/completions.private.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.property.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.property.fourslash.js +28 -0
- package/dist/tests/fourslash/completions.property.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.js +64 -0
- package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.self.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.self.fourslash.js +43 -0
- package/dist/tests/fourslash/completions.self.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.js +71 -0
- package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.fourslash.js +78 -0
- package/dist/tests/fourslash/completions.stringLiteral.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.typeAlias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.typeAlias.fourslash.js +29 -0
- package/dist/tests/fourslash/completions.typeAlias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.typeshed.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.typeshed.fourslash.js +9 -0
- package/dist/tests/fourslash/completions.typeshed.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.vardecls.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.vardecls.fourslash.js +33 -0
- package/dist/tests/fourslash/completions.vardecls.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.variableDocStrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.variableDocStrings.fourslash.js +68 -0
- package/dist/tests/fourslash/completions.variableDocStrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.wildcardimports.fourslash.js +109 -0
- package/dist/tests/fourslash/completions.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.with.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.with.fourslash.js +25 -0
- package/dist/tests/fourslash/completions.with.fourslash.js.map +1 -0
- package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.js +64 -0
- package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.js +24 -0
- package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.classes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.classes.fourslash.js +93 -0
- package/dist/tests/fourslash/findDefinitions.classes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.js +23 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.js +19 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.js +23 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.js +20 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.fields.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.fields.fourslash.js +123 -0
- package/dist/tests/fourslash/findDefinitions.fields.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.functions.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.functions.fourslash.js +79 -0
- package/dist/tests/fourslash/findDefinitions.functions.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.methods.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.methods.fourslash.js +154 -0
- package/dist/tests/fourslash/findDefinitions.methods.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.modules.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.modules.fourslash.js +42 -0
- package/dist/tests/fourslash/findDefinitions.modules.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.js +34 -0
- package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.overloads.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.overloads.fourslash.js +213 -0
- package/dist/tests/fourslash/findDefinitions.overloads.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.parameters.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.parameters.fourslash.js +154 -0
- package/dist/tests/fourslash/findDefinitions.parameters.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.js +23 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.js +29 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.js +30 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.js +25 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.js +26 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.js +28 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.js +33 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.js +26 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.js +25 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.js +25 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.js +20 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.js +20 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.js +59 -0
- package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.js +59 -0
- package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.js +94 -0
- package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.variables.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.variables.fourslash.js +79 -0
- package/dist/tests/fourslash/findDefinitions.variables.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.js +106 -0
- package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.js +24 -0
- package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.js +66 -0
- package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.js +26 -0
- package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.js +36 -0
- package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.fourslash.js +30 -0
- package/dist/tests/fourslash/findallreferences.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.importalias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.importalias.fourslash.js +30 -0
- package/dist/tests/fourslash/findallreferences.importalias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.js +46 -0
- package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.module.nested.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.module.nested.fourslash.js +60 -0
- package/dist/tests/fourslash/findallreferences.module.nested.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.js +54 -0
- package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.modules.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.modules.fourslash.js +41 -0
- package/dist/tests/fourslash/findallreferences.modules.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.js +83 -0
- package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.openFiles.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.openFiles.fourslash.js +32 -0
- package/dist/tests/fourslash/findallreferences.openFiles.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.parameter.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.parameter.fourslash.js +22 -0
- package/dist/tests/fourslash/findallreferences.parameter.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.js +29 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.js +33 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.js +36 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.js +44 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.js +31 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.variable.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.variable.fourslash.js +22 -0
- package/dist/tests/fourslash/findallreferences.variable.fourslash.js.map +1 -0
- package/dist/tests/fourslash/fourslash.d.ts +301 -0
- package/dist/tests/fourslash/fourslash.js +25 -0
- package/dist/tests/fourslash/fourslash.js.map +1 -0
- package/dist/tests/fourslash/highlightreferences.attributes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/highlightreferences.attributes.fourslash.js +30 -0
- package/dist/tests/fourslash/highlightreferences.attributes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.js +63 -0
- package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.classNoInit.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.classNoInit.fourslash.js +14 -0
- package/dist/tests/fourslash/hover.classNoInit.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromScr.stringFormat.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromScr.stringFormat.fourslash.js +47 -0
- package/dist/tests/fourslash/hover.docFromScr.stringFormat.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.fourslash.js +77 -0
- package/dist/tests/fourslash/hover.docFromSrc.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.js +22 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.js +22 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.js +21 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.js +20 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.js +38 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.js +25 -0
- package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.js +18 -0
- package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docstring.links.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docstring.links.fourslash.js +12 -0
- package/dist/tests/fourslash/hover.docstring.links.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docstring.overloads.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docstring.overloads.fourslash.js +38 -0
- package/dist/tests/fourslash/hover.docstring.overloads.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docstring.split.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docstring.split.fourslash.js +24 -0
- package/dist/tests/fourslash/hover.docstring.split.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.fourslash.js +20 -0
- package/dist/tests/fourslash/hover.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.import.django.view.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.import.django.view.fourslash.js +23 -0
- package/dist/tests/fourslash/hover.import.django.view.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.import.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.import.fourslash.js +10 -0
- package/dist/tests/fourslash/hover.import.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.js +61 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.js +51 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.js +40 -0
- package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.js +43 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.js +44 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.js +84 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.js +88 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.init.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.init.fourslash.js +38 -0
- package/dist/tests/fourslash/hover.init.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.js +49 -0
- package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.js +39 -0
- package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.libStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.libStub.fourslash.js +39 -0
- package/dist/tests/fourslash/hover.libStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.js +14 -0
- package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.plainText.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.plainText.fourslash.js +20 -0
- package/dist/tests/fourslash/hover.plainText.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.typedDict.key.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.typedDict.key.fourslash.js +50 -0
- package/dist/tests/fourslash/hover.typedDict.key.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.variable.docString.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.variable.docString.fourslash.js +35 -0
- package/dist/tests/fourslash/hover.variable.docString.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.wildcardimports.fourslash.js +73 -0
- package/dist/tests/fourslash/hover.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.publicSymbols.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.publicSymbols.fourslash.js +63 -0
- package/dist/tests/fourslash/import.publicSymbols.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.js +72 -0
- package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.js +61 -0
- package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.js +35 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.js +35 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.wildcard.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.wildcard.fourslash.js +24 -0
- package/dist/tests/fourslash/import.wildcard.fourslash.js.map +1 -0
- package/dist/tests/fourslash/importnotresolved.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/importnotresolved.fourslash.js +13 -0
- package/dist/tests/fourslash/importnotresolved.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.js +18 -0
- package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingModuleSource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingModuleSource.fourslash.js +13 -0
- package/dist/tests/fourslash/missingModuleSource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.js +31 -0
- package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.d.ts +7 -0
- package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.js +44 -0
- package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.d.ts +7 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.js +35 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.d.ts +7 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.js +35 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingTypeStub.fourslash.js +18 -0
- package/dist/tests/fourslash/missingTypeStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.js +34 -0
- package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.js.map +1 -0
- package/dist/tests/fourslash/noerrors.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/noerrors.fourslash.js +9 -0
- package/dist/tests/fourslash/noerrors.fourslash.js.map +1 -0
- package/dist/tests/fourslash/orderImports1.command.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/orderImports1.command.fourslash.js +17 -0
- package/dist/tests/fourslash/orderImports1.command.fourslash.js.map +1 -0
- package/dist/tests/fourslash/orderImports2.command.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/orderImports2.command.fourslash.js +21 -0
- package/dist/tests/fourslash/orderImports2.command.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.fourslash.js +23 -0
- package/dist/tests/fourslash/rename.externallyHidden.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.js +23 -0
- package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.fourslash.js +26 -0
- package/dist/tests/fourslash/rename.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.library.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.library.fourslash.js +26 -0
- package/dist/tests/fourslash/rename.library.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.js +29 -0
- package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.multipleDecl.fourslash.d.ts +2 -0
- package/dist/tests/fourslash/rename.multipleDecl.fourslash.js +19 -0
- package/dist/tests/fourslash/rename.multipleDecl.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.sourceAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.sourceAndStub.fourslash.js +33 -0
- package/dist/tests/fourslash/rename.sourceAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.string.excluded.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.string.excluded.fourslash.js +39 -0
- package/dist/tests/fourslash/rename.string.excluded.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.string.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.string.fourslash.js +25 -0
- package/dist/tests/fourslash/rename.string.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.js +62 -0
- package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.complicated.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.complicated.fourslash.js +97 -0
- package/dist/tests/fourslash/signature.complicated.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.cornercases.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.cornercases.fourslash.js +22 -0
- package/dist/tests/fourslash/signature.cornercases.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.docstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.docstrings.fourslash.js +42 -0
- package/dist/tests/fourslash/signature.docstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.js +49 -0
- package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.js +115 -0
- package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.overload.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.overload.fourslash.js +63 -0
- package/dist/tests/fourslash/signature.overload.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.simple.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.simple.fourslash.js +104 -0
- package/dist/tests/fourslash/signature.simple.fourslash.js.map +1 -0
- package/dist/tests/harness/fourslash/fourSlashParser.d.ts +10 -0
- package/dist/tests/harness/fourslash/fourSlashParser.js +347 -0
- package/dist/tests/harness/fourslash/fourSlashParser.js.map +1 -0
- package/dist/tests/harness/fourslash/fourSlashTypes.d.ts +81 -0
- package/dist/tests/harness/fourslash/fourSlashTypes.js +65 -0
- package/dist/tests/harness/fourslash/fourSlashTypes.js.map +1 -0
- package/dist/tests/harness/fourslash/runner.d.ts +20 -0
- package/dist/tests/harness/fourslash/runner.js +93 -0
- package/dist/tests/harness/fourslash/runner.js.map +1 -0
- package/dist/tests/harness/fourslash/testLanguageService.d.ts +40 -0
- package/dist/tests/harness/fourslash/testLanguageService.js +120 -0
- package/dist/tests/harness/fourslash/testLanguageService.js.map +1 -0
- package/dist/tests/harness/fourslash/testState.Consts.d.ts +11 -0
- package/dist/tests/harness/fourslash/testState.Consts.js +50 -0
- package/dist/tests/harness/fourslash/testState.Consts.js.map +1 -0
- package/dist/tests/harness/fourslash/testState.d.ts +232 -0
- package/dist/tests/harness/fourslash/testState.js +1381 -0
- package/dist/tests/harness/fourslash/testState.js.map +1 -0
- package/dist/tests/harness/testAccessHost.d.ts +8 -0
- package/dist/tests/harness/testAccessHost.js +26 -0
- package/dist/tests/harness/testAccessHost.js.map +1 -0
- package/dist/tests/harness/testHost.d.ts +16 -0
- package/dist/tests/harness/testHost.js +161 -0
- package/dist/tests/harness/testHost.js.map +1 -0
- package/dist/tests/harness/utils.d.ts +74 -0
- package/dist/tests/harness/utils.js +328 -0
- package/dist/tests/harness/utils.js.map +1 -0
- package/dist/tests/harness/vfs/factory.d.ts +32 -0
- package/dist/tests/harness/vfs/factory.js +173 -0
- package/dist/tests/harness/vfs/factory.js.map +1 -0
- package/dist/tests/harness/vfs/filesystem.d.ts +430 -0
- package/dist/tests/harness/vfs/filesystem.js +1455 -0
- package/dist/tests/harness/vfs/filesystem.js.map +1 -0
- package/dist/tests/harness/vfs/pathValidation.d.ts +24 -0
- package/dist/tests/harness/vfs/pathValidation.js +123 -0
- package/dist/tests/harness/vfs/pathValidation.js.map +1 -0
- package/dist/tests/importAdder.test.d.ts +1 -0
- package/dist/tests/importAdder.test.js +1192 -0
- package/dist/tests/importAdder.test.js.map +1 -0
- package/dist/tests/importResolver.test.d.ts +1 -0
- package/dist/tests/importResolver.test.js +450 -0
- package/dist/tests/importResolver.test.js.map +1 -0
- package/dist/tests/importStatementUtils.test.d.ts +1 -0
- package/dist/tests/importStatementUtils.test.js +371 -0
- package/dist/tests/importStatementUtils.test.js.map +1 -0
- package/dist/tests/indentationUtils.ptvs.test.d.ts +1 -0
- package/dist/tests/indentationUtils.ptvs.test.js +324 -0
- package/dist/tests/indentationUtils.ptvs.test.js.map +1 -0
- package/dist/tests/indentationUtils.reindent.test.d.ts +1 -0
- package/dist/tests/indentationUtils.reindent.test.js +332 -0
- package/dist/tests/indentationUtils.reindent.test.js.map +1 -0
- package/dist/tests/indentationUtils.test.d.ts +1 -0
- package/dist/tests/indentationUtils.test.js +375 -0
- package/dist/tests/indentationUtils.test.js.map +1 -0
- package/dist/tests/ipythonMode.test.d.ts +1 -0
- package/dist/tests/ipythonMode.test.js +303 -0
- package/dist/tests/ipythonMode.test.js.map +1 -0
- package/dist/tests/localizer.test.d.ts +1 -0
- package/dist/tests/localizer.test.js +64 -0
- package/dist/tests/localizer.test.js.map +1 -0
- package/dist/tests/parseTreeUtils.test.d.ts +1 -0
- package/dist/tests/parseTreeUtils.test.js +228 -0
- package/dist/tests/parseTreeUtils.test.js.map +1 -0
- package/dist/tests/parser.test.d.ts +1 -0
- package/dist/tests/parser.test.js +101 -0
- package/dist/tests/parser.test.js.map +1 -0
- package/dist/tests/pathUtils.test.d.ts +1 -0
- package/dist/tests/pathUtils.test.js +253 -0
- package/dist/tests/pathUtils.test.js.map +1 -0
- package/dist/tests/pyrightFileSystem.test.d.ts +1 -0
- package/dist/tests/pyrightFileSystem.test.js +152 -0
- package/dist/tests/pyrightFileSystem.test.js.map +1 -0
- package/dist/tests/renameModule.folder.test.d.ts +1 -0
- package/dist/tests/renameModule.folder.test.js +229 -0
- package/dist/tests/renameModule.folder.test.js.map +1 -0
- package/dist/tests/renameModule.fromImports.test.d.ts +1 -0
- package/dist/tests/renameModule.fromImports.test.js +790 -0
- package/dist/tests/renameModule.fromImports.test.js.map +1 -0
- package/dist/tests/renameModule.imports.test.d.ts +1 -0
- package/dist/tests/renameModule.imports.test.js +380 -0
- package/dist/tests/renameModule.imports.test.js.map +1 -0
- package/dist/tests/renameModule.misc.test.d.ts +1 -0
- package/dist/tests/renameModule.misc.test.js +615 -0
- package/dist/tests/renameModule.misc.test.js.map +1 -0
- package/dist/tests/renameModule.relativePath.test.d.ts +1 -0
- package/dist/tests/renameModule.relativePath.test.js +231 -0
- package/dist/tests/renameModule.relativePath.test.js.map +1 -0
- package/dist/tests/renameModuleTestUtils.d.ts +4 -0
- package/dist/tests/renameModuleTestUtils.js +148 -0
- package/dist/tests/renameModuleTestUtils.js.map +1 -0
- package/dist/tests/sourceFile.test.d.ts +1 -0
- package/dist/tests/sourceFile.test.js +25 -0
- package/dist/tests/sourceFile.test.js.map +1 -0
- package/dist/tests/stringUtils.test.d.ts +1 -0
- package/dist/tests/stringUtils.test.js +69 -0
- package/dist/tests/stringUtils.test.js.map +1 -0
- package/dist/tests/symbolNameUtils.test.d.ts +1 -0
- package/dist/tests/symbolNameUtils.test.js +83 -0
- package/dist/tests/symbolNameUtils.test.js.map +1 -0
- package/dist/tests/testState.test.d.ts +1 -0
- package/dist/tests/testState.test.js +521 -0
- package/dist/tests/testState.test.js.map +1 -0
- package/dist/tests/testUtils.d.ts +27 -0
- package/dist/tests/testUtils.js +213 -0
- package/dist/tests/testUtils.js.map +1 -0
- package/dist/tests/tokenizer.test.d.ts +1 -0
- package/dist/tests/tokenizer.test.js +1277 -0
- package/dist/tests/tokenizer.test.js.map +1 -0
- package/dist/tests/typeEvaluator1.test.d.ts +1 -0
- package/dist/tests/typeEvaluator1.test.js +1023 -0
- package/dist/tests/typeEvaluator1.test.js.map +1 -0
- package/dist/tests/typeEvaluator2.test.d.ts +1 -0
- package/dist/tests/typeEvaluator2.test.js +869 -0
- package/dist/tests/typeEvaluator2.test.js.map +1 -0
- package/dist/tests/typeEvaluator3.test.d.ts +1 -0
- package/dist/tests/typeEvaluator3.test.js +915 -0
- package/dist/tests/typeEvaluator3.test.js.map +1 -0
- package/dist/tests/typeEvaluator4.test.d.ts +1 -0
- package/dist/tests/typeEvaluator4.test.js +901 -0
- package/dist/tests/typeEvaluator4.test.js.map +1 -0
- package/dist/tests/updateSymbolReference.test.d.ts +1 -0
- package/dist/tests/updateSymbolReference.test.js +980 -0
- package/dist/tests/updateSymbolReference.test.js.map +1 -0
- package/dist/tests/zipfs.test.d.ts +1 -0
- package/dist/tests/zipfs.test.js +112 -0
- package/dist/tests/zipfs.test.js.map +1 -0
- package/dist/workspaceMap.d.ts +6 -0
- package/dist/workspaceMap.js +73 -0
- package/dist/workspaceMap.js.map +1 -0
- package/package.json +45 -0
@@ -0,0 +1,908 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* configOptions.ts
|
4
|
+
* Copyright (c) Microsoft Corporation.
|
5
|
+
* Licensed under the MIT license.
|
6
|
+
* Author: Eric Traut
|
7
|
+
*
|
8
|
+
* Class that holds the configuration options for the analyzer.
|
9
|
+
*/
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
11
|
+
if (k2 === undefined) k2 = k;
|
12
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
13
|
+
}) : (function(o, m, k, k2) {
|
14
|
+
if (k2 === undefined) k2 = k;
|
15
|
+
o[k2] = m[k];
|
16
|
+
}));
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
19
|
+
}) : function(o, v) {
|
20
|
+
o["default"] = v;
|
21
|
+
});
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
23
|
+
if (mod && mod.__esModule) return mod;
|
24
|
+
var result = {};
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
26
|
+
__setModuleDefault(result, mod);
|
27
|
+
return result;
|
28
|
+
};
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
30
|
+
exports.ConfigOptions = exports.getStrictDiagnosticRuleSet = exports.getBasicDiagnosticRuleSet = exports.getOffDiagnosticRuleSet = exports.getStrictModeNotOverriddenRules = exports.getDiagLevelDiagnosticRules = exports.getBooleanDiagnosticRules = exports.cloneDiagnosticRuleSet = exports.ExecutionEnvironment = exports.PythonPlatform = void 0;
|
31
|
+
const path_1 = require("path");
|
32
|
+
const pythonPathUtils_1 = require("../analyzer/pythonPathUtils");
|
33
|
+
const pathConsts = __importStar(require("../common/pathConsts"));
|
34
|
+
const collectionUtils_1 = require("./collectionUtils");
|
35
|
+
const diagnosticRules_1 = require("./diagnosticRules");
|
36
|
+
const pathUtils_1 = require("./pathUtils");
|
37
|
+
const pythonVersion_1 = require("./pythonVersion");
|
38
|
+
var PythonPlatform;
|
39
|
+
(function (PythonPlatform) {
|
40
|
+
PythonPlatform["Darwin"] = "Darwin";
|
41
|
+
PythonPlatform["Windows"] = "Windows";
|
42
|
+
PythonPlatform["Linux"] = "Linux";
|
43
|
+
})(PythonPlatform = exports.PythonPlatform || (exports.PythonPlatform = {}));
|
44
|
+
class ExecutionEnvironment {
|
45
|
+
// Default to "." which indicates every file in the project.
|
46
|
+
constructor(root, defaultPythonVersion, defaultPythonPlatform, defaultExtraPaths) {
|
47
|
+
// Default to no extra paths.
|
48
|
+
this.extraPaths = [];
|
49
|
+
this.root = root || undefined;
|
50
|
+
this.pythonVersion = defaultPythonVersion || pythonVersion_1.latestStablePythonVersion;
|
51
|
+
this.pythonPlatform = defaultPythonPlatform;
|
52
|
+
this.extraPaths = [...(defaultExtraPaths !== null && defaultExtraPaths !== void 0 ? defaultExtraPaths : [])];
|
53
|
+
}
|
54
|
+
}
|
55
|
+
exports.ExecutionEnvironment = ExecutionEnvironment;
|
56
|
+
function cloneDiagnosticRuleSet(diagSettings) {
|
57
|
+
// Create a shallow copy of the existing object.
|
58
|
+
return Object.assign({}, diagSettings);
|
59
|
+
}
|
60
|
+
exports.cloneDiagnosticRuleSet = cloneDiagnosticRuleSet;
|
61
|
+
// Returns a list of the diagnostic rules that are configured with
|
62
|
+
// a true or false value.
|
63
|
+
function getBooleanDiagnosticRules(includeNonOverridable = false) {
|
64
|
+
const boolRules = [
|
65
|
+
diagnosticRules_1.DiagnosticRule.strictListInference,
|
66
|
+
diagnosticRules_1.DiagnosticRule.strictSetInference,
|
67
|
+
diagnosticRules_1.DiagnosticRule.strictDictionaryInference,
|
68
|
+
diagnosticRules_1.DiagnosticRule.strictParameterNoneValue,
|
69
|
+
];
|
70
|
+
if (includeNonOverridable) {
|
71
|
+
// Do not include this this one because we don't
|
72
|
+
// want to override it in strict mode or support
|
73
|
+
// it within pyright comments.
|
74
|
+
boolRules.push(diagnosticRules_1.DiagnosticRule.enableTypeIgnoreComments);
|
75
|
+
}
|
76
|
+
return boolRules;
|
77
|
+
}
|
78
|
+
exports.getBooleanDiagnosticRules = getBooleanDiagnosticRules;
|
79
|
+
// Returns a list of the diagnostic rules that are configured with
|
80
|
+
// a diagnostic level ('none', 'error', etc.).
|
81
|
+
function getDiagLevelDiagnosticRules() {
|
82
|
+
return [
|
83
|
+
diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues,
|
84
|
+
diagnosticRules_1.DiagnosticRule.reportPropertyTypeMismatch,
|
85
|
+
diagnosticRules_1.DiagnosticRule.reportFunctionMemberAccess,
|
86
|
+
diagnosticRules_1.DiagnosticRule.reportMissingImports,
|
87
|
+
diagnosticRules_1.DiagnosticRule.reportMissingModuleSource,
|
88
|
+
diagnosticRules_1.DiagnosticRule.reportMissingTypeStubs,
|
89
|
+
diagnosticRules_1.DiagnosticRule.reportImportCycles,
|
90
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedImport,
|
91
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedClass,
|
92
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedFunction,
|
93
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedVariable,
|
94
|
+
diagnosticRules_1.DiagnosticRule.reportDuplicateImport,
|
95
|
+
diagnosticRules_1.DiagnosticRule.reportWildcardImportFromLibrary,
|
96
|
+
diagnosticRules_1.DiagnosticRule.reportOptionalSubscript,
|
97
|
+
diagnosticRules_1.DiagnosticRule.reportOptionalMemberAccess,
|
98
|
+
diagnosticRules_1.DiagnosticRule.reportOptionalCall,
|
99
|
+
diagnosticRules_1.DiagnosticRule.reportOptionalIterable,
|
100
|
+
diagnosticRules_1.DiagnosticRule.reportOptionalContextManager,
|
101
|
+
diagnosticRules_1.DiagnosticRule.reportOptionalOperand,
|
102
|
+
diagnosticRules_1.DiagnosticRule.reportTypedDictNotRequiredAccess,
|
103
|
+
diagnosticRules_1.DiagnosticRule.reportUntypedFunctionDecorator,
|
104
|
+
diagnosticRules_1.DiagnosticRule.reportUntypedClassDecorator,
|
105
|
+
diagnosticRules_1.DiagnosticRule.reportUntypedBaseClass,
|
106
|
+
diagnosticRules_1.DiagnosticRule.reportUntypedNamedTuple,
|
107
|
+
diagnosticRules_1.DiagnosticRule.reportPrivateUsage,
|
108
|
+
diagnosticRules_1.DiagnosticRule.reportTypeCommentUsage,
|
109
|
+
diagnosticRules_1.DiagnosticRule.reportPrivateImportUsage,
|
110
|
+
diagnosticRules_1.DiagnosticRule.reportConstantRedefinition,
|
111
|
+
diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride,
|
112
|
+
diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride,
|
113
|
+
diagnosticRules_1.DiagnosticRule.reportInconsistentConstructor,
|
114
|
+
diagnosticRules_1.DiagnosticRule.reportOverlappingOverload,
|
115
|
+
diagnosticRules_1.DiagnosticRule.reportMissingSuperCall,
|
116
|
+
diagnosticRules_1.DiagnosticRule.reportUninitializedInstanceVariable,
|
117
|
+
diagnosticRules_1.DiagnosticRule.reportInvalidStringEscapeSequence,
|
118
|
+
diagnosticRules_1.DiagnosticRule.reportUnknownParameterType,
|
119
|
+
diagnosticRules_1.DiagnosticRule.reportUnknownArgumentType,
|
120
|
+
diagnosticRules_1.DiagnosticRule.reportUnknownLambdaType,
|
121
|
+
diagnosticRules_1.DiagnosticRule.reportUnknownVariableType,
|
122
|
+
diagnosticRules_1.DiagnosticRule.reportUnknownMemberType,
|
123
|
+
diagnosticRules_1.DiagnosticRule.reportMissingParameterType,
|
124
|
+
diagnosticRules_1.DiagnosticRule.reportMissingTypeArgument,
|
125
|
+
diagnosticRules_1.DiagnosticRule.reportInvalidTypeVarUse,
|
126
|
+
diagnosticRules_1.DiagnosticRule.reportCallInDefaultInitializer,
|
127
|
+
diagnosticRules_1.DiagnosticRule.reportUnnecessaryIsInstance,
|
128
|
+
diagnosticRules_1.DiagnosticRule.reportUnnecessaryCast,
|
129
|
+
diagnosticRules_1.DiagnosticRule.reportUnnecessaryComparison,
|
130
|
+
diagnosticRules_1.DiagnosticRule.reportAssertAlwaysTrue,
|
131
|
+
diagnosticRules_1.DiagnosticRule.reportSelfClsParameterName,
|
132
|
+
diagnosticRules_1.DiagnosticRule.reportImplicitStringConcatenation,
|
133
|
+
diagnosticRules_1.DiagnosticRule.reportUndefinedVariable,
|
134
|
+
diagnosticRules_1.DiagnosticRule.reportUnboundVariable,
|
135
|
+
diagnosticRules_1.DiagnosticRule.reportInvalidStubStatement,
|
136
|
+
diagnosticRules_1.DiagnosticRule.reportIncompleteStub,
|
137
|
+
diagnosticRules_1.DiagnosticRule.reportUnsupportedDunderAll,
|
138
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedCallResult,
|
139
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedCoroutine,
|
140
|
+
diagnosticRules_1.DiagnosticRule.reportUnusedExpression,
|
141
|
+
diagnosticRules_1.DiagnosticRule.reportUnnecessaryTypeIgnoreComment,
|
142
|
+
diagnosticRules_1.DiagnosticRule.reportMatchNotExhaustive,
|
143
|
+
];
|
144
|
+
}
|
145
|
+
exports.getDiagLevelDiagnosticRules = getDiagLevelDiagnosticRules;
|
146
|
+
function getStrictModeNotOverriddenRules() {
|
147
|
+
// In strict mode, the value in the user config file should be honored and
|
148
|
+
// not overwritten by the value from the strict rule set.
|
149
|
+
return [diagnosticRules_1.DiagnosticRule.reportMissingModuleSource];
|
150
|
+
}
|
151
|
+
exports.getStrictModeNotOverriddenRules = getStrictModeNotOverriddenRules;
|
152
|
+
function getOffDiagnosticRuleSet() {
|
153
|
+
const diagSettings = {
|
154
|
+
printUnknownAsAny: true,
|
155
|
+
omitTypeArgsIfAny: true,
|
156
|
+
omitUnannotatedParamType: true,
|
157
|
+
omitConditionalConstraint: true,
|
158
|
+
pep604Printing: true,
|
159
|
+
strictListInference: false,
|
160
|
+
strictSetInference: false,
|
161
|
+
strictDictionaryInference: false,
|
162
|
+
strictParameterNoneValue: true,
|
163
|
+
enableTypeIgnoreComments: true,
|
164
|
+
reportGeneralTypeIssues: 'none',
|
165
|
+
reportPropertyTypeMismatch: 'none',
|
166
|
+
reportFunctionMemberAccess: 'none',
|
167
|
+
reportMissingImports: 'warning',
|
168
|
+
reportMissingModuleSource: 'warning',
|
169
|
+
reportMissingTypeStubs: 'none',
|
170
|
+
reportImportCycles: 'none',
|
171
|
+
reportUnusedImport: 'none',
|
172
|
+
reportUnusedClass: 'none',
|
173
|
+
reportUnusedFunction: 'none',
|
174
|
+
reportUnusedVariable: 'none',
|
175
|
+
reportDuplicateImport: 'none',
|
176
|
+
reportWildcardImportFromLibrary: 'none',
|
177
|
+
reportOptionalSubscript: 'none',
|
178
|
+
reportOptionalMemberAccess: 'none',
|
179
|
+
reportOptionalCall: 'none',
|
180
|
+
reportOptionalIterable: 'none',
|
181
|
+
reportOptionalContextManager: 'none',
|
182
|
+
reportOptionalOperand: 'none',
|
183
|
+
reportTypedDictNotRequiredAccess: 'none',
|
184
|
+
reportUntypedFunctionDecorator: 'none',
|
185
|
+
reportUntypedClassDecorator: 'none',
|
186
|
+
reportUntypedBaseClass: 'none',
|
187
|
+
reportUntypedNamedTuple: 'none',
|
188
|
+
reportPrivateUsage: 'none',
|
189
|
+
reportTypeCommentUsage: 'none',
|
190
|
+
reportPrivateImportUsage: 'none',
|
191
|
+
reportConstantRedefinition: 'none',
|
192
|
+
reportIncompatibleMethodOverride: 'none',
|
193
|
+
reportIncompatibleVariableOverride: 'none',
|
194
|
+
reportInconsistentConstructor: 'none',
|
195
|
+
reportOverlappingOverload: 'none',
|
196
|
+
reportMissingSuperCall: 'none',
|
197
|
+
reportUninitializedInstanceVariable: 'none',
|
198
|
+
reportInvalidStringEscapeSequence: 'none',
|
199
|
+
reportUnknownParameterType: 'none',
|
200
|
+
reportUnknownArgumentType: 'none',
|
201
|
+
reportUnknownLambdaType: 'none',
|
202
|
+
reportUnknownVariableType: 'none',
|
203
|
+
reportUnknownMemberType: 'none',
|
204
|
+
reportMissingParameterType: 'none',
|
205
|
+
reportMissingTypeArgument: 'none',
|
206
|
+
reportInvalidTypeVarUse: 'none',
|
207
|
+
reportCallInDefaultInitializer: 'none',
|
208
|
+
reportUnnecessaryIsInstance: 'none',
|
209
|
+
reportUnnecessaryCast: 'none',
|
210
|
+
reportUnnecessaryComparison: 'none',
|
211
|
+
reportAssertAlwaysTrue: 'none',
|
212
|
+
reportSelfClsParameterName: 'none',
|
213
|
+
reportImplicitStringConcatenation: 'none',
|
214
|
+
reportUnboundVariable: 'none',
|
215
|
+
reportUndefinedVariable: 'warning',
|
216
|
+
reportInvalidStubStatement: 'none',
|
217
|
+
reportIncompleteStub: 'none',
|
218
|
+
reportUnsupportedDunderAll: 'none',
|
219
|
+
reportUnusedCallResult: 'none',
|
220
|
+
reportUnusedCoroutine: 'none',
|
221
|
+
reportUnusedExpression: 'none',
|
222
|
+
reportUnnecessaryTypeIgnoreComment: 'none',
|
223
|
+
reportMatchNotExhaustive: 'none',
|
224
|
+
};
|
225
|
+
return diagSettings;
|
226
|
+
}
|
227
|
+
exports.getOffDiagnosticRuleSet = getOffDiagnosticRuleSet;
|
228
|
+
function getBasicDiagnosticRuleSet() {
|
229
|
+
const diagSettings = {
|
230
|
+
printUnknownAsAny: false,
|
231
|
+
omitTypeArgsIfAny: false,
|
232
|
+
omitUnannotatedParamType: true,
|
233
|
+
omitConditionalConstraint: false,
|
234
|
+
pep604Printing: true,
|
235
|
+
strictListInference: false,
|
236
|
+
strictSetInference: false,
|
237
|
+
strictDictionaryInference: false,
|
238
|
+
strictParameterNoneValue: true,
|
239
|
+
enableTypeIgnoreComments: true,
|
240
|
+
reportGeneralTypeIssues: 'error',
|
241
|
+
reportPropertyTypeMismatch: 'none',
|
242
|
+
reportFunctionMemberAccess: 'none',
|
243
|
+
reportMissingImports: 'error',
|
244
|
+
reportMissingModuleSource: 'warning',
|
245
|
+
reportMissingTypeStubs: 'none',
|
246
|
+
reportImportCycles: 'none',
|
247
|
+
reportUnusedImport: 'none',
|
248
|
+
reportUnusedClass: 'none',
|
249
|
+
reportUnusedFunction: 'none',
|
250
|
+
reportUnusedVariable: 'none',
|
251
|
+
reportDuplicateImport: 'none',
|
252
|
+
reportWildcardImportFromLibrary: 'warning',
|
253
|
+
reportOptionalSubscript: 'error',
|
254
|
+
reportOptionalMemberAccess: 'error',
|
255
|
+
reportOptionalCall: 'error',
|
256
|
+
reportOptionalIterable: 'error',
|
257
|
+
reportOptionalContextManager: 'error',
|
258
|
+
reportOptionalOperand: 'error',
|
259
|
+
reportTypedDictNotRequiredAccess: 'error',
|
260
|
+
reportUntypedFunctionDecorator: 'none',
|
261
|
+
reportUntypedClassDecorator: 'none',
|
262
|
+
reportUntypedBaseClass: 'none',
|
263
|
+
reportUntypedNamedTuple: 'none',
|
264
|
+
reportPrivateUsage: 'none',
|
265
|
+
reportTypeCommentUsage: 'none',
|
266
|
+
reportPrivateImportUsage: 'error',
|
267
|
+
reportConstantRedefinition: 'none',
|
268
|
+
reportIncompatibleMethodOverride: 'none',
|
269
|
+
reportIncompatibleVariableOverride: 'none',
|
270
|
+
reportInconsistentConstructor: 'none',
|
271
|
+
reportOverlappingOverload: 'none',
|
272
|
+
reportMissingSuperCall: 'none',
|
273
|
+
reportUninitializedInstanceVariable: 'none',
|
274
|
+
reportInvalidStringEscapeSequence: 'warning',
|
275
|
+
reportUnknownParameterType: 'none',
|
276
|
+
reportUnknownArgumentType: 'none',
|
277
|
+
reportUnknownLambdaType: 'none',
|
278
|
+
reportUnknownVariableType: 'none',
|
279
|
+
reportUnknownMemberType: 'none',
|
280
|
+
reportMissingParameterType: 'none',
|
281
|
+
reportMissingTypeArgument: 'none',
|
282
|
+
reportInvalidTypeVarUse: 'warning',
|
283
|
+
reportCallInDefaultInitializer: 'none',
|
284
|
+
reportUnnecessaryIsInstance: 'none',
|
285
|
+
reportUnnecessaryCast: 'none',
|
286
|
+
reportUnnecessaryComparison: 'none',
|
287
|
+
reportAssertAlwaysTrue: 'warning',
|
288
|
+
reportSelfClsParameterName: 'warning',
|
289
|
+
reportImplicitStringConcatenation: 'none',
|
290
|
+
reportUnboundVariable: 'error',
|
291
|
+
reportUndefinedVariable: 'error',
|
292
|
+
reportInvalidStubStatement: 'none',
|
293
|
+
reportIncompleteStub: 'none',
|
294
|
+
reportUnsupportedDunderAll: 'warning',
|
295
|
+
reportUnusedCallResult: 'none',
|
296
|
+
reportUnusedCoroutine: 'error',
|
297
|
+
reportUnusedExpression: 'warning',
|
298
|
+
reportUnnecessaryTypeIgnoreComment: 'none',
|
299
|
+
reportMatchNotExhaustive: 'none',
|
300
|
+
};
|
301
|
+
return diagSettings;
|
302
|
+
}
|
303
|
+
exports.getBasicDiagnosticRuleSet = getBasicDiagnosticRuleSet;
|
304
|
+
function getStrictDiagnosticRuleSet() {
|
305
|
+
const diagSettings = {
|
306
|
+
printUnknownAsAny: false,
|
307
|
+
omitTypeArgsIfAny: false,
|
308
|
+
omitUnannotatedParamType: false,
|
309
|
+
omitConditionalConstraint: false,
|
310
|
+
pep604Printing: true,
|
311
|
+
strictListInference: true,
|
312
|
+
strictSetInference: true,
|
313
|
+
strictDictionaryInference: true,
|
314
|
+
strictParameterNoneValue: true,
|
315
|
+
enableTypeIgnoreComments: true,
|
316
|
+
reportGeneralTypeIssues: 'error',
|
317
|
+
reportPropertyTypeMismatch: 'none',
|
318
|
+
reportFunctionMemberAccess: 'error',
|
319
|
+
reportMissingImports: 'error',
|
320
|
+
reportMissingModuleSource: 'warning',
|
321
|
+
reportMissingTypeStubs: 'error',
|
322
|
+
reportImportCycles: 'error',
|
323
|
+
reportUnusedImport: 'error',
|
324
|
+
reportUnusedClass: 'error',
|
325
|
+
reportUnusedFunction: 'error',
|
326
|
+
reportUnusedVariable: 'error',
|
327
|
+
reportDuplicateImport: 'error',
|
328
|
+
reportWildcardImportFromLibrary: 'error',
|
329
|
+
reportOptionalSubscript: 'error',
|
330
|
+
reportOptionalMemberAccess: 'error',
|
331
|
+
reportOptionalCall: 'error',
|
332
|
+
reportOptionalIterable: 'error',
|
333
|
+
reportOptionalContextManager: 'error',
|
334
|
+
reportOptionalOperand: 'error',
|
335
|
+
reportTypedDictNotRequiredAccess: 'error',
|
336
|
+
reportUntypedFunctionDecorator: 'error',
|
337
|
+
reportUntypedClassDecorator: 'error',
|
338
|
+
reportUntypedBaseClass: 'error',
|
339
|
+
reportUntypedNamedTuple: 'error',
|
340
|
+
reportPrivateUsage: 'error',
|
341
|
+
reportTypeCommentUsage: 'error',
|
342
|
+
reportPrivateImportUsage: 'error',
|
343
|
+
reportConstantRedefinition: 'error',
|
344
|
+
reportIncompatibleMethodOverride: 'error',
|
345
|
+
reportIncompatibleVariableOverride: 'error',
|
346
|
+
reportInconsistentConstructor: 'error',
|
347
|
+
reportOverlappingOverload: 'error',
|
348
|
+
reportMissingSuperCall: 'none',
|
349
|
+
reportUninitializedInstanceVariable: 'none',
|
350
|
+
reportInvalidStringEscapeSequence: 'error',
|
351
|
+
reportUnknownParameterType: 'error',
|
352
|
+
reportUnknownArgumentType: 'error',
|
353
|
+
reportUnknownLambdaType: 'error',
|
354
|
+
reportUnknownVariableType: 'error',
|
355
|
+
reportUnknownMemberType: 'error',
|
356
|
+
reportMissingParameterType: 'error',
|
357
|
+
reportMissingTypeArgument: 'error',
|
358
|
+
reportInvalidTypeVarUse: 'error',
|
359
|
+
reportCallInDefaultInitializer: 'none',
|
360
|
+
reportUnnecessaryIsInstance: 'error',
|
361
|
+
reportUnnecessaryCast: 'error',
|
362
|
+
reportUnnecessaryComparison: 'error',
|
363
|
+
reportAssertAlwaysTrue: 'error',
|
364
|
+
reportSelfClsParameterName: 'error',
|
365
|
+
reportImplicitStringConcatenation: 'none',
|
366
|
+
reportUnboundVariable: 'error',
|
367
|
+
reportUndefinedVariable: 'error',
|
368
|
+
reportInvalidStubStatement: 'error',
|
369
|
+
reportIncompleteStub: 'error',
|
370
|
+
reportUnsupportedDunderAll: 'error',
|
371
|
+
reportUnusedCallResult: 'none',
|
372
|
+
reportUnusedCoroutine: 'error',
|
373
|
+
reportUnusedExpression: 'error',
|
374
|
+
reportUnnecessaryTypeIgnoreComment: 'none',
|
375
|
+
reportMatchNotExhaustive: 'error',
|
376
|
+
};
|
377
|
+
return diagSettings;
|
378
|
+
}
|
379
|
+
exports.getStrictDiagnosticRuleSet = getStrictDiagnosticRuleSet;
|
380
|
+
// Internal configuration options. These are derived from a combination
|
381
|
+
// of the command line and from a JSON-based config file.
|
382
|
+
class ConfigOptions {
|
383
|
+
constructor(projectRoot, typeCheckingMode) {
|
384
|
+
// A list of file specs to include in the analysis. Can contain
|
385
|
+
// directories, in which case all "*.py" files within those directories
|
386
|
+
// are included.
|
387
|
+
this.include = [];
|
388
|
+
// A list of file specs to exclude from the analysis (overriding include
|
389
|
+
// if necessary). Can contain directories, in which case all "*.py" files
|
390
|
+
// within those directories are included.
|
391
|
+
this.exclude = [];
|
392
|
+
// A list of file specs whose errors and warnings should be ignored even
|
393
|
+
// if they are included in the transitive closure of included files.
|
394
|
+
this.ignore = [];
|
395
|
+
// A list of file specs that should be analyzed using "strict" mode.
|
396
|
+
this.strict = [];
|
397
|
+
// A set of defined constants that are used by the binder to determine
|
398
|
+
// whether runtime conditions should evaluate to True or False.
|
399
|
+
this.defineConstant = new Map();
|
400
|
+
// Offer auto-import completions.
|
401
|
+
this.autoImportCompletions = true;
|
402
|
+
// Use indexing.
|
403
|
+
this.indexing = false;
|
404
|
+
// Use type evaluator call tracking
|
405
|
+
this.logTypeEvaluationTime = false;
|
406
|
+
// Minimum threshold for type eval logging
|
407
|
+
this.typeEvaluationTimeThreshold = 50;
|
408
|
+
// Was this config initialized from JSON (pyrightconfig/pyproject)?
|
409
|
+
this.initializedFromJson = false;
|
410
|
+
// Should we skip analysis of all functions and methods that have
|
411
|
+
// no parameter ore return type annotations?
|
412
|
+
this.analyzeUnannotatedFunctions = true;
|
413
|
+
//---------------------------------------------------------------
|
414
|
+
// Parsing and Import Resolution Settings
|
415
|
+
// Parameters that specify the execution environment for
|
416
|
+
// the files being analyzed.
|
417
|
+
this.executionEnvironments = [];
|
418
|
+
this.projectRoot = projectRoot;
|
419
|
+
this.typeCheckingMode = typeCheckingMode;
|
420
|
+
this.diagnosticRuleSet = ConfigOptions.getDiagnosticRuleSet(typeCheckingMode);
|
421
|
+
}
|
422
|
+
static getDiagnosticRuleSet(typeCheckingMode) {
|
423
|
+
if (typeCheckingMode === 'strict') {
|
424
|
+
return getStrictDiagnosticRuleSet();
|
425
|
+
}
|
426
|
+
if (typeCheckingMode === 'off') {
|
427
|
+
return getOffDiagnosticRuleSet();
|
428
|
+
}
|
429
|
+
return getBasicDiagnosticRuleSet();
|
430
|
+
}
|
431
|
+
getDefaultExecEnvironment() {
|
432
|
+
return new ExecutionEnvironment(this.projectRoot, this.defaultPythonVersion, this.defaultPythonPlatform, this.defaultExtraPaths);
|
433
|
+
}
|
434
|
+
// Finds the best execution environment for a given file path. The
|
435
|
+
// specified file path should be absolute.
|
436
|
+
// If no matching execution environment can be found, a default
|
437
|
+
// execution environment is used.
|
438
|
+
findExecEnvironment(filePath) {
|
439
|
+
var _a;
|
440
|
+
return ((_a = this.executionEnvironments.find((env) => {
|
441
|
+
const envRoot = (0, pathUtils_1.ensureTrailingDirectorySeparator)((0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, env.root)));
|
442
|
+
return filePath.startsWith(envRoot);
|
443
|
+
})) !== null && _a !== void 0 ? _a : this.getDefaultExecEnvironment());
|
444
|
+
}
|
445
|
+
getExecutionEnvironments() {
|
446
|
+
if (this.executionEnvironments.length > 0) {
|
447
|
+
return this.executionEnvironments;
|
448
|
+
}
|
449
|
+
return [this.getDefaultExecEnvironment()];
|
450
|
+
}
|
451
|
+
// Initialize the structure from a JSON object.
|
452
|
+
initializeFromJson(configObj, typeCheckingMode, console, fs, host, diagnosticOverrides, skipIncludeSection = false) {
|
453
|
+
this.initializedFromJson = true;
|
454
|
+
// Read the "include" entry.
|
455
|
+
if (!skipIncludeSection) {
|
456
|
+
this.include = [];
|
457
|
+
if (configObj.include !== undefined) {
|
458
|
+
if (!Array.isArray(configObj.include)) {
|
459
|
+
console.error(`Config "include" entry must must contain an array.`);
|
460
|
+
}
|
461
|
+
else {
|
462
|
+
const filesList = configObj.include;
|
463
|
+
filesList.forEach((fileSpec, index) => {
|
464
|
+
if (typeof fileSpec !== 'string') {
|
465
|
+
console.error(`Index ${index} of "include" array should be a string.`);
|
466
|
+
}
|
467
|
+
else if ((0, path_1.isAbsolute)(fileSpec)) {
|
468
|
+
console.error(`Ignoring path "${fileSpec}" in "include" array because it is not relative.`);
|
469
|
+
}
|
470
|
+
else {
|
471
|
+
this.include.push((0, pathUtils_1.getFileSpec)(fs, this.projectRoot, fileSpec));
|
472
|
+
}
|
473
|
+
});
|
474
|
+
}
|
475
|
+
}
|
476
|
+
}
|
477
|
+
// Read the "exclude" entry.
|
478
|
+
this.exclude = [];
|
479
|
+
if (configObj.exclude !== undefined) {
|
480
|
+
if (!Array.isArray(configObj.exclude)) {
|
481
|
+
console.error(`Config "exclude" entry must contain an array.`);
|
482
|
+
}
|
483
|
+
else {
|
484
|
+
const filesList = configObj.exclude;
|
485
|
+
filesList.forEach((fileSpec, index) => {
|
486
|
+
if (typeof fileSpec !== 'string') {
|
487
|
+
console.error(`Index ${index} of "exclude" array should be a string.`);
|
488
|
+
}
|
489
|
+
else if ((0, path_1.isAbsolute)(fileSpec)) {
|
490
|
+
console.error(`Ignoring path "${fileSpec}" in "exclude" array because it is not relative.`);
|
491
|
+
}
|
492
|
+
else {
|
493
|
+
this.exclude.push((0, pathUtils_1.getFileSpec)(fs, this.projectRoot, fileSpec));
|
494
|
+
}
|
495
|
+
});
|
496
|
+
}
|
497
|
+
}
|
498
|
+
// Read the "ignore" entry.
|
499
|
+
this.ignore = [];
|
500
|
+
if (configObj.ignore !== undefined) {
|
501
|
+
if (!Array.isArray(configObj.ignore)) {
|
502
|
+
console.error(`Config "ignore" entry must contain an array.`);
|
503
|
+
}
|
504
|
+
else {
|
505
|
+
const filesList = configObj.ignore;
|
506
|
+
filesList.forEach((fileSpec, index) => {
|
507
|
+
if (typeof fileSpec !== 'string') {
|
508
|
+
console.error(`Index ${index} of "ignore" array should be a string.`);
|
509
|
+
}
|
510
|
+
else if ((0, path_1.isAbsolute)(fileSpec)) {
|
511
|
+
console.error(`Ignoring path "${fileSpec}" in "ignore" array because it is not relative.`);
|
512
|
+
}
|
513
|
+
else {
|
514
|
+
this.ignore.push((0, pathUtils_1.getFileSpec)(fs, this.projectRoot, fileSpec));
|
515
|
+
}
|
516
|
+
});
|
517
|
+
}
|
518
|
+
}
|
519
|
+
// Read the "strict" entry.
|
520
|
+
this.strict = [];
|
521
|
+
if (configObj.strict !== undefined) {
|
522
|
+
if (!Array.isArray(configObj.strict)) {
|
523
|
+
console.error(`Config "strict" entry must contain an array.`);
|
524
|
+
}
|
525
|
+
else {
|
526
|
+
const filesList = configObj.strict;
|
527
|
+
filesList.forEach((fileSpec, index) => {
|
528
|
+
if (typeof fileSpec !== 'string') {
|
529
|
+
console.error(`Index ${index} of "strict" array should be a string.`);
|
530
|
+
}
|
531
|
+
else if ((0, path_1.isAbsolute)(fileSpec)) {
|
532
|
+
console.error(`Ignoring path "${fileSpec}" in "strict" array because it is not relative.`);
|
533
|
+
}
|
534
|
+
else {
|
535
|
+
this.strict.push((0, pathUtils_1.getFileSpec)(fs, this.projectRoot, fileSpec));
|
536
|
+
}
|
537
|
+
});
|
538
|
+
}
|
539
|
+
}
|
540
|
+
// If there is a "typeCheckingMode", it can override the provided setting.
|
541
|
+
let configTypeCheckingMode;
|
542
|
+
if (configObj.typeCheckingMode !== undefined) {
|
543
|
+
if (configObj.typeCheckingMode === 'off' ||
|
544
|
+
configObj.typeCheckingMode === 'basic' ||
|
545
|
+
configObj.typeCheckingMode === 'strict') {
|
546
|
+
configTypeCheckingMode = configObj.typeCheckingMode;
|
547
|
+
}
|
548
|
+
else {
|
549
|
+
console.error(`Config "typeCheckingMode" entry must contain "off", "basic", or "strict".`);
|
550
|
+
}
|
551
|
+
}
|
552
|
+
if (configObj.useLibraryCodeForTypes !== undefined) {
|
553
|
+
if (typeof configObj.useLibraryCodeForTypes === 'boolean') {
|
554
|
+
this.useLibraryCodeForTypes = configObj.useLibraryCodeForTypes;
|
555
|
+
}
|
556
|
+
else {
|
557
|
+
console.error(`Config "useLibraryCodeForTypes" entry must be true or false.`);
|
558
|
+
}
|
559
|
+
}
|
560
|
+
this.typeCheckingMode = configTypeCheckingMode || typeCheckingMode;
|
561
|
+
const defaultSettings = ConfigOptions.getDiagnosticRuleSet(this.typeCheckingMode);
|
562
|
+
// Start with the default values for all rules in the rule set.
|
563
|
+
this.diagnosticRuleSet = { ...defaultSettings };
|
564
|
+
// Apply host-provided overrides.
|
565
|
+
this.applyDiagnosticOverrides(diagnosticOverrides);
|
566
|
+
// Apply overrides from the config file for the boolean rules.
|
567
|
+
getBooleanDiagnosticRules(/* includeNonOverridable */ true).forEach((ruleName) => {
|
568
|
+
this.diagnosticRuleSet[ruleName] = this._convertBoolean(configObj[ruleName], ruleName, this.diagnosticRuleSet[ruleName]);
|
569
|
+
});
|
570
|
+
// Apply overrides from the config file for the diagnostic level rules.
|
571
|
+
getDiagLevelDiagnosticRules().forEach((ruleName) => {
|
572
|
+
this.diagnosticRuleSet[ruleName] = this._convertDiagnosticLevel(configObj[ruleName], ruleName, this.diagnosticRuleSet[ruleName]);
|
573
|
+
});
|
574
|
+
// Read the "venvPath".
|
575
|
+
this.venvPath = undefined;
|
576
|
+
if (configObj.venvPath !== undefined) {
|
577
|
+
if (typeof configObj.venvPath !== 'string') {
|
578
|
+
console.error(`Config "venvPath" field must contain a string.`);
|
579
|
+
}
|
580
|
+
else {
|
581
|
+
this.venvPath = (0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, configObj.venvPath));
|
582
|
+
}
|
583
|
+
}
|
584
|
+
// Read the "venv" name.
|
585
|
+
this.venv = undefined;
|
586
|
+
if (configObj.venv !== undefined) {
|
587
|
+
if (typeof configObj.venv !== 'string') {
|
588
|
+
console.error(`Config "venv" field must contain a string.`);
|
589
|
+
}
|
590
|
+
else {
|
591
|
+
this.venv = configObj.venv;
|
592
|
+
}
|
593
|
+
}
|
594
|
+
// Read the default "extraPaths".
|
595
|
+
if (configObj.extraPaths !== undefined) {
|
596
|
+
this.defaultExtraPaths = [];
|
597
|
+
if (!Array.isArray(configObj.extraPaths)) {
|
598
|
+
console.error(`Config "extraPaths" field must contain an array.`);
|
599
|
+
}
|
600
|
+
else {
|
601
|
+
const pathList = configObj.extraPaths;
|
602
|
+
pathList.forEach((path, pathIndex) => {
|
603
|
+
if (typeof path !== 'string') {
|
604
|
+
console.error(`Config "extraPaths" field ${pathIndex} must be a string.`);
|
605
|
+
}
|
606
|
+
else {
|
607
|
+
this.defaultExtraPaths.push((0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, path)));
|
608
|
+
}
|
609
|
+
});
|
610
|
+
}
|
611
|
+
}
|
612
|
+
// Read the default "pythonVersion".
|
613
|
+
if (configObj.pythonVersion !== undefined) {
|
614
|
+
if (typeof configObj.pythonVersion === 'string') {
|
615
|
+
const version = (0, pythonVersion_1.versionFromString)(configObj.pythonVersion);
|
616
|
+
if (version) {
|
617
|
+
this.defaultPythonVersion = version;
|
618
|
+
}
|
619
|
+
else {
|
620
|
+
console.error(`Config "pythonVersion" field contains unsupported version.`);
|
621
|
+
}
|
622
|
+
}
|
623
|
+
else {
|
624
|
+
console.error(`Config "pythonVersion" field must contain a string.`);
|
625
|
+
}
|
626
|
+
}
|
627
|
+
this.ensureDefaultPythonVersion(host, console);
|
628
|
+
// Read the default "pythonPlatform".
|
629
|
+
if (configObj.pythonPlatform !== undefined) {
|
630
|
+
if (typeof configObj.pythonPlatform !== 'string') {
|
631
|
+
console.error(`Config "pythonPlatform" field must contain a string.`);
|
632
|
+
}
|
633
|
+
else {
|
634
|
+
this.defaultPythonPlatform = configObj.pythonPlatform;
|
635
|
+
}
|
636
|
+
}
|
637
|
+
this.ensureDefaultPythonPlatform(host, console);
|
638
|
+
// Read the "typeshedPath" setting.
|
639
|
+
this.typeshedPath = undefined;
|
640
|
+
if (configObj.typeshedPath !== undefined) {
|
641
|
+
if (typeof configObj.typeshedPath !== 'string') {
|
642
|
+
console.error(`Config "typeshedPath" field must contain a string.`);
|
643
|
+
}
|
644
|
+
else {
|
645
|
+
this.typeshedPath = configObj.typeshedPath
|
646
|
+
? (0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, configObj.typeshedPath))
|
647
|
+
: '';
|
648
|
+
}
|
649
|
+
}
|
650
|
+
// Read the "stubPath" setting.
|
651
|
+
this.stubPath = undefined;
|
652
|
+
// Keep this for backward compatibility
|
653
|
+
if (configObj.typingsPath !== undefined) {
|
654
|
+
if (typeof configObj.typingsPath !== 'string') {
|
655
|
+
console.error(`Config "typingsPath" field must contain a string.`);
|
656
|
+
}
|
657
|
+
else {
|
658
|
+
console.error(`Config "typingsPath" is now deprecated. Please, use stubPath instead.`);
|
659
|
+
this.stubPath = (0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, configObj.typingsPath));
|
660
|
+
}
|
661
|
+
}
|
662
|
+
if (configObj.stubPath !== undefined) {
|
663
|
+
if (typeof configObj.stubPath !== 'string') {
|
664
|
+
console.error(`Config "stubPath" field must contain a string.`);
|
665
|
+
}
|
666
|
+
else {
|
667
|
+
this.stubPath = (0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, configObj.stubPath));
|
668
|
+
}
|
669
|
+
}
|
670
|
+
// Read the "verboseOutput" setting.
|
671
|
+
// Don't initialize to a default value because we want the command-line "verbose"
|
672
|
+
// switch to apply if this setting isn't specified in the config file.
|
673
|
+
if (configObj.verboseOutput !== undefined) {
|
674
|
+
if (typeof configObj.verboseOutput !== 'boolean') {
|
675
|
+
console.error(`Config "verboseOutput" field must be true or false.`);
|
676
|
+
}
|
677
|
+
else {
|
678
|
+
this.verboseOutput = configObj.verboseOutput;
|
679
|
+
}
|
680
|
+
}
|
681
|
+
// Read the "defineConstant" setting.
|
682
|
+
if (configObj.defineConstant !== undefined) {
|
683
|
+
if (typeof configObj.defineConstant !== 'object' || Array.isArray(configObj.defineConstant)) {
|
684
|
+
console.error(`Config "defineConstant" field must contain a map indexed by constant names.`);
|
685
|
+
}
|
686
|
+
else {
|
687
|
+
const keys = Object.getOwnPropertyNames(configObj.defineConstant);
|
688
|
+
keys.forEach((key) => {
|
689
|
+
const value = configObj.defineConstant[key];
|
690
|
+
const valueType = typeof value;
|
691
|
+
if (valueType !== 'boolean' && valueType !== 'string') {
|
692
|
+
console.error(`Defined constant "${key}" must be associated with a boolean or string value.`);
|
693
|
+
}
|
694
|
+
else {
|
695
|
+
this.defineConstant.set(key, value);
|
696
|
+
}
|
697
|
+
});
|
698
|
+
}
|
699
|
+
}
|
700
|
+
// Read the "useLibraryCodeForTypes" setting.
|
701
|
+
if (configObj.useLibraryCodeForTypes !== undefined) {
|
702
|
+
if (typeof configObj.useLibraryCodeForTypes !== 'boolean') {
|
703
|
+
console.error(`Config "useLibraryCodeForTypes" field must be true or false.`);
|
704
|
+
}
|
705
|
+
else {
|
706
|
+
this.useLibraryCodeForTypes = configObj.useLibraryCodeForTypes;
|
707
|
+
}
|
708
|
+
}
|
709
|
+
// Read the "executionEnvironments" array. This should be done at the end
|
710
|
+
// after we've established default values.
|
711
|
+
this.executionEnvironments = [];
|
712
|
+
if (configObj.executionEnvironments !== undefined) {
|
713
|
+
if (!Array.isArray(configObj.executionEnvironments)) {
|
714
|
+
console.error(`Config "executionEnvironments" field must contain an array.`);
|
715
|
+
}
|
716
|
+
else {
|
717
|
+
const execEnvironments = configObj.executionEnvironments;
|
718
|
+
execEnvironments.forEach((env, index) => {
|
719
|
+
const execEnv = this._initExecutionEnvironmentFromJson(env, index, console);
|
720
|
+
if (execEnv) {
|
721
|
+
this.executionEnvironments.push(execEnv);
|
722
|
+
}
|
723
|
+
});
|
724
|
+
}
|
725
|
+
}
|
726
|
+
// Read the "autoImportCompletions" setting.
|
727
|
+
if (configObj.autoImportCompletions !== undefined) {
|
728
|
+
if (typeof configObj.autoImportCompletions !== 'boolean') {
|
729
|
+
console.error(`Config "autoImportCompletions" field must be true or false.`);
|
730
|
+
}
|
731
|
+
else {
|
732
|
+
this.autoImportCompletions = configObj.autoImportCompletions;
|
733
|
+
}
|
734
|
+
}
|
735
|
+
// Read the "indexing" setting.
|
736
|
+
if (configObj.indexing !== undefined) {
|
737
|
+
if (typeof configObj.indexing !== 'boolean') {
|
738
|
+
console.error(`Config "indexing" field must be true or false.`);
|
739
|
+
}
|
740
|
+
else {
|
741
|
+
this.indexing = configObj.indexing;
|
742
|
+
}
|
743
|
+
}
|
744
|
+
// Read the "logTypeEvaluationTime" setting.
|
745
|
+
if (configObj.logTypeEvaluationTime !== undefined) {
|
746
|
+
if (typeof configObj.logTypeEvaluationTime !== 'boolean') {
|
747
|
+
console.error(`Config "logTypeEvaluationTime" field must be true or false.`);
|
748
|
+
}
|
749
|
+
else {
|
750
|
+
this.logTypeEvaluationTime = configObj.logTypeEvaluationTime;
|
751
|
+
}
|
752
|
+
}
|
753
|
+
// Read the "typeEvaluationTimeThreshold" setting.
|
754
|
+
if (configObj.typeEvaluationTimeThreshold !== undefined) {
|
755
|
+
if (typeof configObj.typeEvaluationTimeThreshold !== 'number') {
|
756
|
+
console.error(`Config "typeEvaluationTimeThreshold" field must be a number.`);
|
757
|
+
}
|
758
|
+
else {
|
759
|
+
this.typeEvaluationTimeThreshold = configObj.typeEvaluationTimeThreshold;
|
760
|
+
}
|
761
|
+
}
|
762
|
+
}
|
763
|
+
ensureDefaultPythonPlatform(host, console) {
|
764
|
+
// If no default python platform was specified, assume that the
|
765
|
+
// user wants to use the current platform.
|
766
|
+
if (this.defaultPythonPlatform !== undefined) {
|
767
|
+
return;
|
768
|
+
}
|
769
|
+
this.defaultPythonPlatform = host.getPythonPlatform();
|
770
|
+
if (this.defaultPythonPlatform !== undefined) {
|
771
|
+
console.info(`Assuming Python platform ${this.defaultPythonPlatform}`);
|
772
|
+
}
|
773
|
+
}
|
774
|
+
ensureDefaultPythonVersion(host, console) {
|
775
|
+
// If no default python version was specified, retrieve the version
|
776
|
+
// from the currently-selected python interpreter.
|
777
|
+
if (this.defaultPythonVersion !== undefined) {
|
778
|
+
return;
|
779
|
+
}
|
780
|
+
const importFailureInfo = [];
|
781
|
+
this.defaultPythonVersion = host.getPythonVersion(this.pythonPath, importFailureInfo);
|
782
|
+
if (this.defaultPythonVersion !== undefined) {
|
783
|
+
console.info(`Assuming Python version ${(0, pythonVersion_1.versionToString)(this.defaultPythonVersion)}`);
|
784
|
+
}
|
785
|
+
for (const log of importFailureInfo) {
|
786
|
+
console.info(log);
|
787
|
+
}
|
788
|
+
}
|
789
|
+
ensureDefaultExtraPaths(fs, autoSearchPaths, extraPaths) {
|
790
|
+
const paths = [];
|
791
|
+
if (autoSearchPaths) {
|
792
|
+
// Auto-detect the common scenario where the sources are under the src folder
|
793
|
+
const srcPath = (0, pathUtils_1.resolvePaths)(this.projectRoot, pathConsts.src);
|
794
|
+
if (fs.existsSync(srcPath) && !fs.existsSync((0, pathUtils_1.resolvePaths)(srcPath, '__init__.py'))) {
|
795
|
+
paths.push(srcPath);
|
796
|
+
}
|
797
|
+
}
|
798
|
+
if (extraPaths && extraPaths.length > 0) {
|
799
|
+
for (const p of extraPaths) {
|
800
|
+
const path = (0, pathUtils_1.resolvePaths)(this.projectRoot, p);
|
801
|
+
paths.push(path);
|
802
|
+
if ((0, pathUtils_1.isDirectory)(fs, path)) {
|
803
|
+
(0, collectionUtils_1.appendArray)(paths, (0, pythonPathUtils_1.getPathsFromPthFiles)(fs, path));
|
804
|
+
}
|
805
|
+
}
|
806
|
+
}
|
807
|
+
if (paths.length > 0) {
|
808
|
+
this.defaultExtraPaths = paths;
|
809
|
+
}
|
810
|
+
}
|
811
|
+
applyDiagnosticOverrides(diagnosticSeverityOverrides) {
|
812
|
+
if (!diagnosticSeverityOverrides) {
|
813
|
+
return;
|
814
|
+
}
|
815
|
+
for (const ruleName of getDiagLevelDiagnosticRules()) {
|
816
|
+
const severity = diagnosticSeverityOverrides[ruleName];
|
817
|
+
if (severity !== undefined) {
|
818
|
+
this.diagnosticRuleSet[ruleName] = severity;
|
819
|
+
}
|
820
|
+
}
|
821
|
+
}
|
822
|
+
_convertBoolean(value, fieldName, defaultValue) {
|
823
|
+
if (value === undefined) {
|
824
|
+
return defaultValue;
|
825
|
+
}
|
826
|
+
else if (typeof value === 'boolean') {
|
827
|
+
return value ? true : false;
|
828
|
+
}
|
829
|
+
console.log(`Config "${fieldName}" entry must be true or false.`);
|
830
|
+
return defaultValue;
|
831
|
+
}
|
832
|
+
_convertDiagnosticLevel(value, fieldName, defaultValue) {
|
833
|
+
if (value === undefined) {
|
834
|
+
return defaultValue;
|
835
|
+
}
|
836
|
+
else if (typeof value === 'boolean') {
|
837
|
+
return value ? 'error' : 'none';
|
838
|
+
}
|
839
|
+
else if (typeof value === 'string') {
|
840
|
+
if (value === 'error' || value === 'warning' || value === 'information' || value === 'none') {
|
841
|
+
return value;
|
842
|
+
}
|
843
|
+
}
|
844
|
+
console.log(`Config "${fieldName}" entry must be true, false, "error", "warning", "information" or "none".`);
|
845
|
+
return defaultValue;
|
846
|
+
}
|
847
|
+
_initExecutionEnvironmentFromJson(envObj, index, console) {
|
848
|
+
try {
|
849
|
+
const newExecEnv = new ExecutionEnvironment(this.projectRoot, this.defaultPythonVersion, this.defaultPythonPlatform, this.defaultExtraPaths);
|
850
|
+
// Validate the root.
|
851
|
+
if (envObj.root && typeof envObj.root === 'string') {
|
852
|
+
newExecEnv.root = (0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, envObj.root));
|
853
|
+
}
|
854
|
+
else {
|
855
|
+
console.error(`Config executionEnvironments index ${index}: missing root value.`);
|
856
|
+
}
|
857
|
+
// Validate the extraPaths.
|
858
|
+
if (envObj.extraPaths) {
|
859
|
+
if (!Array.isArray(envObj.extraPaths)) {
|
860
|
+
console.error(`Config executionEnvironments index ${index}: extraPaths field must contain an array.`);
|
861
|
+
}
|
862
|
+
else {
|
863
|
+
const pathList = envObj.extraPaths;
|
864
|
+
pathList.forEach((path, pathIndex) => {
|
865
|
+
if (typeof path !== 'string') {
|
866
|
+
console.error(`Config executionEnvironments index ${index}:` +
|
867
|
+
` extraPaths field ${pathIndex} must be a string.`);
|
868
|
+
}
|
869
|
+
else {
|
870
|
+
newExecEnv.extraPaths.push((0, pathUtils_1.normalizePath)((0, pathUtils_1.combinePaths)(this.projectRoot, path)));
|
871
|
+
}
|
872
|
+
});
|
873
|
+
}
|
874
|
+
}
|
875
|
+
// Validate the pythonVersion.
|
876
|
+
if (envObj.pythonVersion) {
|
877
|
+
if (typeof envObj.pythonVersion === 'string') {
|
878
|
+
const version = (0, pythonVersion_1.versionFromString)(envObj.pythonVersion);
|
879
|
+
if (version) {
|
880
|
+
newExecEnv.pythonVersion = version;
|
881
|
+
}
|
882
|
+
else {
|
883
|
+
console.warn(`Config executionEnvironments index ${index} contains unsupported pythonVersion.`);
|
884
|
+
}
|
885
|
+
}
|
886
|
+
else {
|
887
|
+
console.error(`Config executionEnvironments index ${index} pythonVersion must be a string.`);
|
888
|
+
}
|
889
|
+
}
|
890
|
+
// Validate the pythonPlatform.
|
891
|
+
if (envObj.pythonPlatform) {
|
892
|
+
if (typeof envObj.pythonPlatform === 'string') {
|
893
|
+
newExecEnv.pythonPlatform = envObj.pythonPlatform;
|
894
|
+
}
|
895
|
+
else {
|
896
|
+
console.error(`Config executionEnvironments index ${index} pythonPlatform must be a string.`);
|
897
|
+
}
|
898
|
+
}
|
899
|
+
return newExecEnv;
|
900
|
+
}
|
901
|
+
catch {
|
902
|
+
console.error(`Config executionEnvironments index ${index} is not accessible.`);
|
903
|
+
}
|
904
|
+
return undefined;
|
905
|
+
}
|
906
|
+
}
|
907
|
+
exports.ConfigOptions = ConfigOptions;
|
908
|
+
//# sourceMappingURL=configOptions.js.map
|