@zzzen/pyright-internal 1.2.0-dev.20240804 → 1.2.0-dev.20240818

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.
Files changed (752) hide show
  1. package/dist/analyzer/analysis.js +2 -2
  2. package/dist/analyzer/analysis.js.map +1 -1
  3. package/dist/analyzer/analyzerFileInfo.js +2 -3
  4. package/dist/analyzer/analyzerFileInfo.js.map +1 -1
  5. package/dist/analyzer/analyzerNodeInfo.js +20 -21
  6. package/dist/analyzer/analyzerNodeInfo.js.map +1 -1
  7. package/dist/analyzer/backgroundAnalysisProgram.js.map +1 -1
  8. package/dist/analyzer/binder.js +1 -1
  9. package/dist/analyzer/binder.js.map +1 -1
  10. package/dist/analyzer/cacheManager.d.ts +0 -1
  11. package/dist/analyzer/cacheManager.js.map +1 -1
  12. package/dist/analyzer/checker.d.ts +2 -0
  13. package/dist/analyzer/checker.js +272 -207
  14. package/dist/analyzer/checker.js.map +1 -1
  15. package/dist/analyzer/circularDependency.js.map +1 -1
  16. package/dist/analyzer/codeFlowEngine.js +6 -6
  17. package/dist/analyzer/codeFlowEngine.js.map +1 -1
  18. package/dist/analyzer/codeFlowTypes.d.ts +17 -17
  19. package/dist/analyzer/codeFlowTypes.js +5 -5
  20. package/dist/analyzer/codeFlowTypes.js.map +1 -1
  21. package/dist/analyzer/codeFlowUtils.js +1 -2
  22. package/dist/analyzer/codeFlowUtils.js.map +1 -1
  23. package/dist/analyzer/commentUtils.js +1 -2
  24. package/dist/analyzer/commentUtils.js.map +1 -1
  25. package/dist/analyzer/constraintSolution.d.ts +2 -1
  26. package/dist/analyzer/constraintSolution.js +7 -1
  27. package/dist/analyzer/constraintSolution.js.map +1 -1
  28. package/dist/analyzer/constraintSolver.d.ts +1 -2
  29. package/dist/analyzer/constraintSolver.js +139 -163
  30. package/dist/analyzer/constraintSolver.js.map +1 -1
  31. package/dist/analyzer/constraintTracker.d.ts +5 -4
  32. package/dist/analyzer/constraintTracker.js +14 -9
  33. package/dist/analyzer/constraintTracker.js.map +1 -1
  34. package/dist/analyzer/constructorTransform.js +8 -8
  35. package/dist/analyzer/constructorTransform.js.map +1 -1
  36. package/dist/analyzer/constructors.js +15 -16
  37. package/dist/analyzer/constructors.js.map +1 -1
  38. package/dist/analyzer/dataClasses.js +38 -27
  39. package/dist/analyzer/dataClasses.js.map +1 -1
  40. package/dist/analyzer/declaration.js +11 -11
  41. package/dist/analyzer/declaration.js.map +1 -1
  42. package/dist/analyzer/declarationUtils.js +8 -9
  43. package/dist/analyzer/declarationUtils.js.map +1 -1
  44. package/dist/analyzer/decorators.d.ts +1 -1
  45. package/dist/analyzer/decorators.js +33 -29
  46. package/dist/analyzer/decorators.js.map +1 -1
  47. package/dist/analyzer/docStringConversion.js +2 -3
  48. package/dist/analyzer/docStringConversion.js.map +1 -1
  49. package/dist/analyzer/docStringUtils.js +2 -3
  50. package/dist/analyzer/docStringUtils.js.map +1 -1
  51. package/dist/analyzer/enums.js +18 -15
  52. package/dist/analyzer/enums.js.map +1 -1
  53. package/dist/analyzer/functionTransform.d.ts +2 -2
  54. package/dist/analyzer/functionTransform.js +1 -2
  55. package/dist/analyzer/functionTransform.js.map +1 -1
  56. package/dist/analyzer/importResolver.d.ts +0 -1
  57. package/dist/analyzer/importResolver.js +8 -8
  58. package/dist/analyzer/importResolver.js.map +1 -1
  59. package/dist/analyzer/importStatementUtils.js +15 -15
  60. package/dist/analyzer/importStatementUtils.js.map +1 -1
  61. package/dist/analyzer/namedTuples.js +2 -3
  62. package/dist/analyzer/namedTuples.js.map +1 -1
  63. package/dist/analyzer/operations.js +142 -124
  64. package/dist/analyzer/operations.js.map +1 -1
  65. package/dist/analyzer/packageTypeReport.d.ts +3 -3
  66. package/dist/analyzer/packageTypeReport.js +2 -2
  67. package/dist/analyzer/packageTypeReport.js.map +1 -1
  68. package/dist/analyzer/packageTypeVerifier.js +9 -9
  69. package/dist/analyzer/packageTypeVerifier.js.map +1 -1
  70. package/dist/analyzer/parameterUtils.js +5 -5
  71. package/dist/analyzer/parameterUtils.js.map +1 -1
  72. package/dist/analyzer/parentDirectoryCache.js.map +1 -1
  73. package/dist/analyzer/parseTreeUtils.js +94 -92
  74. package/dist/analyzer/parseTreeUtils.js.map +1 -1
  75. package/dist/analyzer/parseTreeWalker.js +2 -2
  76. package/dist/analyzer/parseTreeWalker.js.map +1 -1
  77. package/dist/analyzer/patternMatching.js +18 -22
  78. package/dist/analyzer/patternMatching.js.map +1 -1
  79. package/dist/analyzer/program.js +5 -1
  80. package/dist/analyzer/program.js.map +1 -1
  81. package/dist/analyzer/properties.js +7 -9
  82. package/dist/analyzer/properties.js.map +1 -1
  83. package/dist/analyzer/protocols.d.ts +2 -2
  84. package/dist/analyzer/protocols.js +55 -50
  85. package/dist/analyzer/protocols.js.map +1 -1
  86. package/dist/analyzer/pyTypedUtils.js +2 -3
  87. package/dist/analyzer/pyTypedUtils.js.map +1 -1
  88. package/dist/analyzer/pythonPathUtils.js +8 -7
  89. package/dist/analyzer/pythonPathUtils.js.map +1 -1
  90. package/dist/analyzer/scope.js.map +1 -1
  91. package/dist/analyzer/scopeUtils.js +5 -6
  92. package/dist/analyzer/scopeUtils.js.map +1 -1
  93. package/dist/analyzer/service.d.ts +3 -0
  94. package/dist/analyzer/service.js +173 -103
  95. package/dist/analyzer/service.js.map +1 -1
  96. package/dist/analyzer/serviceUtils.js +5 -5
  97. package/dist/analyzer/serviceUtils.js.map +1 -1
  98. package/dist/analyzer/sourceFile.js.map +1 -1
  99. package/dist/analyzer/sourceFileInfo.js.map +1 -1
  100. package/dist/analyzer/sourceFileInfoUtils.js +4 -5
  101. package/dist/analyzer/sourceFileInfoUtils.js.map +1 -1
  102. package/dist/analyzer/sourceMapper.js +5 -4
  103. package/dist/analyzer/sourceMapper.js.map +1 -1
  104. package/dist/analyzer/sourceMapperUtils.js +1 -2
  105. package/dist/analyzer/sourceMapperUtils.js.map +1 -1
  106. package/dist/analyzer/staticExpressions.js +11 -12
  107. package/dist/analyzer/staticExpressions.js.map +1 -1
  108. package/dist/analyzer/symbol.js.map +1 -1
  109. package/dist/analyzer/symbolNameUtils.js +8 -9
  110. package/dist/analyzer/symbolNameUtils.js.map +1 -1
  111. package/dist/analyzer/symbolUtils.js +4 -5
  112. package/dist/analyzer/symbolUtils.js.map +1 -1
  113. package/dist/analyzer/testWalker.js.map +1 -1
  114. package/dist/analyzer/tracePrinter.js +5 -4
  115. package/dist/analyzer/tracePrinter.js.map +1 -1
  116. package/dist/analyzer/tuples.d.ts +1 -1
  117. package/dist/analyzer/tuples.js +9 -10
  118. package/dist/analyzer/tuples.js.map +1 -1
  119. package/dist/analyzer/typeCacheUtils.js.map +1 -1
  120. package/dist/analyzer/typeComplexity.js +2 -3
  121. package/dist/analyzer/typeComplexity.js.map +1 -1
  122. package/dist/analyzer/typeDocStringUtils.d.ts +2 -2
  123. package/dist/analyzer/typeDocStringUtils.js +34 -25
  124. package/dist/analyzer/typeDocStringUtils.js.map +1 -1
  125. package/dist/analyzer/typeEvaluator.js +487 -483
  126. package/dist/analyzer/typeEvaluator.js.map +1 -1
  127. package/dist/analyzer/typeEvaluatorTypes.d.ts +8 -10
  128. package/dist/analyzer/typeEvaluatorTypes.js.map +1 -1
  129. package/dist/analyzer/typeEvaluatorWithTracker.js +1 -2
  130. package/dist/analyzer/typeEvaluatorWithTracker.js.map +1 -1
  131. package/dist/analyzer/typeGuards.js +31 -30
  132. package/dist/analyzer/typeGuards.js.map +1 -1
  133. package/dist/analyzer/typePrinter.js +11 -11
  134. package/dist/analyzer/typePrinter.js.map +1 -1
  135. package/dist/analyzer/typeStubWriter.js.map +1 -1
  136. package/dist/analyzer/typeUtils.d.ts +12 -15
  137. package/dist/analyzer/typeUtils.js +181 -219
  138. package/dist/analyzer/typeUtils.js.map +1 -1
  139. package/dist/analyzer/typeWalker.d.ts +2 -2
  140. package/dist/analyzer/typeWalker.js +9 -4
  141. package/dist/analyzer/typeWalker.js.map +1 -1
  142. package/dist/analyzer/typedDicts.js +41 -41
  143. package/dist/analyzer/typedDicts.js.map +1 -1
  144. package/dist/analyzer/types.d.ts +18 -16
  145. package/dist/analyzer/types.js +74 -74
  146. package/dist/analyzer/types.js.map +1 -1
  147. package/dist/backgroundAnalysisBase.d.ts +0 -1
  148. package/dist/backgroundAnalysisBase.js.map +1 -1
  149. package/dist/backgroundThreadBase.d.ts +0 -1
  150. package/dist/backgroundThreadBase.js +7 -14
  151. package/dist/backgroundThreadBase.js.map +1 -1
  152. package/dist/commands/commandController.js.map +1 -1
  153. package/dist/commands/createTypeStub.js.map +1 -1
  154. package/dist/commands/dumpFileDebugInfoCommand.js +2 -2
  155. package/dist/commands/dumpFileDebugInfoCommand.js.map +1 -1
  156. package/dist/commands/quickActionCommand.js.map +1 -1
  157. package/dist/common/cancellationUtils.js +9 -9
  158. package/dist/common/cancellationUtils.js.map +1 -1
  159. package/dist/common/chokidarFileWatcherProvider.js +3 -3
  160. package/dist/common/chokidarFileWatcherProvider.js.map +1 -1
  161. package/dist/common/collectionUtils.js +23 -23
  162. package/dist/common/collectionUtils.js.map +1 -1
  163. package/dist/common/commandLineOptions.d.ts +19 -12
  164. package/dist/common/commandLineOptions.js +26 -9
  165. package/dist/common/commandLineOptions.js.map +1 -1
  166. package/dist/common/commandUtils.js +1 -2
  167. package/dist/common/commandUtils.js.map +1 -1
  168. package/dist/common/configOptions.d.ts +2 -2
  169. package/dist/common/configOptions.js +30 -40
  170. package/dist/common/configOptions.js.map +1 -1
  171. package/dist/common/console.js +4 -4
  172. package/dist/common/console.js.map +1 -1
  173. package/dist/common/core.js +21 -21
  174. package/dist/common/core.js.map +1 -1
  175. package/dist/common/crypto.js +1 -2
  176. package/dist/common/crypto.js.map +1 -1
  177. package/dist/common/debug.js +9 -10
  178. package/dist/common/debug.js.map +1 -1
  179. package/dist/common/deferred.js +3 -4
  180. package/dist/common/deferred.js.map +1 -1
  181. package/dist/common/diagnostic.js +3 -3
  182. package/dist/common/diagnostic.js.map +1 -1
  183. package/dist/common/diagnosticSink.js.map +1 -1
  184. package/dist/common/envVarUtils.js +2 -3
  185. package/dist/common/envVarUtils.js.map +1 -1
  186. package/dist/common/fileBasedCancellationUtils.js +4 -4
  187. package/dist/common/fileBasedCancellationUtils.js.map +1 -1
  188. package/dist/common/fileSystem.d.ts +0 -2
  189. package/dist/common/fileWatcher.js +2 -2
  190. package/dist/common/fileWatcher.js.map +1 -1
  191. package/dist/common/fullAccessHost.js +1 -1
  192. package/dist/common/fullAccessHost.js.map +1 -1
  193. package/dist/common/logTracker.js +2 -2
  194. package/dist/common/logTracker.js.map +1 -1
  195. package/dist/common/lspUtils.d.ts +1 -1
  196. package/dist/common/lspUtils.js +3 -4
  197. package/dist/common/lspUtils.js.map +1 -1
  198. package/dist/common/memUtils.js +2 -2
  199. package/dist/common/memUtils.js.map +1 -1
  200. package/dist/common/pathUtils.js +32 -32
  201. package/dist/common/pathUtils.js.map +1 -1
  202. package/dist/common/positionUtils.js +7 -8
  203. package/dist/common/positionUtils.js.map +1 -1
  204. package/dist/common/progressReporter.js.map +1 -1
  205. package/dist/common/pythonVersion.d.ts +17 -20
  206. package/dist/common/pythonVersion.js +81 -85
  207. package/dist/common/pythonVersion.js.map +1 -1
  208. package/dist/common/realFileSystem.d.ts +0 -2
  209. package/dist/common/realFileSystem.js +2 -2
  210. package/dist/common/realFileSystem.js.map +1 -1
  211. package/dist/common/serviceProvider.js.map +1 -1
  212. package/dist/common/serviceProviderExtensions.js +1 -2
  213. package/dist/common/serviceProviderExtensions.js.map +1 -1
  214. package/dist/common/stringUtils.js +12 -13
  215. package/dist/common/stringUtils.js.map +1 -1
  216. package/dist/common/textEditTracker.js.map +1 -1
  217. package/dist/common/textRange.js +13 -13
  218. package/dist/common/textRange.js.map +1 -1
  219. package/dist/common/textRangeCollection.js +2 -2
  220. package/dist/common/textRangeCollection.js.map +1 -1
  221. package/dist/common/timing.js.map +1 -1
  222. package/dist/common/uri/baseUri.js.map +1 -1
  223. package/dist/common/uri/fileUri.js.map +1 -1
  224. package/dist/common/uri/memoization.js +3 -4
  225. package/dist/common/uri/memoization.js.map +1 -1
  226. package/dist/common/uri/uri.js.map +1 -1
  227. package/dist/common/uri/uriUtils.d.ts +0 -1
  228. package/dist/common/uri/uriUtils.js +20 -20
  229. package/dist/common/uri/uriUtils.js.map +1 -1
  230. package/dist/common/uri/webUri.js.map +1 -1
  231. package/dist/common/workspaceEditUtils.js +8 -9
  232. package/dist/common/workspaceEditUtils.js.map +1 -1
  233. package/dist/languageServerBase.js.map +1 -1
  234. package/dist/languageService/analyzerServiceExecutor.js +30 -29
  235. package/dist/languageService/analyzerServiceExecutor.js.map +1 -1
  236. package/dist/languageService/autoImporter.js +4 -4
  237. package/dist/languageService/autoImporter.js.map +1 -1
  238. package/dist/languageService/callHierarchyProvider.js.map +1 -1
  239. package/dist/languageService/codeActionProvider.js.map +1 -1
  240. package/dist/languageService/completionProvider.js +4 -4
  241. package/dist/languageService/completionProvider.js.map +1 -1
  242. package/dist/languageService/completionProviderUtils.js +4 -5
  243. package/dist/languageService/completionProviderUtils.js.map +1 -1
  244. package/dist/languageService/definitionProvider.js +5 -5
  245. package/dist/languageService/definitionProvider.js.map +1 -1
  246. package/dist/languageService/documentHighlightProvider.js.map +1 -1
  247. package/dist/languageService/documentSymbolCollector.js +3 -3
  248. package/dist/languageService/documentSymbolCollector.js.map +1 -1
  249. package/dist/languageService/documentSymbolProvider.js +2 -2
  250. package/dist/languageService/documentSymbolProvider.js.map +1 -1
  251. package/dist/languageService/dynamicFeature.js.map +1 -1
  252. package/dist/languageService/fileWatcherDynamicFeature.js.map +1 -1
  253. package/dist/languageService/hoverProvider.js +6 -6
  254. package/dist/languageService/hoverProvider.js.map +1 -1
  255. package/dist/languageService/importSorter.js.map +1 -1
  256. package/dist/languageService/navigationUtils.js +3 -4
  257. package/dist/languageService/navigationUtils.js.map +1 -1
  258. package/dist/languageService/quickActions.js +1 -2
  259. package/dist/languageService/quickActions.js.map +1 -1
  260. package/dist/languageService/referencesProvider.js.map +1 -1
  261. package/dist/languageService/renameProvider.js.map +1 -1
  262. package/dist/languageService/signatureHelpProvider.js.map +1 -1
  263. package/dist/languageService/symbolIndexer.js.map +1 -1
  264. package/dist/languageService/tooltipUtils.d.ts +5 -5
  265. package/dist/languageService/tooltipUtils.js +31 -31
  266. package/dist/languageService/tooltipUtils.js.map +1 -1
  267. package/dist/languageService/workspaceSymbolProvider.js.map +1 -1
  268. package/dist/localization/localize.d.ts +7 -4
  269. package/dist/localization/localize.js +9 -8
  270. package/dist/localization/localize.js.map +1 -1
  271. package/dist/localization/package.nls.cs.json +0 -2
  272. package/dist/localization/package.nls.de.json +0 -2
  273. package/dist/localization/package.nls.en-us.json +4 -3
  274. package/dist/localization/package.nls.es.json +0 -2
  275. package/dist/localization/package.nls.fr.json +0 -2
  276. package/dist/localization/package.nls.it.json +0 -2
  277. package/dist/localization/package.nls.ja.json +0 -2
  278. package/dist/localization/package.nls.ko.json +0 -2
  279. package/dist/localization/package.nls.pl.json +0 -2
  280. package/dist/localization/package.nls.pt-br.json +0 -2
  281. package/dist/localization/package.nls.qps-ploc.json +0 -2
  282. package/dist/localization/package.nls.ru.json +0 -2
  283. package/dist/localization/package.nls.tr.json +0 -2
  284. package/dist/localization/package.nls.zh-cn.json +0 -2
  285. package/dist/localization/package.nls.zh-tw.json +0 -2
  286. package/dist/nodeMain.js +1 -2
  287. package/dist/nodeMain.js.map +1 -1
  288. package/dist/nodeServer.js +2 -3
  289. package/dist/nodeServer.js.map +1 -1
  290. package/dist/parser/characterStream.js.map +1 -1
  291. package/dist/parser/characters.js +10 -11
  292. package/dist/parser/characters.js.map +1 -1
  293. package/dist/parser/parseNodes.d.ts +8 -8
  294. package/dist/parser/parseNodes.js +5 -5
  295. package/dist/parser/parseNodes.js.map +1 -1
  296. package/dist/parser/parser.js +32 -23
  297. package/dist/parser/parser.js.map +1 -1
  298. package/dist/parser/stringTokenUtils.js +2 -2
  299. package/dist/parser/stringTokenUtils.js.map +1 -1
  300. package/dist/parser/tokenizer.js.map +1 -1
  301. package/dist/parser/unicode.js +468 -468
  302. package/dist/parser/unicode.js.map +1 -1
  303. package/dist/pprof/profiler.js +2 -3
  304. package/dist/pprof/profiler.js.map +1 -1
  305. package/dist/pyright.js +22 -23
  306. package/dist/pyright.js.map +1 -1
  307. package/dist/pyrightFileSystem.d.ts +0 -2
  308. package/dist/pyrightFileSystem.js.map +1 -1
  309. package/dist/readonlyAugmentedFileSystem.d.ts +0 -2
  310. package/dist/readonlyAugmentedFileSystem.js.map +1 -1
  311. package/dist/server.js.map +1 -1
  312. package/dist/tests/cacheManager.test.js.map +1 -1
  313. package/dist/tests/chainedSourceFiles.test.js.map +1 -1
  314. package/dist/tests/checker.test.js +3 -3
  315. package/dist/tests/checker.test.js.map +1 -1
  316. package/dist/tests/classDeclaration.test.js.map +1 -1
  317. package/dist/tests/config.test.js +160 -24
  318. package/dist/tests/config.test.js.map +1 -1
  319. package/dist/tests/debug.test.js.map +1 -1
  320. package/dist/tests/diagnosticOverrides.test.js.map +1 -1
  321. package/dist/tests/docStringConversion.test.js +1 -2
  322. package/dist/tests/docStringConversion.test.js.map +1 -1
  323. package/dist/tests/documentSymbolCollector.test.js.map +1 -1
  324. package/dist/tests/filesystem.test.js.map +1 -1
  325. package/dist/tests/fourSlashParser.test.js.map +1 -1
  326. package/dist/tests/fourSlashRunner.test.js.map +1 -1
  327. package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.d.ts +0 -1
  328. package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.js.map +1 -1
  329. package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.d.ts +0 -1
  330. package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.js.map +1 -1
  331. package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.d.ts +0 -1
  332. package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.d.ts +0 -1
  333. package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.d.ts +0 -1
  334. package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.js.map +1 -1
  335. package/dist/tests/fourslash/completions.autoimport.fourslash.d.ts +0 -1
  336. package/dist/tests/fourslash/completions.autoimport.fourslash.js.map +1 -1
  337. package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.d.ts +0 -1
  338. package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.js.map +1 -1
  339. package/dist/tests/fourslash/completions.autoimport.lib.alias.fourslash.d.ts +0 -1
  340. package/dist/tests/fourslash/completions.autoimport.lib.alias.fourslash.js.map +1 -1
  341. package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.d.ts +0 -1
  342. package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.js.map +1 -1
  343. package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.d.ts +0 -1
  344. package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.js.map +1 -1
  345. package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.d.ts +0 -1
  346. package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.js.map +1 -1
  347. package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.d.ts +0 -1
  348. package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.js.map +1 -1
  349. package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.d.ts +0 -1
  350. package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.js.map +1 -1
  351. package/dist/tests/fourslash/completions.builtinOverride.fourslash.d.ts +0 -1
  352. package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.d.ts +0 -1
  353. package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.js.map +1 -1
  354. package/dist/tests/fourslash/completions.call.typedDict.fourslash.d.ts +0 -1
  355. package/dist/tests/fourslash/completions.call.typedDict.fourslash.js.map +1 -1
  356. package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.d.ts +0 -1
  357. package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.js.map +1 -1
  358. package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.d.ts +0 -1
  359. package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.js.map +1 -1
  360. package/dist/tests/fourslash/completions.classVariable.fourslash.d.ts +0 -1
  361. package/dist/tests/fourslash/completions.classVariable.fourslash.js.map +1 -1
  362. package/dist/tests/fourslash/completions.comment.fourslash.d.ts +0 -1
  363. package/dist/tests/fourslash/completions.declNames.class.fourslash.d.ts +0 -1
  364. package/dist/tests/fourslash/completions.declNames.class.fourslash.js.map +1 -1
  365. package/dist/tests/fourslash/completions.declNames.exception.fourslash.d.ts +0 -1
  366. package/dist/tests/fourslash/completions.declNames.for.fourslash.d.ts +0 -1
  367. package/dist/tests/fourslash/completions.declNames.for.fourslash.js.map +1 -1
  368. package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.d.ts +0 -1
  369. package/dist/tests/fourslash/completions.declNames.lambda.fourslash.d.ts +0 -1
  370. package/dist/tests/fourslash/completions.declNames.lambda.fourslash.js.map +1 -1
  371. package/dist/tests/fourslash/completions.declNames.method.fourslash.d.ts +0 -1
  372. package/dist/tests/fourslash/completions.declNames.method.fourslash.js.map +1 -1
  373. package/dist/tests/fourslash/completions.declNames.overload.fourslash.d.ts +0 -1
  374. package/dist/tests/fourslash/completions.declNames.overload.fourslash.js.map +1 -1
  375. package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.d.ts +0 -1
  376. package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.js.map +1 -1
  377. package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.d.ts +0 -1
  378. package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.js.map +1 -1
  379. package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.d.ts +0 -1
  380. package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.js.map +1 -1
  381. package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.d.ts +0 -1
  382. package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.js.map +1 -1
  383. package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.d.ts +0 -1
  384. package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.js.map +1 -1
  385. package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.d.ts +0 -1
  386. package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.js.map +1 -1
  387. package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.d.ts +0 -1
  388. package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.js.map +1 -1
  389. package/dist/tests/fourslash/completions.dunderNew.Inheritance.fourslash.d.ts +0 -1
  390. package/dist/tests/fourslash/completions.dunderNew.fourslash.d.ts +0 -1
  391. package/dist/tests/fourslash/completions.enums.members.fourslash.d.ts +0 -1
  392. package/dist/tests/fourslash/completions.errorNodes.fourslash.d.ts +0 -1
  393. package/dist/tests/fourslash/completions.excluded.fourslash.d.ts +0 -1
  394. package/dist/tests/fourslash/completions.fourslash.d.ts +0 -1
  395. package/dist/tests/fourslash/completions.fstring.fourslash.d.ts +0 -1
  396. package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.d.ts +0 -1
  397. package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.js.map +1 -1
  398. package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.d.ts +0 -1
  399. package/dist/tests/fourslash/completions.import.dunderNames.fourslash.d.ts +0 -1
  400. package/dist/tests/fourslash/completions.import.exactMatch.fourslash.d.ts +0 -1
  401. package/dist/tests/fourslash/completions.import.excludeAlreadyImported.fourslash.d.ts +0 -1
  402. package/dist/tests/fourslash/completions.import.interimFile.fourslash.disabled.d.ts +0 -1
  403. package/dist/tests/fourslash/completions.import.interimFile.fourslash.disabled.js.map +1 -1
  404. package/dist/tests/fourslash/completions.import.submodule.fourslash.d.ts +0 -1
  405. package/dist/tests/fourslash/completions.inList.fourslash.d.ts +0 -1
  406. package/dist/tests/fourslash/completions.inList.fourslash.js.map +1 -1
  407. package/dist/tests/fourslash/completions.included.fourslash.d.ts +0 -1
  408. package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.d.ts +0 -1
  409. package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.js.map +1 -1
  410. package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.d.ts +0 -1
  411. package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.d.ts +0 -1
  412. package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.d.ts +0 -1
  413. package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.d.ts +0 -1
  414. package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.d.ts +0 -1
  415. package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.d.ts +0 -1
  416. package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.js.map +1 -1
  417. package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.d.ts +0 -1
  418. package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.d.ts +0 -1
  419. package/dist/tests/fourslash/completions.libStub.fourslash.d.ts +0 -1
  420. package/dist/tests/fourslash/completions.literals.fourslash.d.ts +0 -1
  421. package/dist/tests/fourslash/completions.literals.fourslash.js.map +1 -1
  422. package/dist/tests/fourslash/completions.localCode.fourslash.d.ts +0 -1
  423. package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.d.ts +0 -1
  424. package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.d.ts +0 -1
  425. package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.d.ts +0 -1
  426. package/dist/tests/fourslash/completions.overloads.fourslash.d.ts +0 -1
  427. package/dist/tests/fourslash/completions.override.default.fourslash.d.ts +0 -1
  428. package/dist/tests/fourslash/completions.override.default.importStub.d.ts +0 -1
  429. package/dist/tests/fourslash/completions.override.default.imported.fourslash.d.ts +0 -1
  430. package/dist/tests/fourslash/completions.override.default.stub.fourslash.d.ts +0 -1
  431. package/dist/tests/fourslash/completions.override.fourslash.d.ts +0 -1
  432. package/dist/tests/fourslash/completions.override.property.fourslash.d.ts +0 -1
  433. package/dist/tests/fourslash/completions.override.property.stub.fourslash.d.ts +0 -1
  434. package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.d.ts +0 -1
  435. package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.js.map +1 -1
  436. package/dist/tests/fourslash/completions.override.stub.fourslash.d.ts +0 -1
  437. package/dist/tests/fourslash/completions.override2.fourslash.d.ts +0 -1
  438. package/dist/tests/fourslash/completions.override2.fourslash.js.map +1 -1
  439. package/dist/tests/fourslash/completions.parameters.fourslash.d.ts +0 -1
  440. package/dist/tests/fourslash/completions.params.fourslash.d.ts +0 -1
  441. package/dist/tests/fourslash/completions.parentFolder.fourslash.d.ts +0 -1
  442. package/dist/tests/fourslash/completions.parentFolders.fourslash.d.ts +0 -1
  443. package/dist/tests/fourslash/completions.parentFolders.fourslash.js.map +1 -1
  444. package/dist/tests/fourslash/completions.plainText.fourslash.d.ts +0 -1
  445. package/dist/tests/fourslash/completions.private.fourslash.d.ts +0 -1
  446. package/dist/tests/fourslash/completions.private.fourslash.js.map +1 -1
  447. package/dist/tests/fourslash/completions.property.fourslash.d.ts +0 -1
  448. package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.d.ts +0 -1
  449. package/dist/tests/fourslash/completions.self.fourslash.d.ts +0 -1
  450. package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.d.ts +0 -1
  451. package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.js.map +1 -1
  452. package/dist/tests/fourslash/completions.stringLiteral.fourslash.d.ts +0 -1
  453. package/dist/tests/fourslash/completions.stringLiteral.fourslash.js.map +1 -1
  454. package/dist/tests/fourslash/completions.triggers.fourslash.d.ts +0 -1
  455. package/dist/tests/fourslash/completions.triggers.fourslash.js.map +1 -1
  456. package/dist/tests/fourslash/completions.typeAlias.fourslash.d.ts +0 -1
  457. package/dist/tests/fourslash/completions.typeshed.fourslash.d.ts +0 -1
  458. package/dist/tests/fourslash/completions.vardecls.fourslash.d.ts +0 -1
  459. package/dist/tests/fourslash/completions.vardecls.fourslash.js.map +1 -1
  460. package/dist/tests/fourslash/completions.variableDocStrings.fourslash.d.ts +0 -1
  461. package/dist/tests/fourslash/completions.wildcardimports.fourslash.d.ts +0 -1
  462. package/dist/tests/fourslash/completions.with.fourslash.d.ts +0 -1
  463. package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.d.ts +0 -1
  464. package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.js.map +1 -1
  465. package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.d.ts +0 -1
  466. package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.js.map +1 -1
  467. package/dist/tests/fourslash/findDefinitions.classes.fourslash.d.ts +0 -1
  468. package/dist/tests/fourslash/findDefinitions.classes.fourslash.js.map +1 -1
  469. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.d.ts +0 -1
  470. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.js.map +1 -1
  471. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.d.ts +0 -1
  472. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.js.map +1 -1
  473. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.d.ts +0 -1
  474. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.js.map +1 -1
  475. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.d.ts +0 -1
  476. package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.js.map +1 -1
  477. package/dist/tests/fourslash/findDefinitions.fields.fourslash.d.ts +0 -1
  478. package/dist/tests/fourslash/findDefinitions.fields.fourslash.js.map +1 -1
  479. package/dist/tests/fourslash/findDefinitions.functions.fourslash.d.ts +0 -1
  480. package/dist/tests/fourslash/findDefinitions.functions.fourslash.js.map +1 -1
  481. package/dist/tests/fourslash/findDefinitions.methods.fourslash.d.ts +0 -1
  482. package/dist/tests/fourslash/findDefinitions.methods.fourslash.js.map +1 -1
  483. package/dist/tests/fourslash/findDefinitions.modules.fourslash.d.ts +0 -1
  484. package/dist/tests/fourslash/findDefinitions.modules.fourslash.js.map +1 -1
  485. package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.d.ts +0 -1
  486. package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.js.map +1 -1
  487. package/dist/tests/fourslash/findDefinitions.namespaceImportWithInit.fourslash.d.ts +0 -1
  488. package/dist/tests/fourslash/findDefinitions.namespaceImportWithInit.fourslash.js.map +1 -1
  489. package/dist/tests/fourslash/findDefinitions.overloads.fourslash.d.ts +0 -1
  490. package/dist/tests/fourslash/findDefinitions.overloads.fourslash.js.map +1 -1
  491. package/dist/tests/fourslash/findDefinitions.parameters.fourslash.d.ts +0 -1
  492. package/dist/tests/fourslash/findDefinitions.parameters.fourslash.js.map +1 -1
  493. package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.d.ts +0 -1
  494. package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.js.map +1 -1
  495. package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.d.ts +0 -1
  496. package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.js.map +1 -1
  497. package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.d.ts +0 -1
  498. package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.js.map +1 -1
  499. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.d.ts +0 -1
  500. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.js.map +1 -1
  501. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.d.ts +0 -1
  502. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.js.map +1 -1
  503. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.d.ts +0 -1
  504. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.js.map +1 -1
  505. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.d.ts +0 -1
  506. package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.js.map +1 -1
  507. package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.d.ts +0 -1
  508. package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.js.map +1 -1
  509. package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.d.ts +0 -1
  510. package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.js.map +1 -1
  511. package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.d.ts +0 -1
  512. package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.js.map +1 -1
  513. package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.d.ts +0 -1
  514. package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.js.map +1 -1
  515. package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.d.ts +0 -1
  516. package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.js.map +1 -1
  517. package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.d.ts +0 -1
  518. package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.js.map +1 -1
  519. package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.d.ts +0 -1
  520. package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.js.map +1 -1
  521. package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.d.ts +0 -1
  522. package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.js.map +1 -1
  523. package/dist/tests/fourslash/findDefinitions.variables.fourslash.d.ts +0 -1
  524. package/dist/tests/fourslash/findDefinitions.variables.fourslash.js.map +1 -1
  525. package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.d.ts +0 -1
  526. package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.js.map +1 -1
  527. package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.d.ts +0 -1
  528. package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.js.map +1 -1
  529. package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.d.ts +0 -1
  530. package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.js.map +1 -1
  531. package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.d.ts +0 -1
  532. package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.js.map +1 -1
  533. package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.d.ts +0 -1
  534. package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.js.map +1 -1
  535. package/dist/tests/fourslash/findallreferences.fourslash.d.ts +0 -1
  536. package/dist/tests/fourslash/findallreferences.fourslash.js.map +1 -1
  537. package/dist/tests/fourslash/findallreferences.importalias.fourslash.d.ts +0 -1
  538. package/dist/tests/fourslash/findallreferences.importalias.fourslash.js.map +1 -1
  539. package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.d.ts +0 -1
  540. package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.js.map +1 -1
  541. package/dist/tests/fourslash/findallreferences.module.nested.fourslash.d.ts +0 -1
  542. package/dist/tests/fourslash/findallreferences.module.nested.fourslash.js.map +1 -1
  543. package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.d.ts +0 -1
  544. package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.js.map +1 -1
  545. package/dist/tests/fourslash/findallreferences.modules.fourslash.d.ts +0 -1
  546. package/dist/tests/fourslash/findallreferences.modules.fourslash.js.map +1 -1
  547. package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.d.ts +0 -1
  548. package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.js.map +1 -1
  549. package/dist/tests/fourslash/findallreferences.openFiles.fourslash.d.ts +0 -1
  550. package/dist/tests/fourslash/findallreferences.openFiles.fourslash.js.map +1 -1
  551. package/dist/tests/fourslash/findallreferences.parameter.fourslash.d.ts +0 -1
  552. package/dist/tests/fourslash/findallreferences.parameter.fourslash.js.map +1 -1
  553. package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.d.ts +0 -1
  554. package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.js.map +1 -1
  555. package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.d.ts +0 -1
  556. package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.js.map +1 -1
  557. package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.d.ts +0 -1
  558. package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.js.map +1 -1
  559. package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.d.ts +0 -1
  560. package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.js.map +1 -1
  561. package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.d.ts +0 -1
  562. package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.js.map +1 -1
  563. package/dist/tests/fourslash/findallreferences.variable.fourslash.d.ts +0 -1
  564. package/dist/tests/fourslash/findallreferences.variable.fourslash.js.map +1 -1
  565. package/dist/tests/fourslash/highlightreferences.attributes.fourslash.d.ts +0 -1
  566. package/dist/tests/fourslash/highlightreferences.attributes.fourslash.js.map +1 -1
  567. package/dist/tests/fourslash/hover.async.fourslash.d.ts +0 -1
  568. package/dist/tests/fourslash/hover.builtinDocstrings.builtinInheritedByBuiltin.fourslash.d.ts +0 -1
  569. package/dist/tests/fourslash/hover.builtinDocstrings.builtinInheritedByUserCode.fourslash.d.ts +0 -1
  570. package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.d.ts +0 -1
  571. package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.js.map +1 -1
  572. package/dist/tests/fourslash/hover.class.docString.fourslash.d.ts +0 -1
  573. package/dist/tests/fourslash/hover.classNoInit.fourslash.d.ts +0 -1
  574. package/dist/tests/fourslash/hover.docFromSrc.fourslash.d.ts +0 -1
  575. package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.d.ts +0 -1
  576. package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.d.ts +0 -1
  577. package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.d.ts +0 -1
  578. package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.d.ts +0 -1
  579. package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.d.ts +0 -1
  580. package/dist/tests/fourslash/hover.docFromSrc.stringFormat.fourslash.d.ts +0 -1
  581. package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.d.ts +0 -1
  582. package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.d.ts +0 -1
  583. package/dist/tests/fourslash/hover.docstring.alias.fourslash.d.ts +0 -1
  584. package/dist/tests/fourslash/hover.docstring.links.fourslash.d.ts +0 -1
  585. package/dist/tests/fourslash/hover.docstring.overloads.fourslash.d.ts +0 -1
  586. package/dist/tests/fourslash/hover.docstring.parameter.fourslash.d.ts +0 -1
  587. package/dist/tests/fourslash/hover.docstring.split.fourslash.d.ts +0 -1
  588. package/dist/tests/fourslash/hover.dunderNew.basic.fourslash.d.ts +0 -1
  589. package/dist/tests/fourslash/hover.dunderNew.inheritance.fourslash.d.ts +0 -1
  590. package/dist/tests/fourslash/hover.dunderNew.inheritance2.fourslash.d.ts +0 -1
  591. package/dist/tests/fourslash/hover.dunderNew.overloads.fourslash.d.ts +0 -1
  592. package/dist/tests/fourslash/hover.dunderNew.withInit.fourslash.d.ts +0 -1
  593. package/dist/tests/fourslash/hover.formatted.fourslash.d.ts +0 -1
  594. package/dist/tests/fourslash/hover.fourslash.d.ts +0 -1
  595. package/dist/tests/fourslash/hover.import.django.view.fourslash.d.ts +0 -1
  596. package/dist/tests/fourslash/hover.import.fourslash.d.ts +0 -1
  597. package/dist/tests/fourslash/hover.inferred.fourslash.d.ts +0 -1
  598. package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.d.ts +0 -1
  599. package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.d.ts +0 -1
  600. package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.d.ts +0 -1
  601. package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.d.ts +0 -1
  602. package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.d.ts +0 -1
  603. package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.d.ts +0 -1
  604. package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.d.ts +0 -1
  605. package/dist/tests/fourslash/hover.init.fourslash.d.ts +0 -1
  606. package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.d.ts +0 -1
  607. package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.d.ts +0 -1
  608. package/dist/tests/fourslash/hover.libStub.fourslash.d.ts +0 -1
  609. package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.d.ts +0 -1
  610. package/dist/tests/fourslash/hover.overloadedFunction.fourslash.d.ts +0 -1
  611. package/dist/tests/fourslash/hover.plainText.fourslash.d.ts +0 -1
  612. package/dist/tests/fourslash/hover.slots.fourslash.d.ts +0 -1
  613. package/dist/tests/fourslash/hover.typedDict.key.fourslash.d.ts +0 -1
  614. package/dist/tests/fourslash/hover.unpackedTypedDict.key.fourslash.d.ts +0 -1
  615. package/dist/tests/fourslash/hover.variable.docString.fourslash.d.ts +0 -1
  616. package/dist/tests/fourslash/hover.wildcardimports.fourslash.d.ts +0 -1
  617. package/dist/tests/fourslash/import.multipart.fourslash.d.ts +0 -1
  618. package/dist/tests/fourslash/import.nameconflict.fourslash.d.ts +0 -1
  619. package/dist/tests/fourslash/import.publicSymbols.fourslash.d.ts +0 -1
  620. package/dist/tests/fourslash/import.publicSymbols.fourslash.js.map +1 -1
  621. package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.d.ts +0 -1
  622. package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.d.ts +0 -1
  623. package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.d.ts +0 -1
  624. package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.d.ts +0 -1
  625. package/dist/tests/fourslash/import.wildcard.fourslash.d.ts +0 -1
  626. package/dist/tests/fourslash/importnotresolved.fourslash.d.ts +0 -1
  627. package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.d.ts +0 -1
  628. package/dist/tests/fourslash/missingModuleSource.fourslash.d.ts +0 -1
  629. package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.d.ts +0 -1
  630. package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.d.ts +0 -1
  631. package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.d.ts +0 -1
  632. package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.d.ts +0 -1
  633. package/dist/tests/fourslash/missingTypeStub.command.trycatchImport.fourslash.d.ts +0 -1
  634. package/dist/tests/fourslash/missingTypeStub.fourslash.d.ts +0 -1
  635. package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.d.ts +0 -1
  636. package/dist/tests/fourslash/noerrors.fourslash.d.ts +0 -1
  637. package/dist/tests/fourslash/orderImports1.command.fourslash.d.ts +0 -1
  638. package/dist/tests/fourslash/orderImports2.command.fourslash.d.ts +0 -1
  639. package/dist/tests/fourslash/rename.args.fourslash.d.ts +0 -1
  640. package/dist/tests/fourslash/rename.args.fourslash.js.map +1 -1
  641. package/dist/tests/fourslash/rename.externallyHidden.fourslash.d.ts +0 -1
  642. package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.d.ts +0 -1
  643. package/dist/tests/fourslash/rename.fourslash.d.ts +0 -1
  644. package/dist/tests/fourslash/rename.fourslash.js.map +1 -1
  645. package/dist/tests/fourslash/rename.function.untitledFile.fourslash.d.ts +0 -1
  646. package/dist/tests/fourslash/rename.function.untitledFile.fourslash.js.map +1 -1
  647. package/dist/tests/fourslash/rename.init.fourslash.d.ts +0 -1
  648. package/dist/tests/fourslash/rename.init.fourslash.js.map +1 -1
  649. package/dist/tests/fourslash/rename.library.fourslash.d.ts +0 -1
  650. package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.d.ts +0 -1
  651. package/dist/tests/fourslash/rename.multipleDecl.fourslash.d.ts +0 -1
  652. package/dist/tests/fourslash/rename.parens.fourslash.d.ts +0 -1
  653. package/dist/tests/fourslash/rename.parens.fourslash.js.map +1 -1
  654. package/dist/tests/fourslash/rename.sourceAndStub.fourslash.d.ts +0 -1
  655. package/dist/tests/fourslash/rename.sourceAndStub.fourslash.js.map +1 -1
  656. package/dist/tests/fourslash/rename.string.excluded.fourslash.d.ts +0 -1
  657. package/dist/tests/fourslash/rename.string.excluded.fourslash.js.map +1 -1
  658. package/dist/tests/fourslash/rename.string.fourslash.d.ts +0 -1
  659. package/dist/tests/fourslash/rename.string.fourslash.js.map +1 -1
  660. package/dist/tests/fourslash/shadowedImports.fourslash.d.ts +0 -1
  661. package/dist/tests/fourslash/showcallhierarchy.incomingCalls.aliasedFunction.fourslash.d.ts +0 -1
  662. package/dist/tests/fourslash/showcallhierarchy.incomingCalls.aliasedFunction.fourslash.js.map +1 -1
  663. package/dist/tests/fourslash/showcallhierarchy.incomingCalls.aliasedVariable.fourslash.d.ts +0 -1
  664. package/dist/tests/fourslash/showcallhierarchy.incomingCalls.aliasedVariable.fourslash.js.map +1 -1
  665. package/dist/tests/fourslash/showcallhierarchy.incomingCalls.function.fourslash.d.ts +0 -1
  666. package/dist/tests/fourslash/showcallhierarchy.incomingCalls.function.fourslash.js.map +1 -1
  667. package/dist/tests/fourslash/showcallhierarchy.outgoingCalls.aliasedFunction1.fourslash.d.ts +0 -1
  668. package/dist/tests/fourslash/showcallhierarchy.outgoingCalls.aliasedFunction1.fourslash.js.map +1 -1
  669. package/dist/tests/fourslash/showcallhierarchy.outgoingCalls.aliasedFunction2.fourslash.d.ts +0 -1
  670. package/dist/tests/fourslash/showcallhierarchy.outgoingCalls.aliasedFunction2.fourslash.js.map +1 -1
  671. package/dist/tests/fourslash/showcallhierarchy.outgoingCalls.function.fourslash.d.ts +0 -1
  672. package/dist/tests/fourslash/showcallhierarchy.outgoingCalls.function.fourslash.js.map +1 -1
  673. package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.d.ts +0 -1
  674. package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.js.map +1 -1
  675. package/dist/tests/fourslash/signature.complicated.fourslash.d.ts +0 -1
  676. package/dist/tests/fourslash/signature.complicated.fourslash.js.map +1 -1
  677. package/dist/tests/fourslash/signature.cornercases.fourslash.d.ts +0 -1
  678. package/dist/tests/fourslash/signature.cornercases.fourslash.js.map +1 -1
  679. package/dist/tests/fourslash/signature.docstrings.fourslash.d.ts +0 -1
  680. package/dist/tests/fourslash/signature.docstrings.fourslash.js.map +1 -1
  681. package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.d.ts +0 -1
  682. package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.js.map +1 -1
  683. package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.d.ts +0 -1
  684. package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.js.map +1 -1
  685. package/dist/tests/fourslash/signature.dunderNew.fourslash.d.ts +0 -1
  686. package/dist/tests/fourslash/signature.dunderNew.fourslash.js.map +1 -1
  687. package/dist/tests/fourslash/signature.overload.fourslash.d.ts +0 -1
  688. package/dist/tests/fourslash/signature.overload.fourslash.js.map +1 -1
  689. package/dist/tests/fourslash/signature.simple.fourslash.d.ts +0 -1
  690. package/dist/tests/fourslash/signature.simple.fourslash.js.map +1 -1
  691. package/dist/tests/fourslash/typeVerifier.fourslash.d.ts +0 -1
  692. package/dist/tests/fourslash/typeVerifier.fourslash.js.map +1 -1
  693. package/dist/tests/harness/fourslash/fourSlashParser.js +1 -2
  694. package/dist/tests/harness/fourslash/fourSlashParser.js.map +1 -1
  695. package/dist/tests/harness/fourslash/fourSlashTypes.js.map +1 -1
  696. package/dist/tests/harness/fourslash/runner.d.ts +0 -1
  697. package/dist/tests/harness/fourslash/runner.js +2 -3
  698. package/dist/tests/harness/fourslash/runner.js.map +1 -1
  699. package/dist/tests/harness/fourslash/testLanguageService.js.map +1 -1
  700. package/dist/tests/harness/fourslash/testState.js +7 -7
  701. package/dist/tests/harness/fourslash/testState.js.map +1 -1
  702. package/dist/tests/harness/fourslash/testStateUtils.js +4 -5
  703. package/dist/tests/harness/fourslash/testStateUtils.js.map +1 -1
  704. package/dist/tests/harness/fourslash/workspaceEditTestUtils.js +7 -8
  705. package/dist/tests/harness/fourslash/workspaceEditTestUtils.js.map +1 -1
  706. package/dist/tests/harness/testHost.js.map +1 -1
  707. package/dist/tests/harness/utils.d.ts +0 -2
  708. package/dist/tests/harness/utils.js +7 -7
  709. package/dist/tests/harness/utils.js.map +1 -1
  710. package/dist/tests/harness/vfs/factory.js +3 -3
  711. package/dist/tests/harness/vfs/factory.js.map +1 -1
  712. package/dist/tests/harness/vfs/filesystem.d.ts +0 -2
  713. package/dist/tests/harness/vfs/filesystem.js +2 -2
  714. package/dist/tests/harness/vfs/filesystem.js.map +1 -1
  715. package/dist/tests/harness/vfs/pathValidation.js +2 -2
  716. package/dist/tests/harness/vfs/pathValidation.js.map +1 -1
  717. package/dist/tests/importResolver.test.js.map +1 -1
  718. package/dist/tests/importStatementUtils.test.js.map +1 -1
  719. package/dist/tests/ipythonMode.test.js.map +1 -1
  720. package/dist/tests/languageServer.test.js.map +1 -1
  721. package/dist/tests/localizer.test.js.map +1 -1
  722. package/dist/tests/lsp/languageServer.js +1 -2
  723. package/dist/tests/lsp/languageServer.js.map +1 -1
  724. package/dist/tests/lsp/languageServerTestUtils.js +14 -14
  725. package/dist/tests/lsp/languageServerTestUtils.js.map +1 -1
  726. package/dist/tests/lsp/webpack.testserver.config.d.ts +2 -2
  727. package/dist/tests/parseTreeUtils.test.js.map +1 -1
  728. package/dist/tests/pathUtils.test.js.map +1 -1
  729. package/dist/tests/pyrightFileSystem.test.js.map +1 -1
  730. package/dist/tests/serialization.test.js +1 -2
  731. package/dist/tests/serialization.test.js.map +1 -1
  732. package/dist/tests/sourceMapperUtils.test.js.map +1 -1
  733. package/dist/tests/testStateUtils.js +5 -6
  734. package/dist/tests/testStateUtils.js.map +1 -1
  735. package/dist/tests/testUtils.js +8 -9
  736. package/dist/tests/testUtils.js.map +1 -1
  737. package/dist/tests/textEditUtil.test.js.map +1 -1
  738. package/dist/tests/tokenizer.test.js.map +1 -1
  739. package/dist/tests/typeEvaluator1.test.js +6 -6
  740. package/dist/tests/typeEvaluator1.test.js.map +1 -1
  741. package/dist/tests/typeEvaluator2.test.js +8 -0
  742. package/dist/tests/typeEvaluator2.test.js.map +1 -1
  743. package/dist/tests/typeEvaluator3.test.js +2 -2
  744. package/dist/tests/typeEvaluator4.test.js +6 -2
  745. package/dist/tests/typeEvaluator4.test.js.map +1 -1
  746. package/dist/tests/typeEvaluator6.test.js +17 -9
  747. package/dist/tests/typeEvaluator6.test.js.map +1 -1
  748. package/dist/tests/typeEvaluator7.test.js +2 -2
  749. package/dist/tests/uri.test.js.map +1 -1
  750. package/dist/workspaceFactory.js +3 -3
  751. package/dist/workspaceFactory.js.map +1 -1
  752. package/package.json +2 -2
