monaco-editor-core 0.54.0-dev-20250910 → 0.54.0-dev-20250912

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 (278) hide show
  1. package/esm/nls.keys.json +1 -1
  2. package/esm/nls.messages.de.js +2 -2
  3. package/esm/nls.messages.es.js +2 -2
  4. package/esm/nls.messages.fr.js +2 -2
  5. package/esm/nls.messages.it.js +2 -2
  6. package/esm/nls.messages.ja.js +2 -2
  7. package/esm/nls.messages.js +1 -1
  8. package/esm/nls.messages.json +1 -1
  9. package/esm/nls.messages.ko.js +2 -2
  10. package/esm/nls.messages.ru.js +2 -2
  11. package/esm/nls.messages.zh-cn.js +2 -2
  12. package/esm/nls.messages.zh-tw.js +2 -2
  13. package/esm/nls.metadata.json +8 -2
  14. package/esm/vs/base/browser/domSanitize.js +32 -21
  15. package/esm/vs/base/browser/domSanitize.js.map +1 -1
  16. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  17. package/esm/vs/base/browser/ui/menu/menu.js +2 -0
  18. package/esm/vs/base/browser/ui/menu/menu.js.map +1 -1
  19. package/esm/vs/base/common/codiconsLibrary.js +2 -0
  20. package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
  21. package/esm/vs/base/common/observableInternal/index.js +3 -0
  22. package/esm/vs/base/common/observableInternal/index.js.map +1 -1
  23. package/esm/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +71 -0
  24. package/esm/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js.map +1 -0
  25. package/esm/vs/base/common/observableInternal/observables/baseObservable.js +4 -0
  26. package/esm/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -1
  27. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
  28. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -1
  29. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
  30. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
  31. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
  32. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -1
  33. package/esm/vs/editor/browser/config/editorConfiguration.js +1 -1
  34. package/esm/vs/editor/browser/controller/dragScrolling.js +4 -4
  35. package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +3 -3
  36. package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +3 -3
  37. package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +6 -6
  38. package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -9
  39. package/esm/vs/editor/browser/controller/mouseHandler.js +6 -6
  40. package/esm/vs/editor/browser/controller/mouseTarget.js +3 -3
  41. package/esm/vs/editor/browser/coreCommands.js +2 -2
  42. package/esm/vs/editor/browser/gpu/rectangleRenderer.js +1 -1
  43. package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  44. package/esm/vs/editor/browser/observableCodeEditor.js +1 -1
  45. package/esm/vs/editor/browser/view/viewController.js +2 -2
  46. package/esm/vs/editor/browser/view/viewLayer.js +1 -1
  47. package/esm/vs/editor/browser/view/viewOverlays.js +4 -4
  48. package/esm/vs/editor/browser/view.js +5 -5
  49. package/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
  50. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
  51. package/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -6
  52. package/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +8 -8
  53. package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
  54. package/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -2
  55. package/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +2 -2
  56. package/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
  57. package/esm/vs/editor/browser/viewParts/margin/margin.js +2 -2
  58. package/esm/vs/editor/browser/viewParts/minimap/minimap.js +5 -5
  59. package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
  60. package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +4 -4
  61. package/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
  62. package/esm/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
  63. package/esm/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -1
  64. package/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
  65. package/esm/vs/editor/browser/viewParts/selections/selections.js +2 -2
  66. package/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
  67. package/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js +6 -6
  68. package/esm/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +4 -4
  69. package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +11 -11
  70. package/esm/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
  71. package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
  72. package/esm/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -4
  73. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +12 -12
  74. package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -1
  75. package/esm/vs/editor/browser/widget/diffEditor/commands.js.map +1 -1
  76. package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -4
  77. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +3 -3
  78. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +2 -2
  79. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +2 -2
  80. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +25 -0
  81. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js.map +1 -1
  82. package/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
  83. package/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
  84. package/esm/vs/editor/common/config/editorOptions.js +155 -154
  85. package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
  86. package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
  87. package/esm/vs/editor/common/core/ranges/lineRange.js +3 -0
  88. package/esm/vs/editor/common/core/ranges/lineRange.js.map +1 -1
  89. package/esm/vs/editor/common/cursorCommon.js +19 -19
  90. package/esm/vs/editor/common/editorContextKeys.js +46 -46
  91. package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
  92. package/esm/vs/editor/common/languages.js +56 -56
  93. package/esm/vs/editor/common/model/editStack.js +1 -1
  94. package/esm/vs/editor/common/standalone/standaloneEnums.js +86 -85
  95. package/esm/vs/editor/common/standalone/standaloneEnums.js.map +1 -1
  96. package/esm/vs/editor/common/standaloneStrings.js +10 -10
  97. package/esm/vs/editor/common/viewLayout/viewLayout.js +15 -15
  98. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  99. package/esm/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +1 -1
  100. package/esm/vs/editor/common/viewModel/viewModelImpl.js +14 -14
  101. package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  102. package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  103. package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  104. package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  105. package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
  106. package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  107. package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  108. package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  109. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  110. package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  111. package/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js +1 -1
  112. package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  113. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  114. package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
  115. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  116. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  117. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +1 -1
  118. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +2 -2
  119. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  120. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +1 -1
  121. package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
  122. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +12 -12
  123. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  124. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  125. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +12 -12
  126. package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  127. package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  128. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  129. package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  130. package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
  131. package/esm/vs/editor/contrib/find/browser/findModel.js +6 -6
  132. package/esm/vs/editor/contrib/find/browser/findWidget.js +32 -32
  133. package/esm/vs/editor/contrib/folding/browser/folding.js +23 -23
  134. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  135. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
  136. package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  137. package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
  138. package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  139. package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  140. package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  141. package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +21 -11
  142. package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js.map +1 -1
  143. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +2 -2
  144. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -4
  145. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  146. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  147. package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  148. package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  149. package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  150. package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  151. package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  152. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +10 -10
  153. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -6
  154. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  155. package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  156. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +5 -5
  157. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  158. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -2
  159. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
  160. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  161. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +2 -2
  162. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
  163. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  164. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +1 -1
  165. package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +5 -5
  166. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
  167. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +4 -1
  168. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js.map +1 -1
  169. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  170. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +2 -0
  171. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js.map +1 -1
  172. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +1 -0
  173. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js.map +1 -1
  174. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
  175. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js.map +1 -1
  176. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  177. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  178. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -32
  179. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +4 -4
  180. package/esm/vs/editor/contrib/links/browser/links.js +11 -11
  181. package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
  182. package/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
  183. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  184. package/esm/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
  185. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +36 -36
  186. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  187. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
  188. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  189. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  190. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  191. package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +1 -1
  192. package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js.map +1 -1
  193. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  194. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  195. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -3
  196. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  197. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  198. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +5 -5
  199. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  200. package/esm/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
  201. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  202. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  203. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +17 -24
  204. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js.map +1 -1
  205. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
  206. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +12 -3
  207. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js.map +1 -1
  208. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -5
  209. package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  210. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +14 -14
  211. package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
  212. package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
  213. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +23 -23
  214. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +5 -5
  215. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +5 -5
  216. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +3 -3
  217. package/esm/vs/editor/contrib/suggest/browser/wordDistance.js +1 -1
  218. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  219. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  220. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  221. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  222. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +27 -27
  223. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +9 -9
  224. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  225. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +7 -7
  226. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +4 -4
  227. package/esm/vs/editor/editor.api.d.ts +93 -85
  228. package/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
  229. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  230. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  231. package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
  232. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  233. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  234. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  235. package/esm/vs/platform/actions/common/menuService.js +2 -2
  236. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  237. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  238. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  239. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  240. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  241. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  242. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  243. package/esm/vs/platform/list/browser/listService.js +27 -27
  244. package/esm/vs/platform/markers/common/markerService.js +2 -2
  245. package/esm/vs/platform/markers/common/markers.js +6 -6
  246. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
  247. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  248. package/esm/vs/platform/quickinput/browser/quickInput.js +21 -13
  249. package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
  250. package/esm/vs/platform/quickinput/browser/quickInputActions.js +42 -8
  251. package/esm/vs/platform/quickinput/browser/quickInputActions.js.map +1 -1
  252. package/esm/vs/platform/quickinput/browser/quickInputController.js +10 -64
  253. package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
  254. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  255. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  256. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  257. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js +12 -0
  258. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js.map +1 -1
  259. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +11 -5
  260. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js.map +1 -1
  261. package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
  262. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  263. package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
  264. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  265. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  266. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  267. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  268. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  269. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  270. package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
  271. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  272. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  273. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  274. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  275. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  276. package/monaco.d.ts +93 -85
  277. package/package.json +6 -2
  278. package/version.txt +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.ts","vs/editor/contrib/placeholderText/browser/placeholderTextContribution.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,CAAC,EAAE,MAAM,iCAAiC,CAAC;AACpD,OAAO,EAAE,gBAAgB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MAAM,CAAC,EAAE;gBACjC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,kCAAyB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBAChG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,gCAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;gBACnG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,kCAAyB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YACxG,CAAC,CAAC,CAAC,CAAC;YACJ,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;gBACpD,mBAAmB,EAAE,KAAK;gBAC1B,mBAAmB,EAAE,eAAe,CAAC,CAAC,CAAC;gBACvC,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC;gBAC/B,OAAO,EAAE,OAAO,CAAC,IAAI;aACrB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;;AAGF,SAAS,WAAW,CAAC,KAAiB,EAAE,EAAgC;IACvE,OAAO,0BAA0B,CAAU,KAAK,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QACvE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YAAC,OAAO,IAAI,CAAC;QAAC,CAAC;QACxC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC","file":"placeholderTextContribution.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { h } from '../../../../base/browser/dom.js';\nimport { structuralEquals } from '../../../../base/common/equals.js';\nimport { Disposable } from '../../../../base/common/lifecycle.js';\nimport { autorun, constObservable, DebugOwner, derivedObservableWithCache, derivedOpts, derived, IObservable, IReader } from '../../../../base/common/observable.js';\nimport { ICodeEditor } from '../../../browser/editorBrowser.js';\nimport { observableCodeEditor } from '../../../browser/observableCodeEditor.js';\nimport { EditorOption } from '../../../common/config/editorOptions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\n\n/**\n * Use the editor option to set the placeholder text.\n*/\nexport class PlaceholderTextContribution extends Disposable implements IEditorContribution {\n\n\tpublic static readonly ID = 'editor.contrib.placeholderText';\n\tprivate readonly _editorObs;\n\n\tprivate readonly _placeholderText;\n\n\tprivate readonly _state;\n\n\tprivate readonly _shouldViewBeAlive;\n\n\tprivate readonly _view;\n\n\tconstructor(\n\t\tprivate readonly _editor: ICodeEditor,\n\t) {\n\t\tsuper();\n\t\tthis._editorObs = observableCodeEditor(this._editor);\n\t\tthis._placeholderText = this._editorObs.getOption(EditorOption.placeholder);\n\t\tthis._state = derivedOpts<{ placeholder: string } | undefined>({ owner: this, equalsFn: structuralEquals }, reader => {\n\t\t\tconst p = this._placeholderText.read(reader);\n\t\t\tif (!p) { return undefined; }\n\t\t\tif (!this._editorObs.valueIsEmpty.read(reader)) { return undefined; }\n\t\t\treturn { placeholder: p };\n\t\t});\n\t\tthis._shouldViewBeAlive = isOrWasTrue(this, reader => this._state.read(reader)?.placeholder !== undefined);\n\t\tthis._view = derived((reader) => {\n\t\t\tif (!this._shouldViewBeAlive.read(reader)) { return; }\n\n\t\t\tconst element = h('div.editorPlaceholder');\n\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst data = this._state.read(reader);\n\t\t\t\tconst shouldBeVisibile = data?.placeholder !== undefined;\n\t\t\t\telement.root.style.display = shouldBeVisibile ? 'block' : 'none';\n\t\t\t\telement.root.innerText = data?.placeholder ?? '';\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst info = this._editorObs.layoutInfo.read(reader);\n\t\t\t\telement.root.style.left = `${info.contentLeft}px`;\n\t\t\t\telement.root.style.width = (info.contentWidth - info.verticalScrollbarWidth) + 'px';\n\t\t\t\telement.root.style.top = `${this._editor.getTopForLineNumber(0)}px`;\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\telement.root.style.fontFamily = this._editorObs.getOption(EditorOption.fontFamily).read(reader);\n\t\t\t\telement.root.style.fontSize = this._editorObs.getOption(EditorOption.fontSize).read(reader) + 'px';\n\t\t\t\telement.root.style.lineHeight = this._editorObs.getOption(EditorOption.lineHeight).read(reader) + 'px';\n\t\t\t}));\n\t\t\treader.store.add(this._editorObs.createOverlayWidget({\n\t\t\t\tallowEditorOverflow: false,\n\t\t\t\tminContentWidthInPx: constObservable(0),\n\t\t\t\tposition: constObservable(null),\n\t\t\t\tdomNode: element.root,\n\t\t\t}));\n\t\t});\n\t\tthis._view.recomputeInitiallyAndOnChange(this._store);\n\t}\n}\n\nfunction isOrWasTrue(owner: DebugOwner, fn: (reader: IReader) => boolean): IObservable<boolean> {\n\treturn derivedObservableWithCache<boolean>(owner, (reader, lastValue) => {\n\t\tif (lastValue === true) { return true; }\n\t\treturn fn(reader);\n\t});\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { h } from '../../../../base/browser/dom.js';\nimport { structuralEquals } from '../../../../base/common/equals.js';\nimport { Disposable } from '../../../../base/common/lifecycle.js';\nimport { autorun, constObservable, DebugOwner, derivedObservableWithCache, derivedOpts, derived, IObservable, IReader } from '../../../../base/common/observable.js';\nimport { ICodeEditor } from '../../../browser/editorBrowser.js';\nimport { observableCodeEditor } from '../../../browser/observableCodeEditor.js';\nimport { EditorOption } from '../../../common/config/editorOptions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\n\n/**\n * Use the editor option to set the placeholder text.\n*/\nexport class PlaceholderTextContribution extends Disposable implements IEditorContribution {\n\n\tpublic static readonly ID = 'editor.contrib.placeholderText';\n\tprivate readonly _editorObs;\n\n\tprivate readonly _placeholderText;\n\n\tprivate readonly _state;\n\n\tprivate readonly _shouldViewBeAlive;\n\n\tprivate readonly _view;\n\n\tconstructor(\n\t\tprivate readonly _editor: ICodeEditor,\n\t) {\n\t\tsuper();\n\t\tthis._editorObs = observableCodeEditor(this._editor);\n\t\tthis._placeholderText = this._editorObs.getOption(EditorOption.placeholder);\n\t\tthis._state = derivedOpts<{ placeholder: string } | undefined>({ owner: this, equalsFn: structuralEquals }, reader => {\n\t\t\tconst p = this._placeholderText.read(reader);\n\t\t\tif (!p) { return undefined; }\n\t\t\tif (!this._editorObs.valueIsEmpty.read(reader)) { return undefined; }\n\t\t\treturn { placeholder: p };\n\t\t});\n\t\tthis._shouldViewBeAlive = isOrWasTrue(this, reader => this._state.read(reader)?.placeholder !== undefined);\n\t\tthis._view = derived((reader) => {\n\t\t\tif (!this._shouldViewBeAlive.read(reader)) { return; }\n\n\t\t\tconst element = h('div.editorPlaceholder');\n\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst data = this._state.read(reader);\n\t\t\t\tconst shouldBeVisibile = data?.placeholder !== undefined;\n\t\t\t\telement.root.style.display = shouldBeVisibile ? 'block' : 'none';\n\t\t\t\telement.root.innerText = data?.placeholder ?? '';\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst info = this._editorObs.layoutInfo.read(reader);\n\t\t\t\telement.root.style.left = `${info.contentLeft}px`;\n\t\t\t\telement.root.style.width = (info.contentWidth - info.verticalScrollbarWidth) + 'px';\n\t\t\t\telement.root.style.top = `${this._editor.getTopForLineNumber(0)}px`;\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\telement.root.style.fontFamily = this._editorObs.getOption(EditorOption.fontFamily).read(reader);\n\t\t\t\telement.root.style.fontSize = this._editorObs.getOption(EditorOption.fontSize).read(reader) + 'px';\n\t\t\t\telement.root.style.lineHeight = this._editorObs.getOption(EditorOption.lineHeight).read(reader) + 'px';\n\t\t\t}));\n\t\t\treader.store.add(this._editorObs.createOverlayWidget({\n\t\t\t\tallowEditorOverflow: false,\n\t\t\t\tminContentWidthInPx: constObservable(0),\n\t\t\t\tposition: constObservable(null),\n\t\t\t\tdomNode: element.root,\n\t\t\t}));\n\t\t});\n\t\tthis._view.recomputeInitiallyAndOnChange(this._store);\n\t}\n}\n\nfunction isOrWasTrue(owner: DebugOwner, fn: (reader: IReader) => boolean): IObservable<boolean> {\n\treturn derivedObservableWithCache<boolean>(owner, (reader, lastValue) => {\n\t\tif (lastValue === true) { return true; }\n\t\treturn fn(reader);\n\t});\n}\n"]}
