@codingame/monaco-vscode-api 38.0.2 → 38.0.4

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 (311) hide show
  1. package/package.json +8 -8
  2. package/services.js +3 -3
  3. package/vscode/src/vs/base/browser/browser.js +5 -6
  4. package/vscode/src/vs/base/browser/domStylesheets.js +1 -1
  5. package/vscode/src/vs/base/browser/iframe.js +2 -2
  6. package/vscode/src/vs/base/browser/indexedDB.js +3 -9
  7. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +4 -4
  8. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +1 -1
  9. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +1 -1
  10. package/vscode/src/vs/base/browser/ui/list/listView.js +1 -1
  11. package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -4
  12. package/vscode/src/vs/base/browser/ui/radio/radio.js +1 -1
  13. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
  15. package/vscode/src/vs/base/browser/ui/splitview/splitview.js +1 -1
  16. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
  17. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +3 -5
  18. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +2 -2
  19. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +6 -6
  20. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +1 -1
  21. package/vscode/src/vs/base/common/arrays.js +3 -3
  22. package/vscode/src/vs/base/common/buffer.js +1 -1
  23. package/vscode/src/vs/base/common/errors.js +1 -1
  24. package/vscode/src/vs/base/common/event.js +3 -3
  25. package/vscode/src/vs/base/common/extpath.js +5 -5
  26. package/vscode/src/vs/base/common/filters.js +3 -3
  27. package/vscode/src/vs/base/common/fuzzyScorer.js +1 -1
  28. package/vscode/src/vs/base/common/glob.js +1 -1
  29. package/vscode/src/vs/base/common/history.js +1 -1
  30. package/vscode/src/vs/base/common/iconLabels.js +1 -1
  31. package/vscode/src/vs/base/common/json.js +3 -3
  32. package/vscode/src/vs/base/common/jsonEdit.js +1 -1
  33. package/vscode/src/vs/base/common/jsonFormatter.js +63 -68
  34. package/vscode/src/vs/base/common/keybindingParser.js +1 -1
  35. package/vscode/src/vs/base/common/labels.js +14 -14
  36. package/vscode/src/vs/base/common/markdownLinks.js +48 -32
  37. package/vscode/src/vs/base/common/network.js +1 -1
  38. package/vscode/src/vs/base/common/oauth.js +3 -3
  39. package/vscode/src/vs/base/common/path.js +5 -5
  40. package/vscode/src/vs/base/common/platform.js +10 -11
  41. package/vscode/src/vs/base/common/policy.js +0 -1
  42. package/vscode/src/vs/base/common/resources.js +2 -2
  43. package/vscode/src/vs/base/common/search.js +13 -19
  44. package/vscode/src/vs/base/common/sseParser.js +3 -3
  45. package/vscode/src/vs/base/common/stream.js +1 -1
  46. package/vscode/src/vs/base/common/strings.js +4 -4
  47. package/vscode/src/vs/base/common/uri.js +4 -4
  48. package/vscode/src/vs/base/common/validation.js +1 -1
  49. package/vscode/src/vs/editor/browser/config/migrateOptions.js +2 -2
  50. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +1 -1
  51. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +2 -2
  52. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.js +2 -2
  53. package/vscode/src/vs/editor/browser/editorExtensions.js +1 -1
  54. package/vscode/src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.js +1 -1
  55. package/vscode/src/vs/editor/browser/view.js +2 -2
  56. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
  57. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +1 -1
  58. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -1
  59. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +1 -1
  60. package/vscode/src/vs/editor/common/config/editorOptions.js +3 -3
  61. package/vscode/src/vs/editor/common/core/edits/textEdit.js +1 -1
  62. package/vscode/src/vs/editor/common/core/wordHelper.js +1 -1
  63. package/vscode/src/vs/editor/common/cursor/cursor.js +1 -1
  64. package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +1 -1
  65. package/vscode/src/vs/editor/common/cursorCommon.js +1 -1
  66. package/vscode/src/vs/editor/common/languageFeatureRegistry.js +1 -1
  67. package/vscode/src/vs/editor/common/languages/supports/inplaceReplaceSupport.js +1 -1
  68. package/vscode/src/vs/editor/common/languages/supports/richEditBrackets.js +2 -2
  69. package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -2
  70. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +1 -1
  71. package/vscode/src/vs/editor/common/model/textModel.js +2 -2
  72. package/vscode/src/vs/editor/common/model/textModelSearch.js +2 -2
  73. package/vscode/src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.js +1 -1
  74. package/vscode/src/vs/editor/common/services/languagesAssociations.js +47 -22
  75. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +3 -3
  76. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +20 -20
  77. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +1 -1
  78. package/vscode/src/vs/editor/contrib/comment/browser/blockCommentCommand.js +3 -3
  79. package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +4 -4
  80. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +1 -1
  81. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +2 -2
  82. package/vscode/src/vs/editor/contrib/format/browser/format.js +1 -1
  83. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +2 -2
  84. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +1 -1
  85. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +1 -1
  86. package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +1 -1
  87. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +2 -2
  88. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +1 -1
  89. package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +1 -1
  90. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +2 -2
  91. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +1 -1
  92. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +1 -1
  93. package/vscode/src/vs/nls.js +1 -1
  94. package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.js +3 -3
  95. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +10 -10
  96. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  97. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +1 -1
  98. package/vscode/src/vs/platform/agentHost/common/agentMergePrompt.js +1 -1
  99. package/vscode/src/vs/platform/agentHost/common/changesetUri.js +0 -1
  100. package/vscode/src/vs/platform/agentHost/common/codexModelSelection.js +17 -9
  101. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/toolPresentation.js +1 -1
  102. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +0 -1
  103. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.js +31 -19
  104. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +1 -1
  105. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +3 -3
  106. package/vscode/src/vs/platform/agentHost/common/state/sessionState.js +0 -1
  107. package/vscode/src/vs/platform/agentHost/common/webSocketOverDuplex.js +1 -1
  108. package/vscode/src/vs/platform/browserView/common/browserView.js +1 -2
  109. package/vscode/src/vs/platform/configuration/common/configuration.js +1 -1
  110. package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -15
  111. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +2 -2
  112. package/vscode/src/vs/platform/configuration/common/configurationVariables.js +17 -12
  113. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  114. package/vscode/src/vs/platform/contextkey/common/contextkey.js +1 -1
  115. package/vscode/src/vs/platform/dnd/browser/dnd.js +2 -2
  116. package/vscode/src/vs/platform/environment/common/environmentService.js +0 -1
  117. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -1
  118. package/vscode/src/vs/platform/files/common/watcher.js +1 -1
  119. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  120. package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
  121. package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +1 -1
  122. package/vscode/src/vs/platform/list/browser/listService.js +1 -1
  123. package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
  124. package/vscode/src/vs/platform/mcp/common/envVarResolution.js +5 -2
  125. package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
  126. package/vscode/src/vs/platform/policy/common/copilotManagedSettings.js +1 -1
  127. package/vscode/src/vs/platform/product/common/product.js +1 -1
  128. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +2 -2
  129. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +1 -1
  130. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +1 -1
  131. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  132. package/vscode/src/vs/platform/quickinput/common/quickAccess.js +1 -1
  133. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +1 -1
  134. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +6 -4
  135. package/vscode/src/vs/platform/remote/common/remoteHosts.js +2 -2
  136. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +2 -2
  137. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +2 -2
  138. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +2 -2
  139. package/vscode/src/vs/platform/theme/common/colorUtils.js +3 -3
  140. package/vscode/src/vs/platform/theme/common/iconRegistry.js +2 -2
  141. package/vscode/src/vs/platform/theme/common/sizeUtils.js +3 -3
  142. package/vscode/src/vs/platform/theme/common/themeService.js +1 -1
  143. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +4 -4
  144. package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -2
  145. package/vscode/src/vs/platform/url/common/trustedDomains.js +1 -1
  146. package/vscode/src/vs/platform/url/common/urlGlob.js +2 -2
  147. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +12 -12
  148. package/vscode/src/vs/sessions/browser/openInVSCodeUtils.js +0 -1
  149. package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileChangesView.js +0 -1
  150. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackAttachmentEntry.js +0 -1
  151. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -1
  152. package/vscode/src/vs/sessions/contrib/changes/browser/changesView.js +1 -1
  153. package/vscode/src/vs/sessions/contrib/changes/browser/changesViewService.js +0 -1
  154. package/vscode/src/vs/sessions/contrib/changes/browser/createPullRequestWidget.js +2 -2
  155. package/vscode/src/vs/sessions/contrib/chat/browser/agentHostInputCompletions.js +1 -1
  156. package/vscode/src/vs/sessions/contrib/chat/browser/sessionComparisonResult.js +5 -5
  157. package/vscode/src/vs/sessions/contrib/chat/browser/sessionReferenceCompletions.js +2 -2
  158. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAutomationStore.js +1 -1
  159. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/devTunnelsModule.js +47 -47
  160. package/vscode/src/vs/sessions/contrib/sessions/browser/views/sessionsListNotice.js +0 -1
  161. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +1 -1
  162. package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +1 -1
  163. package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +1 -1
  164. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
  165. package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -1
  166. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  167. package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +1 -1
  168. package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
  169. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +1 -1
  170. package/vscode/src/vs/workbench/api/common/extHostTesting.js +1 -1
  171. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
  172. package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +1 -1
  173. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +1 -1
  174. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +1 -1
  175. package/vscode/src/vs/workbench/browser/chatPills.js +2 -2
  176. package/vscode/src/vs/workbench/browser/composite.js +1 -1
  177. package/vscode/src/vs/workbench/browser/labels.js +1 -1
  178. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -2
  179. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +1 -1
  180. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
  181. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +4 -4
  182. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +5 -5
  183. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +4 -6
  184. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +3 -3
  185. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
  186. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +1 -1
  187. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +2 -2
  188. package/vscode/src/vs/workbench/browser/parts/notifications/notificationAccessibleView.js +2 -2
  189. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +2 -2
  190. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -3
  191. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +1 -1
  192. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
  193. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +17 -21
  194. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +4 -4
  195. package/vscode/src/vs/workbench/common/notifications.js +2 -2
  196. package/vscode/src/vs/workbench/common/views.js +1 -1
  197. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +0 -1
  198. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostByokLmHandler.js +1 -1
  199. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatReferenceAttachment.js +1 -1
  200. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +1 -1
  201. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/stateToProgressAdapter.js +2 -2
  202. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDiscoveryPage.js +1 -1
  203. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.js +1 -1
  204. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +0 -1
  205. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationTree.js +0 -1
  206. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCount.js +1 -1
  207. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatContextPickService.js +1 -1
  208. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +2 -2
  209. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +2 -2
  210. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +1 -1
  211. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +2 -2
  212. package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +1 -1
  213. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatClipboard.js +4 -1
  214. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentMergeContentPart.js +1 -1
  215. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +1 -1
  216. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +2 -2
  217. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSystemNotificationContentPart.js +2 -2
  219. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +8 -8
  220. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidget.js +2 -2
  221. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWorkingLogoDraw.js +1 -1
  222. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHost.js +1 -1
  223. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerResponsiveLayout.js +1 -1
  224. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatPasteProviders.js +1 -1
  225. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerPresentation.js +1 -1
  226. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +1 -1
  227. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +3 -3
  228. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +2 -2
  229. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +2 -2
  230. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +1 -1
  231. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +1 -1
  232. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +2 -2
  233. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +2 -2
  235. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +1 -1
  236. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1 -1
  237. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +2 -2
  238. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +2 -2
  239. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -3
  240. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  241. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  242. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +2 -2
  243. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +17 -31
  244. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +1 -1
  245. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +10 -10
  246. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  247. package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +1 -1
  248. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +1 -1
  249. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +1 -1
  250. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +1 -1
  251. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +2 -2
  252. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +3 -3
  253. package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +1 -1
  254. package/vscode/src/vs/workbench/contrib/markdown/common/markedKatexExtension.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerConfigurationForm.js +1 -1
  256. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +0 -1
  257. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +1 -1
  258. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1 -1
  259. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +5 -5
  260. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +1 -1
  261. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +8 -8
  262. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +3 -3
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +2 -2
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +1 -1
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +4 -4
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +1 -1
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +6 -8
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +1 -1
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +1 -1
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +1 -1
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +2 -2
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +16 -18
  275. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -1
  276. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +1 -1
  277. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +4 -4
  278. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  279. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +1 -1
  280. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +1 -1
  281. package/vscode/src/vs/workbench/contrib/search/common/search.js +2 -2
  282. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  283. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +1 -1
  284. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +5 -5
  285. package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.js +1 -1
  286. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +5 -5
  287. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +1 -1
  288. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +2 -2
  289. package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
  290. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +1 -1
  291. package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +1 -1
  292. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +1 -1
  293. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +2 -2
  294. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +1 -1
  295. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +1 -1
  296. package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +6 -3
  297. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  298. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +2 -2
  299. package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +1 -1
  300. package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
  301. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +1 -1
  302. package/vscode/src/vs/workbench/services/path/common/pathService.js +2 -2
  303. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +3 -11
  304. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +5 -5
  305. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +1 -1
  306. package/vscode/src/vs/workbench/services/search/common/ignoreFile.js +32 -30
  307. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  308. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
  309. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +2 -2
  310. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +2 -2
  311. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -1