@@ -9,7 +9,11 @@
9
9
  * symbol tables.
10
10
  */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.isScopeContainedWithin = exports.findTopNodeInScope = exports.getScopeHierarchy = exports.getScopeForNode = exports.getBuiltInScope = void 0;
12
+ exports.getBuiltInScope = getBuiltInScope;
13
+ exports.getScopeForNode = getScopeForNode;
14
+ exports.getScopeHierarchy = getScopeHierarchy;
15
+ exports.findTopNodeInScope = findTopNodeInScope;
16
+ exports.isScopeContainedWithin = isScopeContainedWithin;
13
17
  const analyzerNodeInfo_1 = require("./analyzerNodeInfo");
14
18
  const parseTreeUtils_1 = require("./parseTreeUtils");
15
19
  function getBuiltInScope(currentScope) {
@@ -21,13 +25,11 @@ function getBuiltInScope(currentScope) {
21
25
  }
22
26
  return builtInScope;
23
27
  }
24
- exports.getBuiltInScope = getBuiltInScope;
25
28
  // Locates the evaluation scope associated with the specified parse node.
26
29
  function getScopeForNode(node) {
27
30
  const scopeNode = (0, parseTreeUtils_1.getEvaluationScopeNode)(node).node;
28
31
  return (0, analyzerNodeInfo_1.getScope)(scopeNode);
29
32
  }