1
+ {"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.ts","vs/editor/contrib/placeholderText/browser/placeholderTextContribution.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,CAAC,EAAE,MAAM,iCAAiC,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAc,0BAA0B,EAAE,WAAW,EAAE,OAAO,EAAwB,MAAM,uCAAuC,CAAC;AAErK,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAIhF;;EAEE;AACF,MAAM,OAAO,2BAA4B,SAAQ,UAAU;aAEnC,OAAE,GAAG,gCAAgC,CAAC;IAW7D,YACkB,OAAoB;QAErC,KAAK,EAAE,CAAC;QAFS,YAAO,GAAP,OAAO,CAAa;QAGrC,IA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AAM,CAAC,GAAG,IAAI,CAAC;YACxG,CAAC,CAAC,CAAC,CAAC;YACJ,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;gBACpD,mBAAmB,EAAE,KAAK;gBAC1B,mBAAmB,EAAE,eAAe,CAAC,CAAC,CAAC;gBACvC,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC;gBAC/B,OAAO,EAAE,OAAO,CAAC,IAAI;aACrB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;;AAGF,SAAS,WAAW,CAAC,KAAiB,EAAE,EAAgC;IACvE,OAAO,0BAA0B,CAAU,KAAK,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QACvE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YAAC,OAAO,IAAI,CAAC;QAAC,CAAC;QACxC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC","file":"placeholderTextContribution.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { h } from '../../../../base/browser/dom.js';\nimport { structuralEquals } from '../../../../base/common/equals.js';\nimport { Disposable } from '../../../../base/common/lifecycle.js';\nimport { autorun, constObservable, DebugOwner, derivedObservableWithCache, derivedOpts, derived, IObservable, IReader } from '../../../../base/common/observable.js';\nimport { ICodeEditor } from '../../../browser/editorBrowser.js';\nimport { observableCodeEditor } from '../../../browser/observableCodeEditor.js';\nimport { EditorOption } from '../../../common/config/editorOptions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\n\n/**\n * Use the editor option to set the placeholder text.\n*/\nexport class PlaceholderTextContribution extends Disposable implements IEditorContribution {\n\n\tpublic static readonly ID = 'editor.contrib.placeholderText';\n\tprivate readonly _editorObs;\n\n\tprivate readonly _placeholderText;\n\n\tprivate readonly _state;\n\n\tprivate readonly _shouldViewBeAlive;\n\n\tprivate readonly _view;\n\n\tconstructor(\n\t\tprivate readonly _editor: ICodeEditor,\n\t) {\n\t\tsuper();\n\t\tthis._editorObs = observableCodeEditor(this._editor);\n\t\tthis._placeholderText = this._editorObs.getOption(EditorOption.placeholder);\n\t\tthis._state = derivedOpts<{ placeholder: string } | undefined>({ owner: this, equalsFn: structuralEquals }, reader => {\n\t\t\tconst p = this._placeholderText.read(reader);\n\t\t\tif (!p) { return undefined; }\n\t\t\tif (!this._editorObs.valueIsEmpty.read(reader)) { return undefined; }\n\t\t\treturn { placeholder: p };\n\t\t});\n\t\tthis._shouldViewBeAlive = isOrWasTrue(this, reader => this._state.read(reader)?.placeholder !== undefined);\n\t\tthis._view = derived((reader) => {\n\t\t\tif (!this._shouldViewBeAlive.read(reader)) { return; }\n\n\t\t\tconst element = h('div.editorPlaceholder');\n\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst data = this._state.read(reader);\n\t\t\t\tconst shouldBeVisibile = data?.placeholder !== undefined;\n\t\t\t\telement.root.style.display = shouldBeVisibile ? 'block' : 'none';\n\t\t\t\telement.root.innerText = data?.placeholder ?? '';\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst info = this._editorObs.layoutInfo.read(reader);\n\t\t\t\telement.root.style.left = `${info.contentLeft}px`;\n\t\t\t\telement.root.style.width = (info.contentWidth - info.verticalScrollbarWidth) + 'px';\n\t\t\t\telement.root.style.top = `${this._editor.getTopForLineNumber(0)}px`;\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\telement.root.style.fontFamily = this._editorObs.getOption(EditorOption.fontFamily).read(reader);\n\t\t\t\telement.root.style.fontSize = this._editorObs.getOption(EditorOption.fontSize).read(reader) + 'px';\n\t\t\t\telement.root.style.lineHeight = this._editorObs.getOption(EditorOption.lineHeight).read(reader) + 'px';\n\t\t\t}));\n\t\t\treader.store.add(this._editorObs.createOverlayWidget({\n\t\t\t\tallowEditorOverflow: false,\n\t\t\t\tminContentWidthInPx: constObservable(0),\n\t\t\t\tposition: constObservable(null),\n\t\t\t\tdomNode: element.root,\n\t\t\t}));\n\t\t});\n\t\tthis._view.recomputeInitiallyAndOnChange(this._store);\n\t}\n}\n\nfunction isOrWasTrue(owner: DebugOwner, fn: (reader: IReader) => boolean): IObservable<boolean> {\n\treturn derivedObservableWithCache<boolean>(owner, (reader, lastValue) => {\n\t\tif (lastValue === true) { return true; }\n\t\treturn fn(reader);\n\t});\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { h } from '../../../../base/browser/dom.js';\nimport { structuralEquals } from '../../../../base/common/equals.js';\nimport { Disposable } from '../../../../base/common/lifecycle.js';\nimport { autorun, constObservable, DebugOwner, derivedObservableWithCache, derivedOpts, derived, IObservable, IReader } from '../../../../base/common/observable.js';\nimport { ICodeEditor } from '../../../browser/editorBrowser.js';\nimport { observableCodeEditor } from '../../../browser/observableCodeEditor.js';\nimport { EditorOption } from '../../../common/config/editorOptions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\n\n/**\n * Use the editor option to set the placeholder text.\n*/\nexport class PlaceholderTextContribution extends Disposable implements IEditorContribution {\n\n\tpublic static readonly ID = 'editor.contrib.placeholderText';\n\tprivate readonly _editorObs;\n\n\tprivate readonly _placeholderText;\n\n\tprivate readonly _state;\n\n\tprivate readonly _shouldViewBeAlive;\n\n\tprivate readonly _view;\n\n\tconstructor(\n\t\tprivate readonly _editor: ICodeEditor,\n\t) {\n\t\tsuper();\n\t\tthis._editorObs = observableCodeEditor(this._editor);\n\t\tthis._placeholderText = this._editorObs.getOption(EditorOption.placeholder);\n\t\tthis._state = derivedOpts<{ placeholder: string } | undefined>({ owner: this, equalsFn: structuralEquals }, reader => {\n\t\t\tconst p = this._placeholderText.read(reader);\n\t\t\tif (!p) { return undefined; }\n\t\t\tif (!this._editorObs.valueIsEmpty.read(reader)) { return undefined; }\n\t\t\treturn { placeholder: p };\n\t\t});\n\t\tthis._shouldViewBeAlive = isOrWasTrue(this, reader => this._state.read(reader)?.placeholder !== undefined);\n\t\tthis._view = derived((reader) => {\n\t\t\tif (!this._shouldViewBeAlive.read(reader)) { return; }\n\n\t\t\tconst element = h('div.editorPlaceholder');\n\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst data = this._state.read(reader);\n\t\t\t\tconst shouldBeVisibile = data?.placeholder !== undefined;\n\t\t\t\telement.root.style.display = shouldBeVisibile ? 'block' : 'none';\n\t\t\t\telement.root.innerText = data?.placeholder ?? '';\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\tconst info = this._editorObs.layoutInfo.read(reader);\n\t\t\t\telement.root.style.left = `${info.contentLeft}px`;\n\t\t\t\telement.root.style.width = (info.contentWidth - info.verticalScrollbarWidth) + 'px';\n\t\t\t\telement.root.style.top = `${this._editor.getTopForLineNumber(0)}px`;\n\t\t\t}));\n\t\t\treader.store.add(autorun(reader => {\n\t\t\t\telement.root.style.fontFamily = this._editorObs.getOption(EditorOption.fontFamily).read(reader);\n\t\t\t\telement.root.style.fontSize = this._editorObs.getOption(EditorOption.fontSize).read(reader) + 'px';\n\t\t\t\telement.root.style.lineHeight = this._editorObs.getOption(EditorOption.lineHeight).read(reader) + 'px';\n\t\t\t}));\n\t\t\treader.store.add(this._editorObs.createOverlayWidget({\n\t\t\t\tallowEditorOverflow: false,\n\t\t\t\tminContentWidthInPx: constObservable(0),\n\t\t\t\tposition: constObservable(null),\n\t\t\t\tdomNode: element.root,\n\t\t\t}));\n\t\t});\n\t\tthis._view.recomputeInitiallyAndOnChange(this._store);\n\t}\n}\n\nfunction isOrWasTrue(owner: DebugOwner, fn: (reader: IReader) => boolean): IObservable<boolean> {\n\treturn derivedObservableWithCache<boolean>(owner, (reader, lastValue) => {\n\t\tif (lastValue === true) { return true; }\n\t\treturn fn(reader);\n\t});\n}\n"]}
@@ -12,7 +12,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
12
12
  super({ canAcceptInBackground: true });