@@ -63,10 +63,10 @@ function escapeRegExpCharacters(value) {
63
63
  }
64
64
  function count(value, substr) {
65
65
  let result = 0;
66
- let index = value.indexOf(substr);
66
+ let index = ( value.indexOf(substr));
67
67
  while (index !== -1) {
68
68
  result++;
69
- index = value.indexOf(substr, index + substr.length);
69
+ index = ( value.indexOf(substr, index + substr.length));
70
70
  }
71
71
  return result;
72
72
  }
@@ -567,7 +567,7 @@ function fuzzyContains(target, query) {
567
567
  let index = 0;
568
568
  let lastIndexOf = -1;
569
569
  while (index < queryLen) {
570
- const indexOf = targetLower.indexOf(queryLower[index], lastIndexOf + 1);
570
+ const indexOf = ( targetLower.indexOf(queryLower[index], lastIndexOf + 1));
571
571
  if (indexOf < 0) {
572
572
  return false;
573
573
  }
@@ -594,7 +594,7 @@ function getNLines(str, n = 1) {
594
594
  }
595
595
  let idx = -1;
596
596
  do {
597
- idx = str.indexOf("\n", idx + 1);
597
+ idx = ( str.indexOf("\n", idx + 1));
598
598
  n--;
599
599
  } while (n > 0 && idx >= 0);
600
600
  if (idx === -1) {
@@ -149,7 +149,7 @@ class URI {
149
149
  path = path.replace(/\\/g, _slash);
150
150
  }
151
151
  if (path[0] === _slash && path[1] === _slash) {
152
- const idx = path.indexOf(_slash, 2);
152
+ const idx = ( path.indexOf(_slash, 2));
153
153
  if (idx === -1) {
154
154
  authority = path.substring(2);
155
155
  path = _slash;
@@ -321,8 +321,8 @@ function encodeURIComponentFast(uriComponent, isPath, isAuthority) {
321
321
  return res !== undefined ? res : uriComponent;
322
322
  }
323
323
  function encodeURIComponentMinimal(path) {
324
- let pos = path.indexOf("?");
325
- const hashPos = path.indexOf("#");
324
+ let pos = ( path.indexOf("?"));
325
+ const hashPos = ( path.indexOf("#"));
326
326
  if (pos === -1 || (hashPos !== -1 && hashPos < pos)) {
327
327
  pos = hashPos;
328
328
  }
@@ -383,7 +383,7 @@ function _asFormatted(uri, skipEncoding) {
383
383
  res += _slash;
384
384
  }
385
385
  if (authority) {
386
- let idx = authority.indexOf("@");
386
+ let idx = ( authority.indexOf("@"));
387
387
  if (idx !== -1) {
388
388
  const userinfo = authority.substr(0, idx);
389
389
  authority = authority.substr(idx + 1);
@@ -251,7 +251,7 @@ class EnumValidator extends ValidatorBase {
251
251
  this.values = values;
252
252
  }
253
253
  validate(content) {
254
- if (this.values.indexOf(content) === -1) {
254
+ if (( this.values.indexOf(content)) === -1) {
255
255
  return {
256
256
  content: undefined,
257
257
  error: {
@@ -18,7 +18,7 @@ class EditorSettingMigration {
18
18
  if (typeof source === "undefined" || source === null) {
19
19
  return undefined;
20
20
  }
21
- const firstDotIndex = key.indexOf(".");
21
+ const firstDotIndex = ( key.indexOf("."));
22
22
  if (firstDotIndex >= 0) {
23
23
  const firstSegment = key.substring(0, firstDotIndex);
24
24
  return this._read(source[firstSegment], key.substring(firstDotIndex + 1));
@@ -26,7 +26,7 @@ class EditorSettingMigration {
26
26
  return source[key];
27
27
  }
28
28
  static _write(target, key, value) {
29
- const firstDotIndex = key.indexOf(".");
29
+ const firstDotIndex = ( key.indexOf("."));
30
30
  if (firstDotIndex >= 0) {
31
31
  const firstSegment = key.substring(0, firstDotIndex);
32
32
  target[firstSegment] = target[firstSegment] || {};
@@ -104,7 +104,7 @@ function newlinecount(text) {
104
104
  let result = 0;
105
105
  let startIndex = -1;
106
106
  do {
107
- startIndex = text.indexOf("\n", startIndex + 1);
107
+ startIndex = ( text.indexOf("\n", startIndex + 1));
108
108
  if (startIndex === -1) {
109
109
  break;
110
110
  }
@@ -287,9 +287,9 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
287
287
  distanceToModelLineEnd
288
288
  } = (() => {
289
289
  const textAfterSelection = ta.value.substring(Math.max(ta.selectionStart, ta.selectionEnd));
290
- const lineFeedOffset2 = textAfterSelection.indexOf("\n");
290
+ const lineFeedOffset2 = ( textAfterSelection.indexOf("\n"));
291
291
  const lineTextAfterSelection = lineFeedOffset2 === -1 ? textAfterSelection : textAfterSelection.substring(0, lineFeedOffset2);
292
- const tabOffset2 = lineTextAfterSelection.indexOf("\t");
292
+ const tabOffset2 = ( lineTextAfterSelection.indexOf("\t"));
293
293
  const desiredVisibleAfterCharCount = (tabOffset2 === -1 ? lineTextAfterSelection.length : lineTextAfterSelection.length - tabOffset2 - 1);
294
294
  const endModelPosition = modelSelection.getEndPosition();
295
295
  const visibleAfterCharCount = Math.min(
@@ -66,7 +66,7 @@ class TextAreaState {
66
66
  return this._finishDeduceEditorPosition(this.selection?.getEndPosition() ?? null, str, 1);
67
67
  }
68
68
  const str1 = this.value.substring(this.selectionStart, offset);
69
- if (str1.indexOf(String.fromCharCode(8230)) === -1) {
69
+ if (( str1.indexOf(String.fromCharCode(8230))) === -1) {
70
70
  return this._finishDeduceEditorPosition(this.selection?.getStartPosition() ?? null, str1, 1);
71
71
  }
72
72
  const str2 = this.value.substring(offset, this.selectionEnd);
@@ -75,7 +75,7 @@ class TextAreaState {
75
75
  _finishDeduceEditorPosition(anchor, deltaText, signum) {
76
76
  let lineFeedCnt = 0;
77
77
  let lastLineFeedIndex = -1;
78
- while ((lastLineFeedIndex = deltaText.indexOf("\n", lastLineFeedIndex + 1)) !== -1) {
78
+ while ((lastLineFeedIndex = ( deltaText.indexOf("\n", lastLineFeedIndex + 1))) !== -1) {
79
79
  lineFeedCnt++;
80
80
  }
81
81
  return [anchor, signum * deltaText.length, lineFeedCnt];
@@ -357,7 +357,7 @@ var EditorExtensionsRegistry;
357
357
  }
358
358
  EditorExtensionsRegistry.getEditorContributions = getEditorContributions;
359
359
  function getSomeEditorContributions(ids) {
360
- return EditorContributionRegistry.INSTANCE.getEditorContributions().filter(c => ids.indexOf(c.id) >= 0);
360
+ return EditorContributionRegistry.INSTANCE.getEditorContributions().filter(c => ( ids.indexOf(c.id)) >= 0);
361
361
  }
362
362
  EditorExtensionsRegistry.getSomeEditorContributions = getSomeEditorContributions;
363
363
  function getDiffEditorContributions() {
@@ -47,7 +47,7 @@ class DecorationCssRuleExtractor extends Disposable {
47
47
  } else if (rule instanceof CSSStyleRule) {
48
48
  for (const className of classNames) {
49
49
  const searchTerm = `.${className}`;
50
- const index = rule.selectorText.indexOf(searchTerm);
50
+ const index = ( rule.selectorText.indexOf(searchTerm));
51
51
  if (index !== -1) {
52
52
  const endOfResult = index + searchTerm.length;
53
53
  if (rule.selectorText.length === endOfResult || rule.selectorText.substring(endOfResult, endOfResult + 1).match(/[ :.]/)) {
@@ -223,7 +223,7 @@ let View = class View extends ViewEventHandler {
223
223
  this._editContextEnabled = editContextEnabled;
224
224
  this._accessibilitySupport = accessibilitySupport;
225
225
  const isEditContextFocused = this._editContext.isFocused();
226
- const indexOfEditContext = this._viewParts.indexOf(this._editContext);
226
+ const indexOfEditContext = ( this._viewParts.indexOf(this._editContext));
227
227
  this._editContext.dispose();
228
228
  this._editContext = this._instantiateEditContext();
229
229
  this._connectEditContextClipboardEvents();
@@ -679,7 +679,7 @@ class EditorRenderingCoordinator {
679
679
  this._scheduleRender(rendering.window);
680
680
  return {
681
681
  dispose: () => {
682
- const renderingIndex = this._coordinatedRenderings.indexOf(rendering);
682
+ const renderingIndex = ( this._coordinatedRenderings.indexOf(rendering));
683
683
  if (renderingIndex === -1) {
684
684
  return;
685
685
  }
@@ -193,7 +193,7 @@ class GlyphMarginWidgets extends ViewPart {
193
193
  const zIndex = d.options.zIndex ?? 0;
194
194
  for (let lineNumber = startLineNumber; lineNumber <= endLineNumber; lineNumber++) {
195
195
  const modelPosition = this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(( new Position(lineNumber, 0)));
196
- const laneIndex = this._context.viewModel.glyphLanes.getLanesAtLine(modelPosition.lineNumber).indexOf(lane);
196
+ const laneIndex = ( this._context.viewModel.glyphLanes.getLanesAtLine(modelPosition.lineNumber).indexOf(lane));
197
197
  requests.push(( new DecorationBasedGlyphRenderRequest(lineNumber, laneIndex, zIndex, glyphMarginClassName)));
198
198
  }
199
199
  }
@@ -212,7 +212,7 @@ class GlyphMarginWidgets extends ViewPart {
212
212
  }
213
213
  const widgetLineNumber = Math.max(startLineNumber, visibleStartLineNumber);
214
214
  const modelPosition = this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(( new Position(widgetLineNumber, 0)));
215
- const laneIndex = this._context.viewModel.glyphLanes.getLanesAtLine(modelPosition.lineNumber).indexOf(widget.preference.lane);
215
+ const laneIndex = ( this._context.viewModel.glyphLanes.getLanesAtLine(modelPosition.lineNumber).indexOf(widget.preference.lane));
216
216
  requests.push(( new WidgetBasedGlyphRenderRequest(widgetLineNumber, laneIndex, widget.preference.zIndex, widget)));
217
217
  }
218
218
  }
@@ -205,7 +205,7 @@ let ViewModel = class ViewModel extends Disposable {
205
205
  if (!group) {
206
206
  return;
207
207
  }
208
- const idx = group.lines.indexOf(line);
208
+ const idx = ( group.lines.indexOf(line));
209
209
  if (idx === -1) {
210
210
  return;
211
211
  }
@@ -405,7 +405,7 @@ class BaseRefCounted extends RefCounted {
405
405
  this._disposable.dispose();
406
406
  }
407
407
  if (debugOwner) {
408
- const idx = this._owners.indexOf(debugOwner);
408
+ const idx = ( this._owners.indexOf(debugOwner));
409
409
  if (idx !== -1) {
410
410
  this._owners.splice(idx, 1);
411
411
  }
@@ -71,7 +71,7 @@ let MultiDiffEditorViewModel = class MultiDiffEditorViewModel extends Disposable
71
71
  );
72
72
  this.activeDiffItem = derivedObservableWithWritableCache(
73
73
  this,
74
- (reader, lastValue) => this.focusedDiffItem.read(reader) ?? (lastValue && this.items.read(reader).indexOf(lastValue) !== -1 ? lastValue : undefined)
74
+ (reader, lastValue) => this.focusedDiffItem.read(reader) ?? (lastValue && ( this.items.read(reader).indexOf(lastValue)) !== -1 ? lastValue : undefined)
75
75
  );
76
76
  this._documents = observableFromValueWithChangeEvent(this.model, this.model.documents);
77
77
  const allItems = mapObservableArrayCached(this, this._documentsArr, (d, store) => this._createItem(d, store)).recomputeInitiallyAndOnChange(this._store);
@@ -221,7 +221,7 @@ function stringSet(value, defaultValue, allowedValues, renamedValues) {
221
221
  if (renamedValues && value in renamedValues) {
222
222
  return renamedValues[value];
223
223
  }
224
- if (allowedValues.indexOf(value) === -1) {
224
+ if (( allowedValues.indexOf(value)) === -1) {
225
225
  return defaultValue;
226
226
  }
227
227
  return value;
@@ -263,7 +263,7 @@ class EditorEnumOption extends BaseEditorOption {
263
263
  if (typeof input !== "string") {
264
264
  return this.defaultValue;
265
265
  }
266
- if (this._allowedValues.indexOf(input) === -1) {
266
+ if (( this._allowedValues.indexOf(input)) === -1) {
267
267
  return this.defaultValue;
268
268
  }
269
269
  return this._convert(input);
@@ -2840,7 +2840,7 @@ class GuideOptions extends BaseEditorOption {
2840
2840
  }
2841
2841
  }
2842
2842
  function primitiveSet(value, defaultValue, allowedValues) {
2843
- const idx = allowedValues.indexOf(value);
2843
+ const idx = ( allowedValues.indexOf(value));
2844
2844
  if (idx === -1) {
2845
2845
  return defaultValue;
2846
2846
  }
@@ -262,7 +262,7 @@ class TextEdit {
262
262
  let line = 0;
263
263
  let offset = 0;
264
264
  while (line < lenLine) {
265
- const idx = text.indexOf("\n", offset);
265
+ const idx = ( text.indexOf("\n", offset));
266
266
  if (idx === -1) {
267
267
  throw ( new BugIndicatingError("Text length mismatch"));
268
268
  }
@@ -7,7 +7,7 @@ const USUAL_WORD_SEPARATORS = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";
7
7
  function createWordRegExp(allowInWords = "") {
8
8
  let source = "(-?\\d*\\.\\d\\w*)|([^";
9
9
  for (const sep of USUAL_WORD_SEPARATORS) {
10
- if (allowInWords.indexOf(sep) >= 0) {
10
+ if (( allowInWords.indexOf(sep)) >= 0) {
11
11
  continue;
12
12
  }
13
13
  source += "\\" + sep;
@@ -408,7 +408,7 @@ class CursorsController extends Disposable {
408
408
  const indices = [];
409
409
  for (let i = 0, len = edits.length; i < len; i++) {
410
410
  const edit = edits[i];
411
- if (!edit.text || edit.text.indexOf("\n") >= 0) {
411
+ if (!edit.text || ( edit.text.indexOf("\n")) >= 0) {
412
412
  return null;
413
413
  }
414
414
  const m = edit.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);
@@ -716,7 +716,7 @@ class PasteOperation {
716
716
  if (pasteOnNewLine && !selection.isEmpty()) {
717
717
  pasteOnNewLine = false;
718
718
  }
719
- if (pasteOnNewLine && text.indexOf("\n") !== text.length - 1) {
719
+ if (pasteOnNewLine && ( text.indexOf("\n")) !== text.length - 1) {
720
720
  pasteOnNewLine = false;
721
721
  }
722
722
  if (pasteOnNewLine) {
@@ -113,7 +113,7 @@ class CursorConfiguration {
113
113
  }
114
114
  _getLanguageDefinedShouldAutoClose(languageId, forQuotes) {
115
115
  const autoCloseBeforeSet = this.languageConfigurationService.getLanguageConfiguration(languageId).getAutoCloseBeforeSet(forQuotes);
116
- return c => autoCloseBeforeSet.indexOf(c) !== -1;
116
+ return c => ( autoCloseBeforeSet.indexOf(c)) !== -1;
117
117
  }
118
118
  visibleColumnFromColumn(model, position) {
119
119
  return CursorColumns.visibleColumnFromColumn(model.getLineContent(position.lineNumber), position.column, this.tabSize);
@@ -47,7 +47,7 @@ class LanguageFeatureRegistry {
47
47
  this._onDidChange.fire(this._entries.length);
48
48
  return toDisposable(() => {
49
49
  if (entry) {
50
- const idx = this._entries.indexOf(entry);
50
+ const idx = ( this._entries.indexOf(entry));
51
51
  if (idx >= 0) {
52
52
  this._entries.splice(idx, 1);
53
53
  this._lastCandidate = undefined;
@@ -69,7 +69,7 @@ class BasicInplaceReplace {
69
69
  return result;
70
70
  }
71
71
  valueSetReplace(valueSet, value, up) {
72
- let idx = valueSet.indexOf(value);
72
+ let idx = ( valueSet.indexOf(value));
73
73
  if (idx >= 0) {
74
74
  idx += up ? 1 : -1;
75
75
  if (idx < 0) {
@@ -119,12 +119,12 @@ function collectSuperstrings(str, brackets, currentIndex, dest) {
119
119
  }
120
120
  const bracket = brackets[i];
121
121
  for (const open of bracket.open) {
122
- if (open.indexOf(str) >= 0) {
122
+ if (( open.indexOf(str)) >= 0) {
123
123
  dest.push(open);
124
124
  }
125
125
  }
126
126
  for (const close of bracket.close) {
127
- if (close.indexOf(str) >= 0) {
127
+ if (( close.indexOf(str)) >= 0) {
128
128
  dest.push(close);
129
129
  }
130
130
  }
@@ -241,7 +241,7 @@ class ThemeTrieElement {
241
241
  if (token === "") {
242
242
  return this._mainRule;
243
243
  }
244
- const dotIndex = token.indexOf(".");
244
+ const dotIndex = ( token.indexOf("."));
245
245
  let head;
246
246
  let tail;
247
247
  if (dotIndex === -1) {
@@ -262,7 +262,7 @@ class ThemeTrieElement {
262
262
  this._mainRule.acceptOverwrite(fontStyle, foreground, background);
263
263
  return;
264
264
  }
265
- const dotIndex = token.indexOf(".");
265
+ const dotIndex = ( token.indexOf("."));
266
266
  let head;
267
267
  let tail;
268
268
  if (dotIndex === -1) {
@@ -709,7 +709,7 @@ class PieceTreeBase {
709
709
  const searchStringLen = searchString.length;
710
710
  const textLength = text.length;
711
711
  let lastMatchIndex = -searchStringLen;
712
- while ((lastMatchIndex = text.indexOf(searchString, lastMatchIndex + searchStringLen)) !== -1) {
712
+ while ((lastMatchIndex = ( text.indexOf(searchString, lastMatchIndex + searchStringLen))) !== -1) {
713
713
  if (!wordSeparators || isValidMatch(wordSeparators, text, textLength, lastMatchIndex, searchStringLen)) {
714
714
  result[resultLen++] = ( new FindMatch(( new Range(
715
715
  lineNumber,
@@ -955,7 +955,7 @@ let TextModel = class TextModel extends Disposable {
955
955
  return curr;
956
956
  }));
957
957
  let matchMapper;
958
- if (!isRegex && searchString.indexOf("\n") < 0) {
958
+ if (!isRegex && ( searchString.indexOf("\n")) < 0) {
959
959
  const searchParams = ( new SearchParams(searchString, isRegex, matchCase, wordSeparators));
960
960
  const searchData = searchParams.parseSearchRequest();
961
961
  if (!searchData) {
@@ -977,7 +977,7 @@ let TextModel = class TextModel extends Disposable {
977
977
  ) {
978
978
  this._assertNotDisposed();
979
979
  const searchStart = this.validatePosition(rawSearchStart);
980
- if (!isRegex && searchString.indexOf("\n") < 0) {
980
+ if (!isRegex && ( searchString.indexOf("\n")) < 0) {
981
981
  const searchParams = ( new SearchParams(searchString, isRegex, matchCase, wordSeparators));
982
982
  const searchData = searchParams.parseSearchRequest();
983
983
  if (!searchData) {
@@ -22,7 +22,7 @@ class SearchParams {
22
22
  if (this.isRegex) {
23
23
  multiline = isMultilineRegexSource(this.searchString);
24
24
  } else {
25
- multiline = (this.searchString.indexOf("\n") >= 0);
25
+ multiline = (( this.searchString.indexOf("\n")) >= 0);
26
26
  }
27
27
  let regex = null;
28
28
  try {
@@ -247,7 +247,7 @@ class TextModelSearch {
247
247
  const searchStringLen = searchString.length;
248
248
  const textLength = text.length;
249
249
  let lastMatchIndex = -searchStringLen;
250
- while ((lastMatchIndex = text.indexOf(searchString, lastMatchIndex + searchStringLen)) !== -1) {
250
+ while ((lastMatchIndex = ( text.indexOf(searchString, lastMatchIndex + searchStringLen))) !== -1) {
251
251
  if (!wordSeparators || isValidMatch(wordSeparators, text, textLength, lastMatchIndex, searchStringLen)) {
252
252
  result[resultLen++] = ( new FindMatch(( new Range(
253
253
  lineNumber,
@@ -28,7 +28,7 @@ class TokenizerSyntaxTokenBackend extends AbstractSyntaxTokenBackend {
28
28
  this._attachedViewStates = this._register(( new DisposableMap()));
29
29
  this._register(TokenizationRegistry.onDidChange(e => {
30
30
  const languageId = this.getLanguageId();
31
- if (e.changedLanguages.indexOf(languageId) === -1) {
31
+ if (( e.changedLanguages.indexOf(languageId)) === -1) {
32
32
  return;
33
33
  }
34
34
  this.todo_resetTokenization();
@@ -21,8 +21,7 @@ function _registerLanguageAssociation(association, userConfigured, warnOnOverwri
21
21
  registeredAssociations.push(associationItem);
22
22
  if (!associationItem.userConfigured) {
23
23
  nonUserRegisteredAssociations.push(associationItem);
24
- }
25
- else {
24
+ } else {
26
25
  userRegisteredAssociations.push(associationItem);
27
26
  }
28
27
  if (warnOnOverwrite && !associationItem.userConfigured) {
@@ -31,16 +30,24 @@ function _registerLanguageAssociation(association, userConfigured, warnOnOverwri
31
30
  return;
32
31
  }
33
32
  if (associationItem.extension && a.extension === associationItem.extension) {
34
- console.warn(`Overwriting extension <<${associationItem.extension}>> to now point to mime <<${associationItem.mime}>>`);
33
+ console.warn(
34
+ `Overwriting extension <<${associationItem.extension}>> to now point to mime <<${associationItem.mime}>>`
35
+ );
35
36
  }
36
37
  if (associationItem.filename && a.filename === associationItem.filename) {
37
- console.warn(`Overwriting filename <<${associationItem.filename}>> to now point to mime <<${associationItem.mime}>>`);
38
+ console.warn(
39
+ `Overwriting filename <<${associationItem.filename}>> to now point to mime <<${associationItem.mime}>>`
40
+ );
38
41
  }
39
42
  if (associationItem.filepattern && a.filepattern === associationItem.filepattern) {
40
- console.warn(`Overwriting filepattern <<${associationItem.filepattern}>> to now point to mime <<${associationItem.mime}>>`);
43
+ console.warn(
44
+ `Overwriting filepattern <<${associationItem.filepattern}>> to now point to mime <<${associationItem.mime}>>`
45
+ );
41
46
  }
42
47
  if (associationItem.firstline && a.firstline === associationItem.firstline) {
43
- console.warn(`Overwriting firstline <<${associationItem.firstline}>> to now point to mime <<${associationItem.mime}>>`);
48
+ console.warn(
49
+ `Overwriting firstline <<${associationItem.firstline}>> to now point to mime <<${associationItem.mime}>>`
50
+ );
44
51
  }
45
52
  });
46
53
  }
@@ -54,8 +61,10 @@ function toLanguageAssociationItem(association, userConfigured) {
54
61
  filepattern: association.filepattern,
55
62
  firstline: association.firstline,
56
63
  userConfigured: userConfigured,
57
- filepatternParsed: association.filepattern ? parse(association.filepattern, { ignoreCase: true }) : undefined,
58
- filepatternOnPath: association.filepattern ? association.filepattern.indexOf(posix.sep) >= 0 : false
64
+ filepatternParsed: association.filepattern ? parse(association.filepattern, {
65
+ ignoreCase: true
66
+ }) : undefined,
67
+ filepatternOnPath: association.filepattern ? ( association.filepattern.indexOf(posix.sep)) >= 0 : false
59
68
  };
60
69
  }
61
70
  function clearPlatformLanguageAssociations() {
@@ -76,41 +85,57 @@ function getAssociations(resource, firstLine) {
76
85
  let path;
77
86
  if (resource) {
78
87
  switch (resource.scheme) {
79
- case Schemas.file:
80
- path = resource.fsPath;
81
- break;
82
- case Schemas.data: {
88
+ case Schemas.file:
89
+ path = resource.fsPath;
90
+ break;
91
+ case Schemas.data:
92
+ {
83
93
  const metadata = DataUri.parseMetaData(resource);
84
94
  path = metadata.get(DataUri.META_DATA_LABEL);
85
95
  break;
86
96
  }
87
- case Schemas.vscodeNotebookCell:
88
- path = undefined;
89
- break;
90
- default:
91
- path = resource.path;
97
+ case Schemas.vscodeNotebookCell:
98
+ path = undefined;
99
+ break;
100
+ default:
101
+ path = resource.path;
92
102
  }
93
103
  }
94
104
  if (!path) {
95
- return [{ id: 'unknown', mime: Mimes.unknown }];
105
+ return [{
106
+ id: "unknown",
107
+ mime: Mimes.unknown
108
+ }];
96
109
  }
97
110
  path = path.toLowerCase();
98
111
  const filename = basename(path);
99
112
  const configuredLanguage = getAssociationByPath(path, filename, userRegisteredAssociations);
100
113
  if (configuredLanguage) {
101
- return [configuredLanguage, { id: PLAINTEXT_LANGUAGE_ID, mime: Mimes.text }];
114
+ return [configuredLanguage, {
115
+ id: PLAINTEXT_LANGUAGE_ID,
116
+ mime: Mimes.text
117
+ }];
102
118
  }
103
119
  const registeredLanguage = getAssociationByPath(path, filename, nonUserRegisteredAssociations);
104
120
  if (registeredLanguage) {
105
- return [registeredLanguage, { id: PLAINTEXT_LANGUAGE_ID, mime: Mimes.text }];
121
+ return [registeredLanguage, {
122
+ id: PLAINTEXT_LANGUAGE_ID,
123
+ mime: Mimes.text
124
+ }];
106
125
  }
107
126
  if (firstLine) {
108
127
  const firstlineLanguage = getAssociationByFirstline(firstLine);
109
128
  if (firstlineLanguage) {
110
- return [firstlineLanguage, { id: PLAINTEXT_LANGUAGE_ID, mime: Mimes.text }];
129
+ return [firstlineLanguage, {
130
+ id: PLAINTEXT_LANGUAGE_ID,
131
+ mime: Mimes.text
132
+ }];
111
133
  }
112
134
  }
113
- return [{ id: 'unknown', mime: Mimes.unknown }];
135
+ return [{
136
+ id: "unknown",
137
+ mime: Mimes.unknown
138
+ }];
114
139
  }
115
140
  function getAssociationByPath(path, filename, associations) {
116
141
  let filenameMatch = undefined;
@@ -234,10 +234,10 @@ class MarkerDecorations extends Disposable {
234
234
  break;
235
235
  }
236
236
  if (marker.tags) {
237
- if (marker.tags.indexOf(MarkerTag.Unnecessary) !== -1) {
237
+ if (( marker.tags.indexOf(MarkerTag.Unnecessary)) !== -1) {
238
238
  inlineClassName = ClassName.EditorUnnecessaryInlineDecoration;
239
239
  }
240
- if (marker.tags.indexOf(MarkerTag.Deprecated) !== -1) {
240
+ if (( marker.tags.indexOf(MarkerTag.Deprecated)) !== -1) {
241
241
  inlineClassName = ClassName.EditorDeprecatedInlineDecoration;
242
242
  }
243
243
  }
@@ -257,7 +257,7 @@ class MarkerDecorations extends Disposable {
257
257
  }
258
258
  _hasMarkerTag(marker, tag) {
259
259
  if (marker.tags) {
260
- return marker.tags.indexOf(tag) >= 0;
260
+ return ( marker.tags.indexOf(tag)) >= 0;
261
261
  }
262
262
  return false;
263
263
  }
@@ -24,27 +24,27 @@ let CodeActionKeybindingResolver = class CodeActionKeybindingResolver {
24
24
  this.keybindingService = keybindingService;
25
25
  }
26
26
  getResolver() {
27
- const allCodeActionBindings = ( new Lazy(() => this.keybindingService.getKeybindings().filter(
28
- item => CodeActionKeybindingResolver_1.codeActionCommands.indexOf(item.command) >= 0
29
- ).filter(item => item.resolvedKeybinding).map(item => {
30
- let commandArgs = item.commandArgs;
31
- if (item.command === organizeImportsCommandId) {
32
- commandArgs = {
33
- kind: CodeActionKind.SourceOrganizeImports.value
27
+ const allCodeActionBindings = ( new Lazy(
28
+ () => this.keybindingService.getKeybindings().filter(item => ( CodeActionKeybindingResolver_1.codeActionCommands.indexOf(item.command)) >= 0).filter(item => item.resolvedKeybinding).map(item => {
29
+ let commandArgs = item.commandArgs;
30
+ if (item.command === organizeImportsCommandId) {
31
+ commandArgs = {
32
+ kind: CodeActionKind.SourceOrganizeImports.value
33
+ };
34
+ } else if (item.command === fixAllCommandId) {
35
+ commandArgs = {
36
+ kind: CodeActionKind.SourceFixAll.value
37
+ };
38
+ }
39
+ return {
40
+ resolvedKeybinding: item.resolvedKeybinding,
41
+ ...CodeActionCommandArgs.fromUser(commandArgs, {
42
+ kind: HierarchicalKind.None,
43
+ apply: CodeActionAutoApply.Never
44
+ })
34
45
  };
35
- } else if (item.command === fixAllCommandId) {
36
- commandArgs = {
37
- kind: CodeActionKind.SourceFixAll.value
38
- };
39
- }
40
- return {
41
- resolvedKeybinding: item.resolvedKeybinding,
42
- ...CodeActionCommandArgs.fromUser(commandArgs, {
43
- kind: HierarchicalKind.None,
44
- apply: CodeActionAutoApply.Never
45
- })
46
- };
47
- })));
46
+ })
47
+ ));
48
48
  return action => {
49
49
  if (action.kind) {
50
50
  const binding = this.bestKeybindingForCodeAction(action, allCodeActionBindings.value);
@@ -194,7 +194,7 @@ let CodeLensContribution = class CodeLensContribution {
194
194
  const helper = ( new CodeLensHelper());
195
195
  toDispose.forEach(l => {
196
196
  l.dispose(helper, viewZonesAccessor);
197
- this._lenses.splice(this._lenses.indexOf(l), 1);
197
+ this._lenses.splice(( this._lenses.indexOf(l)), 1);
198
198
  });
199
199
  helper.commit(decorationsAccessor);
200
200
  });