30
- exports.getScopeForNode = getScopeForNode;
31
33
  // Returns a list of scopes associated with the node and its ancestor nodes.
32
34
  // If stopScope is provided, the search will stop at that scope.
33
35
  // Returns undefined if stopScope is not found.
@@ -50,7 +52,6 @@ function getScopeHierarchy(node, stopScope) {
50
52
  }
51
53
  return stopScope ? undefined : scopeHierarchy;
52
54
  }
53
- exports.getScopeHierarchy = getScopeHierarchy;
54
55
  // Walks up the parse tree from the specified node to find the top-most node
55
56
  // that is within specified scope.
56
57
  function findTopNodeInScope(node, scope) {
@@ -69,7 +70,6 @@ function findTopNodeInScope(node, scope) {
69
70
  }
70
71
  return undefined;
71
72
  }
72
- exports.findTopNodeInScope = findTopNodeInScope;
73
73
  function isScopeContainedWithin(scope, potentialParentScope) {
74
74
  let curScope = scope;
75
75
  while (curScope) {
@@ -80,5 +80,4 @@ function isScopeContainedWithin(scope, potentialParentScope) {
80
80
  }
81
81
  return false;
82
82
  }
83
- exports.isScopeContainedWithin = isScopeContainedWithin;
84
83
  //# sourceMappingURL=scopeUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scopeUtils.js","sourceRoot":"","sources":["../../../../../src/analyzer/scopeUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAGH,yDAA8C;AAC9C,qDAA0D;AAG1D,SAAgB,eAAe,CAAC,YAAmB;IAC/C,uEAAuE;IACvE,0BAA0B;IAC1B,IAAI,YAAY,GAAG,YAAY,CAAC;IAEhC,OAAO,YAAY,CAAC,IAAI,8BAAsB,EAAE;QAC5C,YAAY,GAAG,YAAY,CAAC,MAAO,CAAC;KACvC;IAED,OAAO,YAAY,CAAC;AACxB,CAAC;AAVD,0CAUC;AAED,yEAAyE;AACzE,SAAgB,eAAe,CAAC,IAAe;IAC3C,MAAM,SAAS,GAAG,IAAA,uCAAsB,EAAC,IAAI,CAAC,CAAC,IAAI,CAAC;IACpD,OAAO,IAAA,2BAAQ,EAAC,SAAS,CAAC,CAAC;AAC/B,CAAC;AAHD,0CAGC;AAED,4EAA4E;AAC5E,gEAAgE;AAChE,+CAA+C;AAC/C,SAAgB,iBAAiB,CAAC,IAAe,EAAE,SAAiB;IAChE,MAAM,cAAc,GAAY,EAAE,CAAC;IACnC,IAAI,OAAO,GAA0B,IAAI,CAAC;IAE1C,OAAO,OAAO,EAAE;QACZ,MAAM,SAAS,GAAwB,IAAA,uCAAsB,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC;QAC5E,MAAM,QAAQ,GAAG,IAAA,2BAAQ,EAAC,SAAS,CAAC,CAAC;QAErC,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,SAAS,CAAC;SACpB;QAED,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,QAAQ,EAAE;YACvF,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACjC;QAED,IAAI,QAAQ,KAAK,SAAS,EAAE;YACxB,OAAO,cAAc,CAAC;SACzB;QAED,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC;KAC9B;IAED,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC;AAClD,CAAC;AAxBD,8CAwBC;AAED,4EAA4E;AAC5E,kCAAkC;AAClC,SAAgB,kBAAkB,CAAC,IAAe,EAAE,KAAY;IAC5D,IAAI,OAAO,GAA0B,IAAI,CAAC;IAC1C,IAAI,QAA+B,CAAC;IACpC,IAAI,UAAU,GAAG,KAAK,CAAC;IAEvB,OAAO,OAAO,EAAE;QACZ,IAAI,IAAA,2BAAQ,EAAC,OAAO,CAAC,KAAK,KAAK,EAAE;YAC7B,UAAU,GAAG,IAAI,CAAC;SACrB;aAAM,IAAI,UAAU,EAAE;YACnB,OAAO,QAAQ,CAAC;SACnB;QAED,QAAQ,GAAG,OAAO,CAAC;QACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;KAC5B;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AAjBD,gDAiBC;AAED,SAAgB,sBAAsB,CAAC,KAAY,EAAE,oBAA2B;IAC5E,IAAI,QAAQ,GAAsB,KAAK,CAAC;IAExC,OAAO,QAAQ,EAAE;QACb,IAAI,QAAQ,CAAC,MAAM,KAAK,oBAAoB,EAAE;YAC1C,OAAO,IAAI,CAAC;SACf;QAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;KAC9B;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAZD,wDAYC"}
1
+ {"version":3,"file":"scopeUtils.js","sourceRoot":"","sources":["../../../../../src/analyzer/scopeUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAOH,0CAUC;AAGD,0CAGC;AAKD,8CAwBC;AAID,gDAiBC;AAED,wDAYC;AApFD,yDAA8C;AAC9C,qDAA0D;AAG1D,SAAgB,eAAe,CAAC,YAAmB;IAC/C,uEAAuE;IACvE,0BAA0B;IAC1B,IAAI,YAAY,GAAG,YAAY,CAAC;IAEhC,OAAO,YAAY,CAAC,IAAI,8BAAsB,EAAE,CAAC;QAC7C,YAAY,GAAG,YAAY,CAAC,MAAO,CAAC;IACxC,CAAC;IAED,OAAO,YAAY,CAAC;AACxB,CAAC;AAED,yEAAyE;AACzE,SAAgB,eAAe,CAAC,IAAe;IAC3C,MAAM,SAAS,GAAG,IAAA,uCAAsB,EAAC,IAAI,CAAC,CAAC,IAAI,CAAC;IACpD,OAAO,IAAA,2BAAQ,EAAC,SAAS,CAAC,CAAC;AAC/B,CAAC;AAED,4EAA4E;AAC5E,gEAAgE;AAChE,+CAA+C;AAC/C,SAAgB,iBAAiB,CAAC,IAAe,EAAE,SAAiB;IAChE,MAAM,cAAc,GAAY,EAAE,CAAC;IACnC,IAAI,OAAO,GAA0B,IAAI,CAAC;IAE1C,OAAO,OAAO,EAAE,CAAC;QACb,MAAM,SAAS,GAAwB,IAAA,uCAAsB,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC;QAC5E,MAAM,QAAQ,GAAG,IAAA,2BAAQ,EAAC,SAAS,CAAC,CAAC;QAErC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;YACxF,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;QAED,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,cAAc,CAAC;QAC1B,CAAC;QAED,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC;IAC/B,CAAC;IAED,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC;AAClD,CAAC;AAED,4EAA4E;AAC5E,kCAAkC;AAClC,SAAgB,kBAAkB,CAAC,IAAe,EAAE,KAAY;IAC5D,IAAI,OAAO,GAA0B,IAAI,CAAC;IAC1C,IAAI,QAA+B,CAAC;IACpC,IAAI,UAAU,GAAG,KAAK,CAAC;IAEvB,OAAO,OAAO,EAAE,CAAC;QACb,IAAI,IAAA,2BAAQ,EAAC,OAAO,CAAC,KAAK,KAAK,EAAE,CAAC;YAC9B,UAAU,GAAG,IAAI,CAAC;QACtB,CAAC;aAAM,IAAI,UAAU,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QACpB,CAAC;QAED,QAAQ,GAAG,OAAO,CAAC;QACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAAY,EAAE,oBAA2B;IAC5E,IAAI,QAAQ,GAAsB,KAAK,CAAC;IAExC,OAAO,QAAQ,EAAE,CAAC;QACd,IAAI,QAAQ,CAAC,MAAM,KAAK,oBAAoB,EAAE,CAAC;YAC3C,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC/B,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -119,6 +119,9 @@ export declare class AnalyzerService {
119
119
  private get _verboseOutput();
120
120
  private get _typeStubTargetImportName();
121
121
  private _getConfigOptions;
122
+ private _ensureDefaultOptions;
123
+ private _applyLanguageServerOptions;
124
+ private _applyCommandLineOverrides;
122
125
  private _getExtendedConfigurations;
123
126
  private _getTypeStubFolder;
124
127
  private _parseJsonConfigFile;
@@ -32,7 +32,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
32
32
  return result;
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.AnalyzerService = exports.getNextServiceId = void 0;
35
+ exports.AnalyzerService = void 0;
36
+ exports.getNextServiceId = getNextServiceId;
36
37
  const TOML = __importStar(require("@iarna/toml"));
37
38
  const JSONC = __importStar(require("jsonc-parser"));
38
39
  const cancellationUtils_1 = require("../common/cancellationUtils");
@@ -62,7 +63,6 @@ let _nextServiceId = 1;
62
63
  function getNextServiceId(name) {
63
64
  return `${name}_${_nextServiceId++}`;
64
65
  }
65
- exports.getNextServiceId = getNextServiceId;
66
66
  class AnalyzerService {
67
67
  constructor(instanceName, serviceProvider, options) {
68
68
  var _a, _b, _c, _d, _e;
@@ -331,31 +331,31 @@ class AnalyzerService {
331
331
  }
332
332
  get _watchForSourceChanges() {
333
333
  var _a;
334
- return !!((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.watchForSourceChanges);
334
+ return !!((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.languageServerSettings.watchForSourceChanges);
335
335
  }
336
336
  get _watchForLibraryChanges() {
337
337
  var _a;
338
- return !!((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.watchForLibraryChanges) && !!this._options.libraryReanalysisTimeProvider;
338
+ return (!!((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.languageServerSettings.watchForLibraryChanges) &&
339
+ !!this._options.libraryReanalysisTimeProvider);
339
340
  }
340
341
  get _watchForConfigChanges() {
341
342
  var _a;
342
- return !!((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.watchForConfigChanges);
343
+ return !!((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.languageServerSettings.watchForConfigChanges);
343
344
  }
344
345
  get _typeCheckingMode() {
345
346
  var _a;
346
- return (_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.typeCheckingMode;
347
+ return (_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.configSettings.typeCheckingMode;
347
348
  }
348
349
  get _verboseOutput() {
349
350
  return !!this._configOptions.verboseOutput;
350
351
  }
351
352
  get _typeStubTargetImportName() {
352
353
  var _a;
353
- return (_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.typeStubTargetImportName;
354
+ return (_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.languageServerSettings.typeStubTargetImportName;
354
355
  }
355
356
  // Calculates the effective options based on the command-line options,
356
357
  // an optional config file, and default values.
357
358
  _getConfigOptions(host, commandLineOptions) {
358
- var _a, _b, _c, _d;
359
359
  const optionRoot = commandLineOptions.executionRoot;
360
360
  const executionRootUri = uri_1.Uri.is(optionRoot)
361
361
  ? optionRoot
@@ -397,7 +397,7 @@ class AnalyzerService {
397
397
  // If pyright is being executed from the command line, the working
398
398
  // directory may be deep within a project, and we need to walk up the
399
399
  // directory hierarchy to find the project root.
400
- if (!configFilePath && !commandLineOptions.fromVsCodeExtension) {
400
+ if (!configFilePath && !commandLineOptions.fromLanguageServer) {
401
401
  configFilePath = (0, serviceUtils_1.findConfigFileHereOrUp)(this.fs, projectRoot);
402
402
  }
403
403
  if (configFilePath) {
@@ -411,7 +411,7 @@ class AnalyzerService {
411
411
  if (!configFilePath) {
412
412
  // See if we can find a pyproject.toml file in this directory.
413
413
  pyprojectFilePath = (0, serviceUtils_1.findPyprojectTomlFile)(this.fs, projectRoot);
414
- if (!pyprojectFilePath && !commandLineOptions.fromVsCodeExtension) {
414
+ if (!pyprojectFilePath && !commandLineOptions.fromLanguageServer) {
415
415
  pyprojectFilePath = (0, serviceUtils_1.findPyprojectTomlFileHereOrUp)(this.fs, projectRoot);
416
416
  }
417
417
  if (pyprojectFilePath) {
@@ -423,42 +423,40 @@ class AnalyzerService {
423
423
  }
424
424
  }
425
425
  const configOptions = new configOptions_1.ConfigOptions(projectRoot);
426
- configOptions.initializeTypeCheckingMode(this._typeCheckingMode, commandLineOptions.diagnosticSeverityOverrides);
427
- const defaultExcludes = ['**/node_modules', '**/__pycache__', '**/.*'];
428
- if (commandLineOptions.pythonPath) {
429
- this._console.info(`Setting pythonPath for service "${this._instanceName}": ` + `"${commandLineOptions.pythonPath}"`);
430
- configOptions.pythonPath = this.fs.realCasePath(uri_1.Uri.file(commandLineOptions.pythonPath, this.serviceProvider, /* checkRelative */ true));
431
- }
432
- if (commandLineOptions.pythonEnvironmentName) {
433
- this._console.info(`Setting environmentName for service "${this._instanceName}": ` +
434
- `"${commandLineOptions.pythonEnvironmentName}"`);
435
- configOptions.pythonEnvironmentName = commandLineOptions.pythonEnvironmentName;
436
- }
437
- // The pythonPlatform and pythonVersion from the command-line can be overridden
438
- // by the config file, so initialize them upfront.
439
- configOptions.defaultPythonPlatform = commandLineOptions.pythonPlatform;
440
- configOptions.defaultPythonVersion = commandLineOptions.pythonVersion;
441
- configOptions.ensureDefaultExtraPaths(this.fs, (_a = commandLineOptions.autoSearchPaths) !== null && _a !== void 0 ? _a : false, commandLineOptions.extraPaths);
442
- commandLineOptions.includeFileSpecs.forEach((fileSpec) => {
443
- configOptions.include.push((0, uriUtils_1.getFileSpec)(projectRoot, fileSpec));
444
- });
445
- commandLineOptions.excludeFileSpecs.forEach((fileSpec) => {
446
- configOptions.exclude.push((0, uriUtils_1.getFileSpec)(projectRoot, fileSpec));
447
- });
448
- commandLineOptions.ignoreFileSpecs.forEach((fileSpec) => {
449
- configOptions.ignore.push((0, uriUtils_1.getFileSpec)(projectRoot, fileSpec));
450
- });
451
- configOptions.disableTaggedHints = !!commandLineOptions.disableTaggedHints;
452
- configOptions.initializeTypeCheckingMode((_b = commandLineOptions.typeCheckingMode) !== null && _b !== void 0 ? _b : 'standard');
426
+ // If we found a config file, load it and apply its settings.
453
427
  const configs = this._getExtendedConfigurations(configFilePath !== null && configFilePath !== void 0 ? configFilePath : pyprojectFilePath);
454
428
  if (configs && configs.length > 0) {
429
+ // With a pyrightconfig.json set, we want the typeCheckingMode to always be standard
430
+ // as that's what the Pyright CLI will expect. Command line options (if not a language server) and
431
+ // the config file can override this.
432
+ configOptions.initializeTypeCheckingMode('standard');
433
+ // Then we apply the config file settings. This can update the
434
+ // the typeCheckingMode.
455
435
  for (const config of configs) {
456
- configOptions.initializeFromJson(config.configFileJsonObj, config.configFileDirUri, this.serviceProvider, host, commandLineOptions);
436
+ configOptions.initializeFromJson(config.configFileJsonObj, config.configFileDirUri, this.serviceProvider, host);
437
+ }
438
+ // When not in language server mode, command line options override config file options.
439
+ if (!commandLineOptions.fromLanguageServer) {
440
+ this._applyCommandLineOverrides(configOptions, commandLineOptions.configSettings, projectRoot, false);
457
441
  }
458
442
  }
459
443
  else {
460
- configOptions.applyDiagnosticOverrides(commandLineOptions.diagnosticSeverityOverrides);
461
- }
444
+ // Initialize the type checking mode based on if this is for a language server or not. Language
445
+ // servers default to 'off' when no config file is found.
446
+ configOptions.initializeTypeCheckingMode(commandLineOptions.fromLanguageServer ? 'off' : 'standard');
447
+ // If there are no config files, we can then directly apply the command line options.
448
+ this._applyCommandLineOverrides(configOptions, commandLineOptions.configSettings, projectRoot, commandLineOptions.fromLanguageServer);
449
+ }
450
+ // Apply the command line options that are not in the config file. These settings
451
+ // only apply to the language server.
452
+ this._applyLanguageServerOptions(configOptions, commandLineOptions.languageServerSettings);
453
+ // Ensure that if no command line or config options were applied, we have some defaults.
454
+ this._ensureDefaultOptions(host, configOptions, projectRoot, executionRoot, commandLineOptions);
455
+ return configOptions;
456
+ }
457
+ _ensureDefaultOptions(host, configOptions, projectRoot, executionRoot, commandLineOptions) {
458
+ var _a, _b;
459
+ const defaultExcludes = ['**/node_modules', '**/__pycache__', '**/.*'];
462
460
  // If no include paths were provided, assume that all files within
463
461
  // the project should be included.
464
462
  if (configOptions.include.length === 0) {
@@ -476,44 +474,14 @@ class AnalyzerService {
476
474
  configOptions.autoExcludeVenv = true;
477
475
  }
478
476
  }
479
- // Override the analyzeUnannotatedFunctions setting based on the command-line setting.
480
- if (commandLineOptions.analyzeUnannotatedFunctions !== undefined) {
481
- configOptions.diagnosticRuleSet.analyzeUnannotatedFunctions =
482
- commandLineOptions.analyzeUnannotatedFunctions;
477
+ if (!configOptions.defaultExtraPaths) {
478
+ configOptions.ensureDefaultExtraPaths(this.fs, (_a = commandLineOptions.configSettings.autoSearchPaths) !== null && _a !== void 0 ? _a : false, commandLineOptions.configSettings.extraPaths);
483
479
  }
484
- // Override the include based on command-line settings.
485
- if (commandLineOptions.includeFileSpecsOverride) {
486
- configOptions.include = [];
487
- commandLineOptions.includeFileSpecsOverride.forEach((include) => {
488
- configOptions.include.push((0, uriUtils_1.getFileSpec)(uri_1.Uri.file(include, this.serviceProvider, /* checkRelative */ true), '.'));
489
- });
480
+ if (configOptions.defaultPythonPlatform === undefined) {
481
+ configOptions.defaultPythonPlatform = commandLineOptions.configSettings.pythonPlatform;
490
482
  }
491
- const reportDuplicateSetting = (settingName, configValue) => {
492
- const settingSource = commandLineOptions.fromVsCodeExtension
493
- ? 'the client settings'
494
- : 'a command-line option';
495
- this._console.warn(`The ${settingName} has been specified in both the config file and ` +
496
- `${settingSource}. The value in the config file (${configValue}) ` +
497
- `will take precedence`);
498
- };
499
- // Apply the command-line options if the corresponding
500
- // item wasn't already set in the config file. Report any
501
- // duplicates.
502
- if (commandLineOptions.venvPath) {
503
- if (!configOptions.venvPath) {
504
- configOptions.venvPath = projectRoot.resolvePaths(commandLineOptions.venvPath);
505
- }
506
- else {
507
- reportDuplicateSetting('venvPath', configOptions.venvPath.toUserVisibleString());
508
- }
509
- }
510
- if (commandLineOptions.typeshedPath) {
511
- if (!configOptions.typeshedPath) {
512
- configOptions.typeshedPath = projectRoot.resolvePaths(commandLineOptions.typeshedPath);
513
- }
514
- else {
515
- reportDuplicateSetting('typeshedPath', configOptions.typeshedPath.toUserVisibleString());
516
- }
483
+ if (configOptions.defaultPythonVersion === undefined) {
484
+ configOptions.defaultPythonVersion = commandLineOptions.configSettings.pythonVersion;
517
485
  }
518
486
  // If the caller specified that "typeshedPath" is the root of the project,
519
487
  // then we're presumably running in the typeshed project itself. Auto-exclude
@@ -528,33 +496,10 @@ class AnalyzerService {
528
496
  configOptions.exclude.push((0, uriUtils_1.getFileSpec)(executionRoot, exclude.getFilePath()));
529
497
  });
530
498
  }
531
- configOptions.verboseOutput = (_c = commandLineOptions.verboseOutput) !== null && _c !== void 0 ? _c : configOptions.verboseOutput;
532
- configOptions.checkOnlyOpenFiles = !!commandLineOptions.checkOnlyOpenFiles;
533
- configOptions.autoImportCompletions = !!commandLineOptions.autoImportCompletions;
534
- configOptions.indexing = !!commandLineOptions.indexing;
535
- configOptions.taskListTokens = commandLineOptions.taskListTokens;
536
- configOptions.logTypeEvaluationTime = !!commandLineOptions.logTypeEvaluationTime;
537
- configOptions.typeEvaluationTimeThreshold = commandLineOptions.typeEvaluationTimeThreshold;
538
- // If useLibraryCodeForTypes was not specified in the config, allow the settings
539
- // or command line to override it.
540
- if (configOptions.useLibraryCodeForTypes === undefined) {
541
- configOptions.useLibraryCodeForTypes = commandLineOptions.useLibraryCodeForTypes;
542
- }
543
- else if (commandLineOptions.useLibraryCodeForTypes !== undefined) {
544
- reportDuplicateSetting('useLibraryCodeForTypes', configOptions.useLibraryCodeForTypes);
545
- }
546
499
  // If useLibraryCodeForTypes is unspecified, default it to true.
547
500
  if (configOptions.useLibraryCodeForTypes === undefined) {
548
501
  configOptions.useLibraryCodeForTypes = true;
549
502
  }
550
- if (commandLineOptions.stubPath) {
551
- if (!configOptions.stubPath) {
552
- configOptions.stubPath = this.fs.realCasePath(projectRoot.resolvePaths(commandLineOptions.stubPath));
553
- }
554
- else {
555
- reportDuplicateSetting('stubPath', configOptions.stubPath.toUserVisibleString());
556
- }
557
- }
558
503
  if (configOptions.stubPath) {
559
504
  // If there was a stub path specified, validate it.
560
505
  if (!this.fs.existsSync(configOptions.stubPath) || !(0, uriUtils_1.isDirectory)(this.fs, configOptions.stubPath)) {
@@ -574,7 +519,7 @@ class AnalyzerService {
574
519
  // venvPath without venv means it won't do anything while resolveImport.
575
520
  // so first, try to set venv from existing configOption if it is null. if both are null,
576
521
  // then, resolveImport won't consider venv
577
- configOptions.venv = (_d = configOptions.venv) !== null && _d !== void 0 ? _d : this._configOptions.venv;
522
+ configOptions.venv = (_b = configOptions.venv) !== null && _b !== void 0 ? _b : this._configOptions.venv;
578
523
  if (configOptions.venv && configOptions.venvPath) {
579
524
  const fullVenvPath = configOptions.venvPath.resolvePaths(configOptions.venv);
580
525
  if (!this.fs.existsSync(fullVenvPath) || !(0, uriUtils_1.isDirectory)(this.fs, fullVenvPath)) {
@@ -605,7 +550,132 @@ class AnalyzerService {
605
550
  this._console.error(`typeshedPath ${configOptions.typeshedPath.toUserVisibleString()} is not a valid directory.`);
606
551
  }
607
552
  }
608
- return configOptions;
553
+ // This is a special case. It can be set in the config file, but if it's set on the command line, we should always
554
+ // override it.
555
+ if (commandLineOptions.configSettings.verboseOutput !== undefined) {
556
+ configOptions.verboseOutput = commandLineOptions.configSettings.verboseOutput;
557
+ }
558
+ }
559
+ _applyLanguageServerOptions(configOptions, languageServerOptions) {
560
+ configOptions.disableTaggedHints = !!languageServerOptions.disableTaggedHints;
561
+ if (languageServerOptions.checkOnlyOpenFiles !== undefined) {
562
+ configOptions.checkOnlyOpenFiles = languageServerOptions.checkOnlyOpenFiles;
563
+ }
564
+ if (languageServerOptions.autoImportCompletions !== undefined) {
565
+ configOptions.autoImportCompletions = languageServerOptions.autoImportCompletions;
566
+ }
567
+ if (languageServerOptions.indexing !== undefined) {
568
+ configOptions.indexing = languageServerOptions.indexing;
569
+ }
570
+ if (languageServerOptions.taskListTokens) {
571
+ configOptions.taskListTokens = languageServerOptions.taskListTokens;
572
+ }
573
+ if (languageServerOptions.logTypeEvaluationTime !== undefined) {
574
+ configOptions.logTypeEvaluationTime = languageServerOptions.logTypeEvaluationTime;
575
+ }
576
+ configOptions.typeEvaluationTimeThreshold = languageServerOptions.typeEvaluationTimeThreshold;
577
+ // Special case, the language service can also set a pythonPath. It should override any other setting.
578
+ if (languageServerOptions.pythonPath) {
579
+ this._console.info(`Setting pythonPath for service "${this._instanceName}": ` + `"${languageServerOptions.pythonPath}"`);
580
+ configOptions.pythonPath = this.fs.realCasePath(uri_1.Uri.file(languageServerOptions.pythonPath, this.serviceProvider, /* checkRelative */ true));
581
+ }
582
+ }
583
+ _applyCommandLineOverrides(configOptions, commandLineOptions, projectRoot, fromLanguageServer) {
584
+ var _a, _b, _c;
585
+ if (commandLineOptions.typeCheckingMode) {
586
+ configOptions.initializeTypeCheckingMode(commandLineOptions.typeCheckingMode);
587
+ }
588
+ if (commandLineOptions.extraPaths) {
589
+ const oldExtraPaths = configOptions.defaultExtraPaths ? [...configOptions.defaultExtraPaths] : [];
590
+ configOptions.ensureDefaultExtraPaths(this.fs, (_a = commandLineOptions.autoSearchPaths) !== null && _a !== void 0 ? _a : false, commandLineOptions.extraPaths);
591
+ // Execution environments inherit the default extra paths, so we need to update them as well.
592
+ configOptions.executionEnvironments.forEach((env) => {
593
+ env.extraPaths = env.extraPaths.filter((path) => !oldExtraPaths.some((oldPath) => oldPath.equals(path)));
594
+ env.extraPaths.push(...configOptions.defaultExtraPaths);
595
+ });
596
+ }
597
+ if (commandLineOptions.pythonVersion || commandLineOptions.pythonPlatform) {
598
+ configOptions.defaultPythonVersion = (_b = commandLineOptions.pythonVersion) !== null && _b !== void 0 ? _b : configOptions.defaultPythonVersion;
599
+ configOptions.defaultPythonPlatform =
600
+ (_c = commandLineOptions.pythonPlatform) !== null && _c !== void 0 ? _c : configOptions.defaultPythonPlatform;
601
+ // This should also override any of the execution environment settings.
602
+ configOptions.executionEnvironments.forEach((env) => {
603
+ var _a, _b;
604
+ env.pythonVersion = (_a = commandLineOptions.pythonVersion) !== null && _a !== void 0 ? _a : env.pythonVersion;
605
+ env.pythonPlatform = (_b = commandLineOptions.pythonPlatform) !== null && _b !== void 0 ? _b : env.pythonPlatform;
606
+ });
607
+ }
608
+ if (commandLineOptions.pythonPath) {
609
+ this._console.info(`Setting pythonPath for service "${this._instanceName}": ` + `"${commandLineOptions.pythonPath}"`);
610
+ configOptions.pythonPath = this.fs.realCasePath(uri_1.Uri.file(commandLineOptions.pythonPath, this.serviceProvider, /* checkRelative */ true));
611
+ }
612
+ if (commandLineOptions.pythonEnvironmentName) {
613
+ this._console.info(`Setting environmentName for service "${this._instanceName}": ` +
614
+ `"${commandLineOptions.pythonEnvironmentName}"`);
615
+ configOptions.pythonEnvironmentName = commandLineOptions.pythonEnvironmentName;
616
+ }
617
+ commandLineOptions.includeFileSpecs.forEach((fileSpec) => {
618
+ configOptions.include.push((0, uriUtils_1.getFileSpec)(projectRoot, fileSpec));
619
+ });
620
+ commandLineOptions.excludeFileSpecs.forEach((fileSpec) => {
621
+ configOptions.exclude.push((0, uriUtils_1.getFileSpec)(projectRoot, fileSpec));
622
+ });
623
+ commandLineOptions.ignoreFileSpecs.forEach((fileSpec) => {
624
+ configOptions.ignore.push((0, uriUtils_1.getFileSpec)(projectRoot, fileSpec));
625
+ });
626
+ configOptions.applyDiagnosticOverrides(commandLineOptions.diagnosticSeverityOverrides);
627
+ // Override the analyzeUnannotatedFunctions setting based on the command-line setting.
628
+ if (commandLineOptions.analyzeUnannotatedFunctions !== undefined) {
629
+ configOptions.diagnosticRuleSet.analyzeUnannotatedFunctions =
630
+ commandLineOptions.analyzeUnannotatedFunctions;
631
+ }
632
+ // Override the include based on command-line settings.
633
+ if (commandLineOptions.includeFileSpecsOverride) {
634
+ configOptions.include = [];
635
+ commandLineOptions.includeFileSpecsOverride.forEach((include) => {
636
+ configOptions.include.push((0, uriUtils_1.getFileSpec)(uri_1.Uri.file(include, this.serviceProvider, /* checkRelative */ true), '.'));
637
+ });
638
+ }
639
+ const reportDuplicateSetting = (settingName, configValue) => {
640
+ const settingSource = fromLanguageServer ? 'the client settings' : 'a command-line option';
641
+ this._console.warn(`The ${settingName} has been specified in both the config file and ` +
642
+ `${settingSource}. The value in the config file (${configValue}) ` +
643
+ `will take precedence`);
644
+ };
645
+ // Apply the command-line options if the corresponding
646
+ // item wasn't already set in the config file. Report any
647
+ // duplicates.
648
+ if (commandLineOptions.venvPath) {
649
+ if (!configOptions.venvPath) {
650
+ configOptions.venvPath = projectRoot.resolvePaths(commandLineOptions.venvPath);
651
+ }
652
+ else {
653
+ reportDuplicateSetting('venvPath', configOptions.venvPath.toUserVisibleString());
654
+ }
655
+ }
656
+ if (commandLineOptions.typeshedPath) {
657
+ if (!configOptions.typeshedPath) {
658
+ configOptions.typeshedPath = projectRoot.resolvePaths(commandLineOptions.typeshedPath);
659
+ }
660
+ else {
661
+ reportDuplicateSetting('typeshedPath', configOptions.typeshedPath.toUserVisibleString());
662
+ }
663
+ }
664
+ // If useLibraryCodeForTypes was not specified in the config, allow the command line to override it.
665
+ if (configOptions.useLibraryCodeForTypes === undefined) {
666
+ configOptions.useLibraryCodeForTypes = commandLineOptions.useLibraryCodeForTypes;
667
+ }
668
+ else if (commandLineOptions.useLibraryCodeForTypes !== undefined) {
669
+ reportDuplicateSetting('useLibraryCodeForTypes', configOptions.useLibraryCodeForTypes);
670
+ }
671
+ if (commandLineOptions.stubPath) {
672
+ if (!configOptions.stubPath) {
673
+ configOptions.stubPath = this.fs.realCasePath(projectRoot.resolvePaths(commandLineOptions.stubPath));
674
+ }
675
+ else {
676
+ reportDuplicateSetting('stubPath', configOptions.stubPath.toUserVisibleString());
677
+ }
678
+ }
609
679
  }
610
680
  // Loads the config JSON object from the specified config file along with any
611
681
  // chained config files specified in the "extends" property (recursively).
@@ -1282,7 +1352,7 @@ class AnalyzerService {
1282
1352
  // cached based on the previous config options.
1283
1353
  const importResolver = this._importResolverFactory(this._serviceProvider, this._backgroundAnalysisProgram.configOptions, host);
1284
1354
  this._backgroundAnalysisProgram.setImportResolver(importResolver);
1285
- if (((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.fromVsCodeExtension) || this._configOptions.verboseOutput) {
1355
+ if (((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.fromLanguageServer) || this._configOptions.verboseOutput) {
1286
1356
  const logLevel = this._configOptions.verboseOutput ? console_1.LogLevel.Info : console_1.LogLevel.Log;
1287
1357
  for (const execEnv of this._configOptions.getExecutionEnvironments()) {
1288
1358
  (0, console_1.log)(this._console, logLevel, `Search paths for ${execEnv.root || '<default>'}`);
@@ -1306,7 +1376,7 @@ class AnalyzerService {
1306
1376
  }
1307
1377
  _scheduleReanalysis(requireTrackedFileUpdate) {
1308
1378
  var _a, _b;
1309
- if (this._disposed || !((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.enableAmbientAnalysis)) {
1379
+ if (this._disposed || !((_a = this._commandLineOptions) === null || _a === void 0 ? void 0 : _a.languageServerSettings.enableAmbientAnalysis)) {
1310
1380
  // already disposed
1311
1381
  return;
1312
1382
  }