13
13
  }
14
14
  provideWithoutTextEditor(picker) {
15
- const label = localize(1322, "Open a text editor first to go to a line.");
15
+ const label = localize(1323, "Open a text editor first to go to a line.");
16
16
  picker.items = [{ label }];
17
17
  picker.ariaLabel = label;
18
18
  return Disposable.None;
@@ -91,17 +91,17 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
91
91
  // Location valid: indicate this as picker label
92
92
  if (this.isValidLineNumber(editor, lineNumber)) {
93
93
  if (this.isValidColumn(editor, lineNumber, column)) {
94
- return localize(1323, "Go to line {0} and character {1}.", lineNumber, column);
94
+ return localize(1324, "Go to line {0} and character {1}.", lineNumber, column);
95
95
  }
96
- return localize(1324, "Go to line {0}.", lineNumber);
96
+ return localize(1325, "Go to line {0}.", lineNumber);
97
97
  }
98
98
  // Location invalid: show generic label
99
99
  const position = editor.getPosition() || { lineNumber: 1, column: 1 };
100
100
  const lineCount = this.lineCount(editor);
101
101
  if (lineCount > 1) {
102
- return localize(1325, "Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.", position.lineNumber, position.column, lineCount);
102
+ return localize(1326, "Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.", position.lineNumber, position.column, lineCount);
103
103
  }
104
- return localize(1326, "Current Line: {0}, Character: {1}. Type a line number to navigate to.", position.lineNumber, position.column);
104
+ return localize(1327, "Current Line: {0}, Character: {1}. Type a line number to navigate to.", position.lineNumber, position.column);
105
105
  }
106
106
  isValidLineNumber(editor, lineNumber) {
107
107
  if (!lineNumber || typeof lineNumber !== 'number') {
@@ -39,7 +39,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
39
39
  this.options.canAcceptInBackground = true;
40
40
  }
41
41
  provideWithoutTextEditor(picker) {
42
- this.provideLabelPick(picker, localize(1327, "To go to a symbol, first open a text editor with symbol information."));
42
+ this.provideLabelPick(picker, localize(1328, "To go to a symbol, first open a text editor with symbol information."));
43
43
  return Disposable.None;
44
44
  }
45
45
  provideWithTextEditor(context, picker, token, runOptions) {
@@ -60,7 +60,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
60
60
  doProvideWithoutEditorSymbols(context, model, picker, token) {
61
61
  const disposables = new DisposableStore();
62
62
  // Generic pick for not having any symbol information
63
- this.provideLabelPick(picker, localize(1328, "The active text editor does not provide symbol information."));
63
+ this.provideLabelPick(picker, localize(1329, "The active text editor does not provide symbol information."));
64
64
  // Wait for changes to the registry and see if eventually
65
65
  // we do get symbols. This can happen if the picker is opened
66
66
  // very early after the model has loaded but before the
@@ -146,10 +146,10 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
146
146
  }
147
147
  else {
148
148
  if (query.original.length > 0) {
149
- this.provideLabelPick(picker, localize(1329, "No matching editor symbols"));
149
+ this.provideLabelPick(picker, localize(1330, "No matching editor symbols"));
150
150
  }
151
151
  else {
152
- this.provideLabelPick(picker, localize(1330, "No editor symbols"));
152
+ this.provideLabelPick(picker, localize(1331, "No editor symbols"));
153
153
  }
154
154
  }
155
155
  }
@@ -196,7 +196,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
196
196
  if (openSideBySideDirection) {
197
197
  buttons = [{
198
198
  iconClass: openSideBySideDirection === 'right' ? ThemeIcon.asClassName(Codicon.splitHorizontal) : ThemeIcon.asClassName(Codicon.splitVertical),
199
- tooltip: openSideBySideDirection === 'right' ? localize(1331, "Open to the Side") : localize(1332, "Open to the Bottom")
199
+ tooltip: openSideBySideDirection === 'right' ? localize(1332, "Open to the Side") : localize(1333, "Open to the Bottom")
200
200
  }];
201
201
  }
202
202
  const filteredSymbolPicks = [];
@@ -312,7 +312,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
312
312
  }
313
313
  else if (sortedFilteredSymbolPicks.length > 0) {
314
314
  symbolPicks = [
315
- { label: localize(1333, "symbols ({0})", filteredSymbolPicks.length), type: 'separator' },
315
+ { label: localize(1334, "symbols ({0})", filteredSymbolPicks.length), type: 'separator' },
316
316
  ...sortedFilteredSymbolPicks
317
317
  ];
318
318
  }
@@ -362,33 +362,33 @@ AbstractGotoSymbolQuickAccessProvider = AbstractGotoSymbolQuickAccessProvider_1
362
362
  ], AbstractGotoSymbolQuickAccessProvider);
363
363
  export { AbstractGotoSymbolQuickAccessProvider };
364
364
  // #region NLS Helpers
365
- const FALLBACK_NLS_SYMBOL_KIND = localize(1334, "properties ({0})");
365
+ const FALLBACK_NLS_SYMBOL_KIND = localize(1335, "properties ({0})");
366
366
  const NLS_SYMBOL_KIND_CACHE = {
367
- [5 /* SymbolKind.Method */]: localize(1335, "methods ({0})"),
368
- [11 /* SymbolKind.Function */]: localize(1336, "functions ({0})"),
369
- [8 /* SymbolKind.Constructor */]: localize(1337, "constructors ({0})"),
370
- [12 /* SymbolKind.Variable */]: localize(1338, "variables ({0})"),
371
- [4 /* SymbolKind.Class */]: localize(1339, "classes ({0})"),
372
- [22 /* SymbolKind.Struct */]: localize(1340, "structs ({0})"),
373
- [23 /* SymbolKind.Event */]: localize(1341, "events ({0})"),
374
- [24 /* SymbolKind.Operator */]: localize(1342, "operators ({0})"),
375
- [10 /* SymbolKind.Interface */]: localize(1343, "interfaces ({0})"),
376
- [2 /* SymbolKind.Namespace */]: localize(1344, "namespaces ({0})"),
377
- [3 /* SymbolKind.Package */]: localize(1345, "packages ({0})"),
378
- [25 /* SymbolKind.TypeParameter */]: localize(1346, "type parameters ({0})"),
379
- [1 /* SymbolKind.Module */]: localize(1347, "modules ({0})"),
380
- [6 /* SymbolKind.Property */]: localize(1348, "properties ({0})"),
381
- [9 /* SymbolKind.Enum */]: localize(1349, "enumerations ({0})"),
382
- [21 /* SymbolKind.EnumMember */]: localize(1350, "enumeration members ({0})"),
383
- [14 /* SymbolKind.String */]: localize(1351, "strings ({0})"),
384
- [0 /* SymbolKind.File */]: localize(1352, "files ({0})"),
385
- [17 /* SymbolKind.Array */]: localize(1353, "arrays ({0})"),
386
- [15 /* SymbolKind.Number */]: localize(1354, "numbers ({0})"),
387
- [16 /* SymbolKind.Boolean */]: localize(1355, "booleans ({0})"),
388
- [18 /* SymbolKind.Object */]: localize(1356, "objects ({0})"),
389
- [19 /* SymbolKind.Key */]: localize(1357, "keys ({0})"),
390
- [7 /* SymbolKind.Field */]: localize(1358, "fields ({0})"),
391
- [13 /* SymbolKind.Constant */]: localize(1359, "constants ({0})")
367
+ [5 /* SymbolKind.Method */]: localize(1336, "methods ({0})"),
368
+ [11 /* SymbolKind.Function */]: localize(1337, "functions ({0})"),
369
+ [8 /* SymbolKind.Constructor */]: localize(1338, "constructors ({0})"),
370
+ [12 /* SymbolKind.Variable */]: localize(1339, "variables ({0})"),
371
+ [4 /* SymbolKind.Class */]: localize(1340, "classes ({0})"),
372
+ [22 /* SymbolKind.Struct */]: localize(1341, "structs ({0})"),
373
+ [23 /* SymbolKind.Event */]: localize(1342, "events ({0})"),
374
+ [24 /* SymbolKind.Operator */]: localize(1343, "operators ({0})"),
375
+ [10 /* SymbolKind.Interface */]: localize(1344, "interfaces ({0})"),
376
+ [2 /* SymbolKind.Namespace */]: localize(1345, "namespaces ({0})"),
377
+ [3 /* SymbolKind.Package */]: localize(1346, "packages ({0})"),
378
+ [25 /* SymbolKind.TypeParameter */]: localize(1347, "type parameters ({0})"),
379
+ [1 /* SymbolKind.Module */]: localize(1348, "modules ({0})"),
380
+ [6 /* SymbolKind.Property */]: localize(1349, "properties ({0})"),
381
+ [9 /* SymbolKind.Enum */]: localize(1350, "enumerations ({0})"),
382
+ [21 /* SymbolKind.EnumMember */]: localize(1351, "enumeration members ({0})"),
383
+ [14 /* SymbolKind.String */]: localize(1352, "strings ({0})"),
384
+ [0 /* SymbolKind.File */]: localize(1353, "files ({0})"),
385
+ [17 /* SymbolKind.Array */]: localize(1354, "arrays ({0})"),
386
+ [15 /* SymbolKind.Number */]: localize(1355, "numbers ({0})"),
387
+ [16 /* SymbolKind.Boolean */]: localize(1356, "booleans ({0})"),
388
+ [18 /* SymbolKind.Object */]: localize(1357, "objects ({0})"),
389
+ [19 /* SymbolKind.Key */]: localize(1358, "keys ({0})"),
390
+ [7 /* SymbolKind.Field */]: localize(1359, "fields ({0})"),
391
+ [13 /* SymbolKind.Constant */]: localize(1360, "constants ({0})")
392
392
  };
393
393
  //#endregion
394
394
  //# sourceMappingURL=gotoSymbolQuickAccess.js.map
@@ -17,13 +17,13 @@ export class ReadOnlyMessageController extends Disposable {
17
17
  _onDidAttemptReadOnlyEdit() {
18
18
  const messageController = MessageController.get(this.editor);
19
19
  if (messageController && this.editor.hasModel()) {
20
- let message = this.editor.getOptions().get(104 /* EditorOption.readOnlyMessage */);
20
+ let message = this.editor.getOptions().get(105 /* EditorOption.readOnlyMessage */);
21
21
  if (!message) {
22
22
  if (this.editor.isSimpleWidget) {
23
- message = new MarkdownString(nls.localize(1360, "Cannot edit in read-only input"));
23
+ message = new MarkdownString(nls.localize(1361, "Cannot edit in read-only input"));
24
24
  }
25
25
  else {
26
- message = new MarkdownString(nls.localize(1361, "Cannot edit in read-only editor"));
26
+ message = new MarkdownString(nls.localize(1362, "Cannot edit in read-only editor"));
27
27
  }
28
28
  }
29
29
  messageController.showMessage(message, this.editor.getPosition());
@@ -99,7 +99,7 @@ class RenameSkeleton {
99
99
  }
100
100
  const result = await provider.provideRenameEdits(this.model, this.position, newName, token);
101
101
  if (!result) {
102
- return this._provideRenameEdits(newName, i + 1, rejects.concat(nls.localize(1362, "No result.")), token);
102
+ return this._provideRenameEdits(newName, i + 1, rejects.concat(nls.localize(1363, "No result.")), token);
103
103
  }
104
104
  else if (result.rejectReason) {
105
105
  return this._provideRenameEdits(newName, i + 1, rejects.concat(result.rejectReason), token);
@@ -172,7 +172,7 @@ let RenameController = class RenameController {
172
172
  else {
173
173
  trace('resolve rename location failed', e instanceof Error ? e : JSON.stringify(e, null, '\t'));
174
174
  if (typeof e === 'string' || isMarkdownString(e)) {
175
- MessageController.get(this.editor)?.showMessage(e || nls.localize(1363, "An unknown error occurred while resolving rename location"), position);
175
+ MessageController.get(this.editor)?.showMessage(e || nls.localize(1364, "An unknown error occurred while resolving rename location"), position);
176
176
  }
177
177
  }
178
178
  return undefined;
@@ -240,24 +240,24 @@ let RenameController = class RenameController {
240
240
  this._bulkEditService.apply(renameResult, {
241
241
  editor: this.editor,
242
242
  showPreview: inputFieldResult.wantsPreview,
243
- label: nls.localize(1364, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName),
243
+ label: nls.localize(1365, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName),
244
244
  code: 'undoredo.rename',
245
- quotableLabel: nls.localize(1365, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName),
245
+ quotableLabel: nls.localize(1366, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName),
246
246
  respectAutoSaveConfig: true,
247
247
  reason: EditSources.rename(),
248
248
  }).then(result => {
249
249
  trace('edits applied');
250
250
  if (result.ariaSummary) {
251
- alert(nls.localize(1366, "Successfully renamed '{0}' to '{1}'. Summary: {2}", loc.text, inputFieldResult.newName, result.ariaSummary));
251
+ alert(nls.localize(1367, "Successfully renamed '{0}' to '{1}'. Summary: {2}", loc.text, inputFieldResult.newName, result.ariaSummary));
252
252
  }
253
253
  }).catch(err => {
254
254
  trace(`error when applying edits ${JSON.stringify(err, null, '\t')}`);
255
- this._notificationService.error(nls.localize(1367, "Rename failed to apply edits"));
255
+ this._notificationService.error(nls.localize(1368, "Rename failed to apply edits"));
256
256
  this._logService.error(err);
257
257
  });
258
258
  }, err => {
259
259
  trace('error when providing rename edits', JSON.stringify(err, null, '\t'));
260
- this._notificationService.error(nls.localize(1368, "Rename failed to compute edits"));
260
+ this._notificationService.error(nls.localize(1369, "Rename failed to compute edits"));
261
261
  this._logService.error(err);
262
262
  }).finally(() => {
263
263
  cts2.dispose();
@@ -293,7 +293,7 @@ export class RenameAction extends EditorAction {
293
293
  constructor() {
294
294
  super({
295
295
  id: 'editor.action.rename',
296
- label: nls.localize2(1370, "Rename Symbol"),
296
+ label: nls.localize2(1371, "Rename Symbol"),
297
297
  precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider),
298
298
  kbOpts: {
299
299
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -373,7 +373,7 @@ registerAction2(class FocusNextRenameSuggestion extends Action2 {
373
373
  super({
374
374
  id: 'focusNextRenameSuggestion',
375
375
  title: {
376
- ...nls.localize2(1371, "Focus Next Rename Suggestion"),
376
+ ...nls.localize2(1372, "Focus Next Rename Suggestion"),
377
377
  },
378
378
  precondition: CONTEXT_RENAME_INPUT_VISIBLE,
379
379
  keybinding: [
@@ -401,7 +401,7 @@ registerAction2(class FocusPreviousRenameSuggestion extends Action2 {
401
401
  super({
402
402
  id: 'focusPreviousRenameSuggestion',
403
403
  title: {
404
- ...nls.localize2(1372, "Focus Previous Rename Suggestion"),
404
+ ...nls.localize2(1373, "Focus Previous Rename Suggestion"),
405
405
  },
406
406
  precondition: CONTEXT_RENAME_INPUT_VISIBLE,
407
407
  keybinding: [
@@ -446,7 +446,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
446
446
  properties: {
447
447
  'editor.rename.enablePreview': {
448
448
  scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
449
- description: nls.localize(1369, "Enable/disable the ability to preview changes before renaming"),
449
+ description: nls.localize(1370, "Enable/disable the ability to preview changes before renaming"),
450
450
  default: true,
451
451
  type: 'boolean'
452
452
  }
@@ -39,8 +39,8 @@ import { editorWidgetBackground, inputBackground, inputBorder, inputForeground,
39
39
  import { IThemeService } from '../../../../platform/theme/common/themeService.js';
40
40
  /** for debugging */
41
41
  const _sticky = false;
42
- export const CONTEXT_RENAME_INPUT_VISIBLE = new RawContextKey('renameInputVisible', false, nls.localize(1373, "Whether the rename input widget is visible"));
43
- export const CONTEXT_RENAME_INPUT_FOCUSED = new RawContextKey('renameInputFocused', false, nls.localize(1374, "Whether the rename input widget is focused"));
42
+ export const CONTEXT_RENAME_INPUT_VISIBLE = new RawContextKey('renameInputVisible', false, nls.localize(1374, "Whether the rename input widget is visible"));
43
+ export const CONTEXT_RENAME_INPUT_FOCUSED = new RawContextKey('renameInputFocused', false, nls.localize(1375, "Whether the rename input widget is focused"));
44
44
  let RenameWidget = class RenameWidget {
45
45
  constructor(_editor, _acceptKeybindings, _themeService, _keybindingService, contextKeyService, _logService) {
46
46
  this._editor = _editor;
@@ -163,7 +163,7 @@ let RenameWidget = class RenameWidget {
163
163
  }
164
164
  beforeRender() {
165
165
  const [accept, preview] = this._acceptKeybindings;
166
- this._label.innerText = nls.localize(1375, "{0} to Rename, {1} to Preview", this._keybindingService.lookupKeybinding(accept)?.getLabel(), this._keybindingService.lookupKeybinding(preview)?.getLabel());
166
+ this._label.innerText = nls.localize(1376, "{0} to Rename, {1} to Preview", this._keybindingService.lookupKeybinding(accept)?.getLabel(), this._keybindingService.lookupKeybinding(preview)?.getLabel());
167
167
  this._domNode.style.minWidth = `200px`; // to prevent from widening when candidates come in
168
168
  return null;
169
169
  }
@@ -477,7 +477,7 @@ class RenameCandidateListView {
477
477
  // adjust list container layout
478
478
  this._listContainer.style.height = `${height}px`;
479
479
  this._listContainer.style.width = `${width}px`;
480
- aria.status(nls.localize(1376, "Received {0} rename suggestions", candidates.length));
480
+ aria.status(nls.localize(1377, "Received {0} rename suggestions", candidates.length));
481
481
  }
482
482
  clearCandidates() {
483
483
  this._listContainer.style.height = '0px';
@@ -619,13 +619,13 @@ class InputWithButton {
619
619
  this._inputNode.className = 'rename-input';
620
620
  this._inputNode.type = 'text';
621
621
  this._inputNode.style.border = 'none';
622
- this._inputNode.setAttribute('aria-label', nls.localize(1377, "Rename input. Type new name and press Enter to commit."));
622
+ this._inputNode.setAttribute('aria-label', nls.localize(1378, "Rename input. Type new name and press Enter to commit."));
623
623
  this._domNode.appendChild(this._inputNode);
624
624
  this._buttonNode = document.createElement('div');
625
625
  this._buttonNode.className = 'rename-suggestions-button';
626
626
  this._buttonNode.setAttribute('tabindex', '0');
627
- this._buttonGenHoverText = nls.localize(1378, "Generate new name suggestions");
628
- this._buttonCancelHoverText = nls.localize(1379, "Cancel");
627
+ this._buttonGenHoverText = nls.localize(1379, "Generate new name suggestions");
628
+ this._buttonCancelHoverText = nls.localize(1380, "Cancel");
629
629
  this._buttonHoverContent = this._buttonGenHoverText;
630
630
  this._disposables.add(getBaseLayerHoverDelegate().setupDelayedHover(this._buttonNode, () => ({
631
631
  content: this._buttonHoverContent,
@@ -68,7 +68,7 @@ let SmartSelectController = class SmartSelectController {
68
68
  const selections = this._editor.getSelections();
69
69
  const model = this._editor.getModel();
70
70
  if (!this._state) {
71
- await provideSelectionRanges(this._languageFeaturesService.selectionRangeProvider, model, selections.map(s => s.getPosition()), this._editor.getOption(128 /* EditorOption.smartSelect */), CancellationToken.None).then(ranges => {
71
+ await provideSelectionRanges(this._languageFeaturesService.selectionRangeProvider, model, selections.map(s => s.getPosition()), this._editor.getOption(129 /* EditorOption.smartSelect */), CancellationToken.None).then(ranges => {
72
72
  if (!arrays.isNonEmptyArray(ranges) || ranges.length !== selections.length) {
73
73
  // invalid result
74
74
  return;
@@ -131,7 +131,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
131
131
  constructor() {
132
132
  super(true, {
133
133
  id: 'editor.action.smartSelect.expand',
134
- label: nls.localize2(1382, "Expand Selection"),
134
+ label: nls.localize2(1383, "Expand Selection"),
135
135
  precondition: undefined,
136
136
  kbOpts: {
137
137
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -145,7 +145,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
145
145
  menuOpts: {
146
146
  menuId: MenuId.MenubarSelectionMenu,
147
147
  group: '1_basic',
148
- title: nls.localize(1380, "&&Expand Selection"),
148
+ title: nls.localize(1381, "&&Expand Selection"),
149
149
  order: 2
150
150
  }
151
151
  });
@@ -157,7 +157,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
157
157
  constructor() {
158
158
  super(false, {
159
159
  id: 'editor.action.smartSelect.shrink',
160
- label: nls.localize2(1383, "Shrink Selection"),
160
+ label: nls.localize2(1384, "Shrink Selection"),
161
161
  precondition: undefined,
162
162
  kbOpts: {
163
163
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -171,7 +171,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
171
171
  menuOpts: {
172
172
  menuId: MenuId.MenubarSelectionMenu,
173
173
  group: '1_basic',
174
- title: nls.localize(1381, "&&Shrink Selection"),
174
+ title: nls.localize(1382, "&&Shrink Selection"),
175
175
  order: 3
176
176
  }
177
177
  });
@@ -39,9 +39,9 @@ let SnippetController2 = class SnippetController2 {
39
39
  static get(editor) {
40
40
  return editor.getContribution(SnippetController2_1.ID);
41
41
  }
42
- static { this.InSnippetMode = new RawContextKey('inSnippetMode', false, localize(1384, "Whether the editor in current in snippet mode")); }
43
- static { this.HasNextTabstop = new RawContextKey('hasNextTabstop', false, localize(1385, "Whether there is a next tab stop when in snippet mode")); }
44
- static { this.HasPrevTabstop = new RawContextKey('hasPrevTabstop', false, localize(1386, "Whether there is a previous tab stop when in snippet mode")); }
42
+ static { this.InSnippetMode = new RawContextKey('inSnippetMode', false, localize(1385, "Whether the editor in current in snippet mode")); }
43
+ static { this.HasNextTabstop = new RawContextKey('hasNextTabstop', false, localize(1386, "Whether there is a next tab stop when in snippet mode")); }
44
+ static { this.HasPrevTabstop = new RawContextKey('hasPrevTabstop', false, localize(1387, "Whether there is a previous tab stop when in snippet mode")); }
45
45
  constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
46
46
  this._editor = _editor;
47
47
  this._logService = _logService;
@@ -125,7 +125,7 @@ let SnippetController2 = class SnippetController2 {
125
125
  sortText: 'a'.repeat(i + 1),
126
126
  range: activeChoice.range,
127
127
  filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
128
- command: { id: 'jumpToNextSnippetPlaceholder', title: localize(1387, 'Go to next placeholder...') }
128
+ command: { id: 'jumpToNextSnippetPlaceholder', title: localize(1388, 'Go to next placeholder...') }
129
129
  });
130
130
  }
131
131
  return { suggestions };
@@ -409,7 +409,7 @@ let SnippetSession = SnippetSession_1 = class SnippetSession {
409
409
  const snippetLineLeadingWhitespace = SnippetSession_1.adjustWhitespace(model, start, adjustWhitespace || (idx > 0 && firstLineFirstNonWhitespace !== model.getLineFirstNonWhitespaceColumn(selection.positionLineNumber)), snippet);
410
410
  snippet.resolveVariables(new CompositeSnippetVariableResolver([
411
411
  modelBasedVariableResolver,
412
- new ClipboardBasedVariableResolver(readClipboardText, idx, indexedSelections.length, editor.getOption(87 /* EditorOption.multiCursorPaste */) === 'spread'),
412
+ new ClipboardBasedVariableResolver(readClipboardText, idx, indexedSelections.length, editor.getOption(88 /* EditorOption.multiCursorPaste */) === 'spread'),
413
413
  new SelectionBasedVariableResolver(model, selection, idx, overtypingCapturer),
414
414
  new CommentBasedVariableResolver(model, selection, languageConfigurationService),
415
415
  new TimeBasedVariableResolver,
@@ -437,7 +437,7 @@ let SnippetSession = SnippetSession_1 = class SnippetSession {
437
437
  // snippet variables resolver
438
438
  const resolver = new CompositeSnippetVariableResolver([
439
439
  editor.invokeWithinContext(accessor => new ModelBasedVariableResolver(accessor.get(ILabelService), model)),
440
- new ClipboardBasedVariableResolver(() => clipboardText, 0, editor.getSelections().length, editor.getOption(87 /* EditorOption.multiCursorPaste */) === 'spread'),
440
+ new ClipboardBasedVariableResolver(() => clipboardText, 0, editor.getSelections().length, editor.getOption(88 /* EditorOption.multiCursorPaste */) === 'spread'),
441
441
  new SelectionBasedVariableResolver(model, editor.getSelection(), 0, overtypingCapturer),
442
442
  new CommentBasedVariableResolver(model, editor.getSelection(), languageConfigurationService),
443
443
  new TimeBasedVariableResolver,
@@ -238,10 +238,10 @@ export class TimeBasedVariableResolver {
238
238
  constructor() {
239
239
  this._date = new Date();
240
240
  }
241
- static { this.dayNames = [nls.localize(1388, "Sunday"), nls.localize(1389, "Monday"), nls.localize(1390, "Tuesday"), nls.localize(1391, "Wednesday"), nls.localize(1392, "Thursday"), nls.localize(1393, "Friday"), nls.localize(1394, "Saturday")]; }
242
- static { this.dayNamesShort = [nls.localize(1395, "Sun"), nls.localize(1396, "Mon"), nls.localize(1397, "Tue"), nls.localize(1398, "Wed"), nls.localize(1399, "Thu"), nls.localize(1400, "Fri"), nls.localize(1401, "Sat")]; }
243
- static { this.monthNames = [nls.localize(1402, "January"), nls.localize(1403, "February"), nls.localize(1404, "March"), nls.localize(1405, "April"), nls.localize(1406, "May"), nls.localize(1407, "June"), nls.localize(1408, "July"), nls.localize(1409, "August"), nls.localize(1410, "September"), nls.localize(1411, "October"), nls.localize(1412, "November"), nls.localize(1413, "December")]; }
244
- static { this.monthNamesShort = [nls.localize(1414, "Jan"), nls.localize(1415, "Feb"), nls.localize(1416, "Mar"), nls.localize(1417, "Apr"), nls.localize(1418, "May"), nls.localize(1419, "Jun"), nls.localize(1420, "Jul"), nls.localize(1421, "Aug"), nls.localize(1422, "Sep"), nls.localize(1423, "Oct"), nls.localize(1424, "Nov"), nls.localize(1425, "Dec")]; }
241
+ static { this.dayNames = [nls.localize(1389, "Sunday"), nls.localize(1390, "Monday"), nls.localize(1391, "Tuesday"), nls.localize(1392, "Wednesday"), nls.localize(1393, "Thursday"), nls.localize(1394, "Friday"), nls.localize(1395, "Saturday")]; }
242
+ static { this.dayNamesShort = [nls.localize(1396, "Sun"), nls.localize(1397, "Mon"), nls.localize(1398, "Tue"), nls.localize(1399, "Wed"), nls.localize(1400, "Thu"), nls.localize(1401, "Fri"), nls.localize(1402, "Sat")]; }
243
+ static { this.monthNames = [nls.localize(1403, "January"), nls.localize(1404, "February"), nls.localize(1405, "March"), nls.localize(1406, "April"), nls.localize(1407, "May"), nls.localize(1408, "June"), nls.localize(1409, "July"), nls.localize(1410, "August"), nls.localize(1411, "September"), nls.localize(1412, "October"), nls.localize(1413, "November"), nls.localize(1414, "December")]; }
244
+ static { this.monthNamesShort = [nls.localize(1415, "Jan"), nls.localize(1416, "Feb"), nls.localize(1417, "Mar"), nls.localize(1418, "Apr"), nls.localize(1419, "May"), nls.localize(1420, "Jun"), nls.localize(1421, "Jul"), nls.localize(1422, "Aug"), nls.localize(1423, "Sep"), nls.localize(1424, "Oct"), nls.localize(1425, "Nov"), nls.localize(1426, "Dec")]; }
245
245
  resolve(variable) {
246
246
  const { name } = variable;
247
247
  if (name === 'CURRENT_YEAR') {
@@ -15,17 +15,17 @@ export class ToggleStickyScroll extends EditorAction2 {
15
15
  super({
16
16
  id: 'editor.action.toggleStickyScroll',
17
17
  title: {
18
- ...localize2(1430, "Toggle Editor Sticky Scroll"),
19
- mnemonicTitle: localize(1426, "&&Toggle Editor Sticky Scroll"),
18
+ ...localize2(1431, "Toggle Editor Sticky Scroll"),
19
+ mnemonicTitle: localize(1427, "&&Toggle Editor Sticky Scroll"),
20
20
  },
21
21
  metadata: {
22
- description: localize2(1431, "Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport"),
22
+ description: localize2(1432, "Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport"),
23
23
  },
24
24
  category: Categories.View,
25
25
  toggled: {
26
26
  condition: ContextKeyExpr.equals('config.editor.stickyScroll.enabled', true),
27
- title: localize(1427, "Sticky Scroll"),
28
- mnemonicTitle: localize(1428, "&&Sticky Scroll"),
27
+ title: localize(1428, "Sticky Scroll"),
28
+ mnemonicTitle: localize(1429, "&&Sticky Scroll"),
29
29
  },
30
30
  menu: [
31
31
  { id: MenuId.CommandPalette },
@@ -50,8 +50,8 @@ export class FocusStickyScroll extends EditorAction2 {
50
50
  super({
51
51
  id: 'editor.action.focusStickyScroll',
52
52
  title: {
53
- ...localize2(1432, "Focus Editor Sticky Scroll"),
54
- mnemonicTitle: localize(1429, "&&Focus Editor Sticky Scroll"),
53
+ ...localize2(1433, "Focus Editor Sticky Scroll"),
54
+ mnemonicTitle: localize(1430, "&&Focus Editor Sticky Scroll"),
55
55
  },
56
56
  precondition: ContextKeyExpr.and(ContextKeyExpr.has('config.editor.stickyScroll.enabled'), EditorContextKeys.stickyScrollVisible),
57
57
  menu: [
@@ -67,7 +67,7 @@ export class SelectNextStickyScrollLine extends EditorAction2 {
67
67
  constructor() {
68
68
  super({
69
69
  id: 'editor.action.selectNextStickyScrollLine',
70
- title: localize2(1433, "Select the next editor sticky scroll line"),
70
+ title: localize2(1434, "Select the next editor sticky scroll line"),
71
71
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
72
72
  keybinding: {
73
73
  weight,
@@ -83,7 +83,7 @@ export class SelectPreviousStickyScrollLine extends EditorAction2 {
83
83
  constructor() {
84
84
  super({
85
85
  id: 'editor.action.selectPreviousStickyScrollLine',
86
- title: localize2(1434, "Select the previous sticky scroll line"),
86
+ title: localize2(1435, "Select the previous sticky scroll line"),
87
87
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
88
88
  keybinding: {
89
89
  weight,
@@ -99,7 +99,7 @@ export class GoToStickyScrollLine extends EditorAction2 {
99
99
  constructor() {
100
100
  super({
101
101
  id: 'editor.action.goToFocusedStickyScrollLine',
102
- title: localize2(1435, "Go to the focused sticky scroll line"),
102
+ title: localize2(1436, "Go to the focused sticky scroll line"),
103
103
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
104
104
  keybinding: {
105
105
  weight,
@@ -115,7 +115,7 @@ export class SelectEditor extends EditorAction2 {
115
115
  constructor() {
116
116
  super({
117
117
  id: 'editor.action.selectEditor',
118
- title: localize2(1436, "Select Editor"),
118
+ title: localize2(1437, "Select Editor"),
119
119
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
120
120
  keybinding: {
121
121
  weight,
@@ -383,7 +383,7 @@ let StickyScrollController = class StickyScrollController extends Disposable {
383
383
  this._renderStickyScroll(line);
384
384
  }
385
385
  _readConfiguration() {
386
- const options = this._editor.getOption(130 /* EditorOption.stickyScroll */);
386
+ const options = this._editor.getOption(131 /* EditorOption.stickyScroll */);
387
387
  if (options.enabled === false) {
388
388
  this._editor.removeOverlayWidget(this._stickyScrollWidget);
389
389
  this._resetState();
@@ -417,14 +417,14 @@ let StickyScrollController = class StickyScrollController extends Disposable {
417
417
  }
418
418
  }
419
419
  _readConfigurationChange(event) {
420
- if (event.hasChanged(130 /* EditorOption.stickyScroll */)
420
+ if (event.hasChanged(131 /* EditorOption.stickyScroll */)
421
421
  || event.hasChanged(81 /* EditorOption.minimap */)
422
422
  || event.hasChanged(75 /* EditorOption.lineHeight */)
423
- || event.hasChanged(125 /* EditorOption.showFoldingControls */)
423
+ || event.hasChanged(126 /* EditorOption.showFoldingControls */)
424
424
  || event.hasChanged(76 /* EditorOption.lineNumbers */)) {
425
425
  this._readConfiguration();
426
426
  }
427
- if (event.hasChanged(76 /* EditorOption.lineNumbers */) || event.hasChanged(52 /* EditorOption.folding */) || event.hasChanged(125 /* EditorOption.showFoldingControls */)) {
427
+ if (event.hasChanged(76 /* EditorOption.lineNumbers */) || event.hasChanged(52 /* EditorOption.folding */) || event.hasChanged(126 /* EditorOption.showFoldingControls */)) {
428
428
  this._renderStickyScroll(0);
429
429
  }
430
430
  }
@@ -517,11 +517,7 @@ let StickyScrollController = class StickyScrollController extends Disposable {
517
517
  this._stickyScrollWidget.setState(undefined, undefined);
518
518
  }
519
519
  findScrollWidgetState() {
520
- if (!this._editor.hasModel()) {
521
- return StickyScrollWidgetState.Empty;
522
- }
523
- const textModel = this._editor.getModel();
524
- const maxNumberStickyLines = Math.min(this._maxStickyLines, this._editor.getOption(130 /* EditorOption.stickyScroll */).maxLineCount);
520
+ const maxNumberStickyLines = Math.min(this._maxStickyLines, this._editor.getOption(131 /* EditorOption.stickyScroll */).maxLineCount);
525
521
  const scrollTop = this._editor.getScrollTop();
526
522
  let lastLineRelativePosition = 0;
527
523
  const startLineNumbers = [];
@@ -533,23 +529,20 @@ let StickyScrollController = class StickyScrollController extends Disposable {
533
529
  for (const range of candidateRanges) {
534
530
  const start = range.startLineNumber;
535
531
  const end = range.endLineNumber;
536
- const isValidRange = textModel.isValidRange({ startLineNumber: start, endLineNumber: end, startColumn: 1, endColumn: 1 });
537
- if (isValidRange && end - start > 0) {
538
- const topOfElement = range.top;
539
- const bottomOfElement = topOfElement + range.height;
540
- const topOfBeginningLine = this._editor.getTopForLineNumber(start) - scrollTop;
541
- const bottomOfEndLine = this._editor.getBottomForLineNumber(end) - scrollTop;
542
- if (topOfElement > topOfBeginningLine && topOfElement <= bottomOfEndLine) {
543
- startLineNumbers.push(start);
544
- endLineNumbers.push(end + 1);
545
- if (bottomOfElement > bottomOfEndLine) {
546
- lastLineRelativePosition = bottomOfEndLine - bottomOfElement;
547
- }
548
- }
549
- if (startLineNumbers.length === maxNumberStickyLines) {
550
- break;
532
+ const topOfElement = range.top;
533
+ const bottomOfElement = topOfElement + range.height;
534
+ const topOfBeginningLine = this._editor.getTopForLineNumber(start) - scrollTop;
535
+ const bottomOfEndLine = this._editor.getBottomForLineNumber(end) - scrollTop;
536
+ if (topOfElement > topOfBeginningLine && topOfElement <= bottomOfEndLine) {
537
+ startLineNumbers.push(start);
538
+ endLineNumbers.push(end + 1);
539
+ if (bottomOfElement > bottomOfEndLine) {
540
+ lastLineRelativePosition = bottomOfEndLine - bottomOfElement;
551
541
  }
552
542
  }
543
+ if (startLineNumbers.length === maxNumberStickyLines) {
544
+ break;
545
+ }
553
546
  }
554
547
  }
555
548
  this._endLineNumbers = endLineNumbers;