monaco-editor-core 0.55.0-dev-20251021 → 0.55.0-dev-20251022

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 (194) hide show
  1. package/esm/nls.keys.json +1 -1
  2. package/esm/nls.messages.cs.js +2 -2
  3. package/esm/nls.messages.de.js +2 -2
  4. package/esm/nls.messages.es.js +2 -2
  5. package/esm/nls.messages.fr.js +2 -2
  6. package/esm/nls.messages.it.js +2 -2
  7. package/esm/nls.messages.ja.js +2 -2
  8. package/esm/nls.messages.js +1 -1
  9. package/esm/nls.messages.json +1 -1
  10. package/esm/nls.messages.ko.js +2 -2
  11. package/esm/nls.messages.pl.js +2 -2
  12. package/esm/nls.messages.pt-br.js +2 -2
  13. package/esm/nls.messages.ru.js +2 -2
  14. package/esm/nls.messages.tr.js +2 -2
  15. package/esm/nls.messages.zh-cn.js +2 -2
  16. package/esm/nls.messages.zh-tw.js +2 -2
  17. package/esm/nls.metadata.json +17 -5
  18. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  19. package/esm/vs/base/browser/ui/iconLabel/iconlabel.css +2 -3
  20. package/esm/vs/base/common/codiconsLibrary.js +1 -0
  21. package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
  22. package/esm/vs/base/common/policy.js +40 -1
  23. package/esm/vs/base/common/policy.js.map +1 -1
  24. package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
  25. package/esm/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
  26. package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
  27. package/esm/vs/editor/browser/coreCommands.js +3 -3
  28. package/esm/vs/editor/browser/editorExtensions.js +9 -9
  29. package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  30. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  31. package/esm/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
  32. package/esm/vs/editor/browser/services/inlineCompletionsService.js +4 -4
  33. package/esm/vs/editor/browser/services/inlineCompletionsService.js.map +1 -1
  34. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  35. package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  36. package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
  37. package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js.map +1 -1
  38. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  39. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.js +1 -1
  40. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
  41. package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  42. package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  43. package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
  44. package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
  45. package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  46. package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  47. package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
  48. package/esm/vs/editor/common/config/editorConfigurationSchema.js +54 -54
  49. package/esm/vs/editor/common/config/editorOptions.js +406 -406
  50. package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
  51. package/esm/vs/editor/common/editorContextKeys.js +46 -46
  52. package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
  53. package/esm/vs/editor/common/languages.js +56 -56
  54. package/esm/vs/editor/common/model/editStack.js +1 -1
  55. package/esm/vs/editor/common/standaloneStrings.js +10 -10
  56. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  57. package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  58. package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  59. package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  60. package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  61. package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  62. package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  63. package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  64. package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  65. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  66. package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  67. package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  68. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  69. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  70. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  71. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  72. package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
  73. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  74. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  75. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  76. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  77. package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  78. package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  79. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  80. package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  81. package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
  82. package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
  83. package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
  84. package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
  85. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  86. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
  87. package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  88. package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
  89. package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  90. package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  91. package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  92. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  93. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  94. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  95. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  96. package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  97. package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  98. package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  99. package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  100. package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  101. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  102. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  103. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  104. package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  105. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  106. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +18 -51
  107. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js.map +1 -1
  108. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  109. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  110. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
  111. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  112. package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +2 -4
  113. package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js.map +1 -1
  114. package/esm/vs/editor/contrib/inlineCompletions/browser/telemetry.js.map +1 -1
  115. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
  116. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  117. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  118. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  119. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  120. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  121. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  122. package/esm/vs/editor/contrib/links/browser/links.js +10 -10
  123. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  124. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  125. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  126. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  127. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  128. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  129. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +35 -28
  130. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js.map +1 -1
  131. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  132. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  133. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  134. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  135. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  136. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  137. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  138. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  139. package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  140. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  141. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  142. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  143. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  144. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  145. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  146. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  147. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  148. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  149. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  150. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  151. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  152. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  153. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  154. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  155. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  156. package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
  157. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  158. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  159. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  160. package/esm/vs/platform/actions/common/menuService.js +2 -2
  161. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  162. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  163. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  164. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  165. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  166. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  167. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  168. package/esm/vs/platform/list/browser/listService.js +27 -27
  169. package/esm/vs/platform/markers/common/markerService.js +2 -2
  170. package/esm/vs/platform/markers/common/markers.js +6 -6
  171. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
  172. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  173. package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
  174. package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  175. package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
  176. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  177. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  178. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  179. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  180. package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
  181. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  182. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  183. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  184. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  185. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  186. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  187. package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
  188. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  189. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  190. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  191. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  192. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  193. package/package.json +2 -2
  194. package/version.txt +1 -1
@@ -30,8 +30,8 @@ import { listHighlightForeground, registerColor } from '../../../../platform/the
30
30
  import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
31
31
  import { ThemeIcon } from '../../../../base/common/themables.js';
32
32
  const $ = dom.$;
33
- const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, nls.localize(1304, 'Icon for show next parameter hint.'));
34
- const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, nls.localize(1305, 'Icon for show previous parameter hint.'));
33
+ const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, nls.localize(1307, 'Icon for show next parameter hint.'));
34
+ const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, nls.localize(1308, 'Icon for show previous parameter hint.'));
35
35
  let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
36
36
  static { ParameterHintsWidget_1 = this; }
37
37
  static { this.ID = 'editor.widget.parameterHintsWidget'; }
@@ -206,7 +206,7 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
206
206
  // Select method gets called on every user type while parameter hints are visible.
207
207
  // We do not want to spam the user with same announcements, so we only announce if the current parameter changed.
208
208
  if (this.announcedLabel !== labelToAnnounce) {
209
- aria.alert(nls.localize(1306, "{0}, hint", labelToAnnounce));
209
+ aria.alert(nls.localize(1309, "{0}, hint", labelToAnnounce));
210
210
  this.announcedLabel = labelToAnnounce;
211
211
  }
212
212
  }
@@ -304,5 +304,5 @@ ParameterHintsWidget = ParameterHintsWidget_1 = __decorate([
304
304
  __param(3, IMarkdownRendererService)
305
305
  ], ParameterHintsWidget);
306
306
  export { ParameterHintsWidget };
307
- registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, nls.localize(1307, 'Foreground color of the active item in the parameter hint.'));
307
+ registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, nls.localize(1310, 'Foreground color of the active item in the parameter hint.'));
308
308
  //# sourceMappingURL=parameterHintsWidget.js.map
@@ -53,7 +53,7 @@ registerSingleton(IPeekViewService, class {
53
53
  }, 1 /* InstantiationType.Delayed */);
54
54
  export var PeekContext;
55
55
  (function (PeekContext) {
56
- PeekContext.inPeekEditor = new RawContextKey('inReferenceSearchEditor', true, nls.localize(1308, "Whether the current code editor is embedded inside peek"));
56
+ PeekContext.inPeekEditor = new RawContextKey('inReferenceSearchEditor', true, nls.localize(1311, "Whether the current code editor is embedded inside peek"));
57
57
  PeekContext.notInPeekEditor = PeekContext.inPeekEditor.toNegated();
58
58
  })(PeekContext || (PeekContext = {}));
59
59
  let PeekContextController = class PeekContextController {
@@ -149,7 +149,7 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
149
149
  this._actionbarWidget = new ActionBar(actionsContainer, actionBarOptions);
150
150
  this._disposables.add(this._actionbarWidget);
151
151
  if (!noCloseAction) {
152
- this._actionbarWidget.push(this._disposables.add(new Action('peekview.close', nls.localize(1309, "Close"), ThemeIcon.asClassName(Codicon.close), true, () => {
152
+ this._actionbarWidget.push(this._disposables.add(new Action('peekview.close', nls.localize(1312, "Close"), ThemeIcon.asClassName(Codicon.close), true, () => {
153
153
  this.dispose();
154
154
  return Promise.resolve();
155
155
  })), { label: false, icon: true });
@@ -216,20 +216,20 @@ PeekViewWidget = __decorate([
216
216
  __param(2, IInstantiationService)
217
217
  ], PeekViewWidget);
218
218
  export { PeekViewWidget };
219
- export const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(1310, 'Background color of the peek view title area.'));
220
- export const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, nls.localize(1311, 'Color of the peek view title.'));
221
- export const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, nls.localize(1312, 'Color of the peek view title info.'));
222
- export const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1313, 'Color of the peek view borders and arrow.'));
223
- export const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(1314, 'Background color of the peek view result list.'));
224
- export const peekViewResultsMatchForeground = registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1315, 'Foreground color for line nodes in the peek view result list.'));
225
- export const peekViewResultsFileForeground = registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1316, 'Foreground color for file nodes in the peek view result list.'));
226
- export const peekViewResultsSelectionBackground = registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, nls.localize(1317, 'Background color of the selected entry in the peek view result list.'));
227
- export const peekViewResultsSelectionForeground = registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1318, 'Foreground color of the selected entry in the peek view result list.'));
228
- export const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, nls.localize(1319, 'Background color of the peek view editor.'));
229
- export const peekViewEditorGutterBackground = registerColor('peekViewEditorGutter.background', peekViewEditorBackground, nls.localize(1320, 'Background color of the gutter in the peek view editor.'));
230
- export const peekViewEditorStickyScrollBackground = registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, nls.localize(1321, 'Background color of sticky scroll in the peek view editor.'));
231
- export const peekViewEditorStickyScrollGutterBackground = registerColor('peekViewEditorStickyScrollGutter.background', peekViewEditorBackground, nls.localize(1322, 'Background color of the gutter part of sticky scroll in the peek view editor.'));
232
- export const peekViewResultsMatchHighlight = registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, nls.localize(1323, 'Match highlight color in the peek view result list.'));
233
- export const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, nls.localize(1324, 'Match highlight color in the peek view editor.'));
234
- export const peekViewEditorMatchHighlightBorder = registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(1325, 'Match highlight border in the peek view editor.'));
219
+ export const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(1313, 'Background color of the peek view title area.'));
220
+ export const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, nls.localize(1314, 'Color of the peek view title.'));
221
+ export const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, nls.localize(1315, 'Color of the peek view title info.'));
222
+ export const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1316, 'Color of the peek view borders and arrow.'));
223
+ export const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(1317, 'Background color of the peek view result list.'));
224
+ export const peekViewResultsMatchForeground = registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1318, 'Foreground color for line nodes in the peek view result list.'));
225
+ export const peekViewResultsFileForeground = registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1319, 'Foreground color for file nodes in the peek view result list.'));
226
+ export const peekViewResultsSelectionBackground = registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, nls.localize(1320, 'Background color of the selected entry in the peek view result list.'));
227
+ export const peekViewResultsSelectionForeground = registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1321, 'Foreground color of the selected entry in the peek view result list.'));
228
+ export const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, nls.localize(1322, 'Background color of the peek view editor.'));
229
+ export const peekViewEditorGutterBackground = registerColor('peekViewEditorGutter.background', peekViewEditorBackground, nls.localize(1323, 'Background color of the gutter in the peek view editor.'));
230
+ export const peekViewEditorStickyScrollBackground = registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, nls.localize(1324, 'Background color of sticky scroll in the peek view editor.'));
231
+ export const peekViewEditorStickyScrollGutterBackground = registerColor('peekViewEditorStickyScrollGutter.background', peekViewEditorBackground, nls.localize(1325, 'Background color of the gutter part of sticky scroll in the peek view editor.'));
232
+ export const peekViewResultsMatchHighlight = registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, nls.localize(1326, 'Match highlight color in the peek view result list.'));
233
+ export const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, nls.localize(1327, 'Match highlight color in the peek view editor.'));
234
+ export const peekViewEditorMatchHighlightBorder = registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(1328, 'Match highlight border in the peek view editor.'));
235
235
  //# sourceMappingURL=peekView.js.map
@@ -10,5 +10,5 @@ import { registerColor } from '../../../../platform/theme/common/colorUtils.js';
10
10
  import { PlaceholderTextContribution } from './placeholderTextContribution.js';
11
11
  import { wrapInReloadableClass1 } from '../../../../platform/observable/common/wrapInReloadableClass.js';
12
12
  registerEditorContribution(PlaceholderTextContribution.ID, wrapInReloadableClass1(() => PlaceholderTextContribution), 0 /* EditorContributionInstantiation.Eager */);
13
- registerColor('editor.placeholder.foreground', ghostTextForeground, localize(1326, 'Foreground color of the placeholder text in the editor.'));
13
+ registerColor('editor.placeholder.foreground', ghostTextForeground, localize(1329, 'Foreground color of the placeholder text in the editor.'));
14
14
  //# sourceMappingURL=placeholderText.contribution.js.map
@@ -17,7 +17,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
17
17
  this.useZeroBasedOffset = useZeroBasedOffset;
18
18
  }
19
19
  provideWithoutTextEditor(picker) {
20
- const label = localize(1327, "Open a text editor first to go to a line.");
20
+ const label = localize(1330, "Open a text editor first to go to a line.");
21
21
  picker.items = [{ label }];
22
22
  picker.ariaLabel = label;
23
23
  return Disposable.None;
@@ -50,7 +50,10 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
50
50
  picker.items = [{
51
51
  lineNumber: position.lineNumber,
52
52
  column: position.column,
53
- label
53
+ label,
54
+ detail: inputText.length ?
55
+ undefined : // Don't show hint once the user has started typing.
56
+ localize(1331, "Use :line[:column] or ::offset to go to a position. Negative values are counted from the end.")
54
57
  }];
55
58
  // ARIA Label
56
59
  picker.ariaLabel = label;
@@ -67,8 +70,8 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
67
70
  };
68
71
  // Add a toggle to switch between 1- and 0-based offsets.
69
72
  const toggle = new Toggle({
70
- title: localize(1328, "Use zero-based offset"),
71
- icon: Codicon.symbolArray,
73
+ title: localize(1332, "Use zero-based offset"),
74
+ icon: Codicon.indexZero,
72
75
  isChecked: this.useZeroBasedOffset.value,
73
76
  inputActiveOptionBorder: asCssVariable(inputActiveOptionBorder),
74
77
  inputActiveOptionForeground: asCssVariable(inputActiveOptionForeground),
@@ -102,52 +105,56 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
102
105
  };
103
106
  }
104
107
  parsePosition(editor, value) {
108
+ const model = this.getModel(editor);
105
109
  // Support ::<offset> notation to navigate to a specific offset in the model.
106
110
  if (value.startsWith(':')) {
107
111
  let offset = parseInt(value.substring(1), 10);
108
- if (!isNaN(offset)) {
109
- const model = this.getModel(editor);
110
- if (model) {
111
- const reverse = offset < 0;
112
- if (!this.useZeroBasedOffset.value) {
113
- // Convert 1-based offset to model's 0-based.
114
- offset -= Math.sign(offset);
115
- }
116
- if (reverse) {
117
- // Offset from the end of the buffer
118
- offset += model.getValueLength();
119
- }
120
- return model.getPositionAt(offset);
112
+ if (!isNaN(offset) && model) {
113
+ const reverse = offset < 0;
114
+ if (!this.useZeroBasedOffset.value) {
115
+ // Convert 1-based offset to model's 0-based.
116
+ offset -= Math.sign(offset);
117
+ }
118
+ if (reverse) {
119
+ // Offset from the end of the buffer
120
+ offset += model.getValueLength();
121
121
  }
122
+ return model.getPositionAt(offset);
122
123
  }
123
124
  }
124
125
  // Support line-col formats of `line,col`, `line:col`, `line#col`
125
- const numbers = value.split(/,|:|#/).map(part => parseInt(part, 10)).filter(part => !isNaN(part));
126
- const endLine = this.lineCount(editor) + 1;
127
- return {
128
- lineNumber: numbers[0] > 0 ? numbers[0] : endLine + numbers[0],
129
- column: numbers[1]
130
- };
126
+ let [lineNumber, column] = value.split(/,|:|#/).map(part => parseInt(part, 10)).filter(part => !isNaN(part));
127
+ // Handle negative line numbers and clip to valid range.
128
+ const maxLine = (model?.getLineCount() ?? 0) + 1;
129
+ lineNumber = lineNumber >= 0 ? lineNumber : maxLine + lineNumber;
130
+ lineNumber = Math.min(Math.max(1, lineNumber), maxLine);
131
+ // Handle negative column numbers and clip to valid range.
132
+ if (column !== undefined && model) {
133
+ const maxColumn = model.getLineMaxColumn(lineNumber);
134
+ column = column >= 0 ? column : maxColumn + column;
135
+ column = Math.min(Math.max(1, column), maxColumn);
136
+ }
137
+ return { lineNumber, column };
131
138
  }
132
139
  getPickLabel(editor, lineNumber, column, inOffsetMode) {
133
140
  // Location valid: indicate this as picker label
134
141
  if (this.isValidLineNumber(editor, lineNumber)) {
135
142
  if (this.isValidColumn(editor, lineNumber, column)) {
136
- return localize(1329, "Go to line {0} and character {1}.", lineNumber, column);
143
+ return localize(1333, "Go to line {0} and character {1}.", lineNumber, column);
137
144
  }
138
- return localize(1330, "Go to line {0}.", lineNumber);
145
+ return localize(1334, "Go to line {0}.", lineNumber);
139
146
  }
140
147
  // Location invalid: show generic label
141
148
  const position = editor.getPosition() || { lineNumber: 1, column: 1 };
142
149
  // When in offset mode, prompt for an offset.
143
150
  if (inOffsetMode) {
144
- return localize(1331, "Current Line: {0}, Character: {1}. Type a character offset to navigate to.", position.lineNumber, position.column);
151
+ return localize(1335, "Current Line: {0}, Character: {1}. Type a character offset to navigate to.", position.lineNumber, position.column);
145
152
  }
146
153
  const lineCount = this.lineCount(editor);
147
154
  if (lineCount > 1) {
148
- return localize(1332, "Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.", position.lineNumber, position.column, lineCount);
155
+ return localize(1336, "Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.", position.lineNumber, position.column, lineCount);
149
156
  }
150
- return localize(1333, "Current Line: {0}, Character: {1}. Type a line number to navigate to.", position.lineNumber, position.column);
157
+ return localize(1337, "Current Line: {0}, Character: {1}. Type a line number to navigate to.", position.lineNumber, position.column);
151
158
  }
152
159
  isValidLineNumber(editor, lineNumber) {
153
160
  if (!lineNumber || typeof lineNumber !== 'number') {
@@ -1 +1 @@
1
- {"version":3,"sources":["vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAe,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAC5J,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAKlE,OAAO,EAAE,2CAA2C,EAAiC,MAAM,kCAAkC,CAAC;AAI9H,MAAM,OAAgB,mCAAoC,SAAQ,2CAA2C;aAErG,WAAM,GAAG,GAAG,CAAC;IAEpB,YAAoB,qBAAyC,EAAE,KAAK,EAAE,KAAK,EAAE;QAC5E,KAAK,CAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;QADpB,uBAAkB,GAAlB,kBAAkB,CAAuC;IAE7E,CAAC;IAES,wBAAwB,CAAC,MAAmE;QACrG,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAmB,EAAE,2CAA2C,CAAC,CAAC;QAEzF,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC;QAEzB,OAAO,UAAU,CAAC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E,UAAkB,EAAE,MAA0B;QACpF,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC3C,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,iBAAiB,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAEjD,OAAO,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC5E,CAAC;IAEO,SAAS,CAAC,MAAe;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC","file":"gotoLineQuickAccess.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 { Toggle } from '../../../../base/browser/ui/toggle/toggle.js';\nimport { CancellationToken } from '../../../../base/common/cancellation.js';\nimport { Codicon } from '../../../../base/common/codicons.js';\nimport { Disposable, DisposableStore, IDisposable, toDisposable } from '../../../../base/common/lifecycle.js';\nimport { localize } from '../../../../nls.js';\nimport { IQuickPick, IQuickPickItem } from '../../../../platform/quickinput/common/quickInput.js';\nimport { inputActiveOptionBackground, inputActiveOptionBorder, inputActiveOptionForeground } from '../../../../platform/theme/common/colors/inputColors.js';\nimport { asCssVariable } from '../../../../platform/theme/common/colorUtils.js';\nimport { getCodeEditor } from '../../../browser/editorBrowser.js';\nimport { EditorOption, RenderLineNumbersType } from '../../../common/config/editorOptions.js';\nimport { IPosition } from '../../../common/core/position.js';\nimport { IRange } from '../../../common/core/range.js';\nimport { IEditor, ScrollType } from '../../../common/editorCommon.js';\nimport { AbstractEditorNavigationQuickAccessProvider, IQuickAccessTextEditorContext } from './editorNavigationQuickAccess.js';\n\ninterface IGotoLineQuickPickItem extends IQuickPickItem, Partial<IPosition> { }\n\nexport abstract class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigationQuickAccessProvider {\n\n\tstatic PREFIX = ':';\n\n\tconstructor(private useZeroBasedOffset: { value: boolean } = { value: false }) {\n\t\tsuper({ canAcceptInBackground: true });\n\t}\n\n\tprotected provideWithoutTextEditor(picker: IQuickPick<IGotoLineQuickPickItem, { useSeparators: true }>): IDisposable {\n\t\tconst label = localize('cannotRunGotoLine', \"Open a text editor first to go to a line.\");\n\n\t\tpicker.items = [{ label }];\n\t\tpicker.ariaLabel = label;\n\n\t\treturn Disposable.None;\n\t}\n\n\tprotected provideWithTextEditor(context: IQuickAccessTextEditorContext, picker: IQuickPick<IGotoLineQuickPickItem, { useSeparators: true }>, token: CancellationToken): IDisposable {\n\t\tconst editor = context.editor;\n\t\tconst disposables = new DisposableStore();\n\n\t\t// Goto line once picked\n\t\tdisposables.add(picker.onDidAccept(event => {\n\t\t\tconst [item] = picker.selectedItems;\n\t\t\tif (item) {\n\t\t\t\tif (!this.isValidLineNumber(editor, item.lineNumber)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.gotoLocation(context, { range: this.toRange(item.lineNumber, item.column), keyMods: picker.keyMods, preserveFocus: event.inBackground });\n\n\t\t\t\tif (!event.inBackground) {\n\t\t\t\t\tpicker.hide();\n\t\t\t\t}\n\t\t\t}\n\t\t}));\n\n\t\t// React to picker changes\n\t\tconst updatePickerAndEditor = () => {\n\t\t\tconst inputText = picker.value.trim().substring(AbstractGotoLineQuickAccessProvider.PREFIX.length);\n\t\t\tconst inOffsetMode = inputText.startsWith(':');\n\t\t\tconst position = this.parsePosition(editor, inputText);\n\t\t\tconst label = this.getPickLabel(editor, position.lineNumber, position.column, inOffsetMode);\n\n\t\t\t// Show toggle only when input text starts with '::'.\n\t\t\ttoggle.visible = inOffsetMode;\n\n\t\t\t// Picker\n\t\t\tpicker.items = [{\n\t\t\t\tlineNumber: position.lineNumber,\n\t\t\t\tcolumn: position.column,\n\t\t\t\tlabel\n\t\t\t}];\n\n\t\t\t// ARIA Label\n\t\t\tpicker.ariaLabel = label;\n\n\t\t\t// Clear decorations for invalid range\n\t\t\tif (!this.isValidLineNumber(editor, position.lineNumber)) {\n\t\t\t\tthis.clearDecorations(editor);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Reveal\n\t\t\tconst range = this.toRange(position.lineNumber, position.column);\n\t\t\teditor.revealRangeInCenter(range, ScrollType.Smooth);\n\n\t\t\t// Decorate\n\t\t\tthis.addDecorations(editor, range);\n\t\t};\n\n\t\t// Add a toggle to switch between 1- and 0-based offsets.\n\t\tconst toggle = new Toggle({\n\t\t\ttitle: localize('gotoLineToggle', \"Use zero-based offset\"),\n\t\t\ticon: Codicon.symbolArray,\n\t\t\tisChecked: this.useZeroBasedOffset.value,\n\t\t\tinputActiveOptionBorder: asCssVariable(inputActiveOptionBorder),\n\t\t\tinputActiveOptionForeground: asCssVariable(inputActiveOptionForeground),\n\t\t\tinputActiveOptionBackground: asCssVariable(inputActiveOptionBackground)\n\t\t});\n\n\t\tdisposables.add(\n\t\t\ttoggle.onChange(() => {\n\t\t\t\tthis.useZeroBasedOffset.value = !this.useZeroBasedOffset.value;\n\t\t\t\tupdatePickerAndEditor();\n\t\t\t}));\n\n\t\tpicker.toggles = [toggle];\n\n\t\tupdatePickerAndEditor();\n\t\tdisposables.add(picker.onDidChangeValue(() => updatePickerAndEditor()));\n\n\t\t// Adjust line number visibility as needed\n\t\tconst codeEditor = getCodeEditor(editor);\n\t\tif (codeEditor) {\n\t\t\tconst options = codeEditor.getOptions();\n\t\t\tconst lineNumbers = options.get(EditorOption.lineNumbers);\n\t\t\tif (lineNumbers.renderType === RenderLineNumbersType.Relative) {\n\t\t\t\tcodeEditor.updateOptions({ lineNumbers: 'on' });\n\n\t\t\t\tdisposables.add(toDisposable(() => codeEditor.updateOptions({ lineNumbers: 'relative' })));\n\t\t\t}\n\t\t}\n\n\t\treturn disposables;\n\t}\n\n\tprivate toRange(lineNumber = 1, column = 1): IRange {\n\t\treturn {\n\t\t\tstartLineNumber: lineNumber,\n\t\t\tstartColumn: column,\n\t\t\tendLineNumber: lineNumber,\n\t\t\tendColumn: column\n\t\t};\n\t}\n\n\tprivate parsePosition(editor: IEditor, value: string): IPosition {\n\n\t\t// Support ::<offset> notation to navigate to a specific offset in the model.\n\t\tif (value.startsWith(':')) {\n\t\t\tlet offset = parseInt(value.substring(1), 10);\n\t\t\tif (!isNaN(offset)) {\n\t\t\t\tconst model = this.getModel(editor);\n\t\t\t\tif (model) {\n\t\t\t\t\tconst reverse = offset < 0;\n\t\t\t\t\tif (!this.useZeroBasedOffset.value) {\n\t\t\t\t\t\t// Convert 1-based offset to model's 0-based.\n\t\t\t\t\t\toffset -= Math.sign(offset);\n\t\t\t\t\t}\n\t\t\t\t\tif (reverse) {\n\t\t\t\t\t\t// Offset from the end of the buffer\n\t\t\t\t\t\toffset += model.getValueLength();\n\t\t\t\t\t}\n\t\t\t\t\treturn model.getPositionAt(offset);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Support line-col formats of `line,col`, `line:col`, `line#col`\n\t\tconst numbers = value.split(/,|:|#/).map(part => parseInt(part, 10)).filter(part => !isNaN(part));\n\t\tconst endLine = this.lineCount(editor) + 1;\n\n\t\treturn {\n\t\t\tlineNumber: numbers[0] > 0 ? numbers[0] : endLine + numbers[0],\n\t\t\tcolumn: numbers[1]\n\t\t};\n\t}\n\n\tprivate getPickLabel(editor: IEditor, lineNumber: number, column: number | undefined, inOffsetMode: boolean): string {\n\n\t\t// Location valid: indicate this as picker label\n\t\tif (this.isValidLineNumber(editor, lineNumber)) {\n\t\t\tif (this.isValidColumn(editor, lineNumber, column)) {\n\t\t\t\treturn localize('gotoLineColumnLabel', \"Go to line {0} and character {1}.\", lineNumber, column);\n\t\t\t}\n\n\t\t\treturn localize('gotoLineLabel', \"Go to line {0}.\", lineNumber);\n\t\t}\n\n\t\t// Location invalid: show generic label\n\t\tconst position = editor.getPosition() || { lineNumber: 1, column: 1 };\n\n\t\t// When in offset mode, prompt for an offset.\n\t\tif (inOffsetMode) {\n\t\t\treturn localize('gotoLineOffsetLabel', \"Current Line: {0}, Character: {1}. Type a character offset to navigate to.\", position.lineNumber, position.column);\n\t\t}\n\n\t\tconst lineCount = this.lineCount(editor);\n\t\tif (lineCount > 1) {\n\t\t\treturn localize('gotoLineLabelEmptyWithLimit', \"Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.\", position.lineNumber, position.column, lineCount);\n\t\t}\n\n\t\treturn localize('gotoLineLabelEmpty', \"Current Line: {0}, Character: {1}. Type a line number to navigate to.\", position.lineNumber, position.column);\n\t}\n\n\tprivate isValidLineNumber(editor: IEditor, lineNumber: number | undefined): boolean {\n\t\tif (!lineNumber || typeof lineNumber !== 'number') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn lineNumber > 0 && lineNumber <= this.lineCount(editor);\n\t}\n\n\tprivate isValidColumn(editor: IEditor, lineNumber: number, column: number | undefined): boolean {\n\t\tif (!column || typeof column !== 'number') {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst model = this.getModel(editor);\n\t\tif (!model) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst positionCandidate = { lineNumber, column };\n\n\t\treturn model.validatePosition(positionCandidate).equals(positionCandidate);\n\t}\n\n\tprivate lineCount(editor: IEditor): number {\n\t\treturn this.getModel(editor)?.getLineCount() ?? 0;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAEtE,OAAO,EAAE,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AC,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnD,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,UAAU,GAAG,CAAC,IAAI,UAAU,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/D,CAAC;IAEO,aAAa,CAAC,MAAe,EAAE,UAAkB,EAAE,MAA0B;QACpF,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC3C,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,iBAAiB,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAEjD,OAAO,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC5E,CAAC;IAEO,SAAS,CAAC,MAAe;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC","file":"gotoLineQuickAccess.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 { Toggle } from '../../../../base/browser/ui/toggle/toggle.js';\nimport { CancellationToken } from '../../../../base/common/cancellation.js';\nimport { Codicon } from '../../../../base/common/codicons.js';\nimport { Disposable, DisposableStore, IDisposable, toDisposable } from '../../../../base/common/lifecycle.js';\nimport { localize } from '../../../../nls.js';\nimport { IQuickPick, IQuickPickItem } from '../../../../platform/quickinput/common/quickInput.js';\nimport { inputActiveOptionBackground, inputActiveOptionBorder, inputActiveOptionForeground } from '../../../../platform/theme/common/colors/inputColors.js';\nimport { asCssVariable } from '../../../../platform/theme/common/colorUtils.js';\nimport { getCodeEditor } from '../../../browser/editorBrowser.js';\nimport { EditorOption, RenderLineNumbersType } from '../../../common/config/editorOptions.js';\nimport { IPosition } from '../../../common/core/position.js';\nimport { IRange } from '../../../common/core/range.js';\nimport { IEditor, ScrollType } from '../../../common/editorCommon.js';\nimport { AbstractEditorNavigationQuickAccessProvider, IQuickAccessTextEditorContext } from './editorNavigationQuickAccess.js';\n\ninterface IGotoLineQuickPickItem extends IQuickPickItem, Partial<IPosition> { }\n\nexport abstract class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigationQuickAccessProvider {\n\n\tstatic PREFIX = ':';\n\n\tconstructor(private useZeroBasedOffset: { value: boolean } = { value: false }) {\n\t\tsuper({ canAcceptInBackground: true });\n\t}\n\n\tprotected provideWithoutTextEditor(picker: IQuickPick<IGotoLineQuickPickItem, { useSeparators: true }>): IDisposable {\n\t\tconst label = localize('cannotRunGotoLine', \"Open a text editor first to go to a line.\");\n\n\t\tpicker.items = [{ label }];\n\t\tpicker.ariaLabel = label;\n\n\t\treturn Disposable.None;\n\t}\n\n\tprotected provideWithTextEditor(context: IQuickAccessTextEditorContext, picker: IQuickPick<IGotoLineQuickPickItem, { useSeparators: true }>, token: CancellationToken): IDisposable {\n\t\tconst editor = context.editor;\n\t\tconst disposables = new DisposableStore();\n\n\t\t// Goto line once picked\n\t\tdisposables.add(picker.onDidAccept(event => {\n\t\t\tconst [item] = picker.selectedItems;\n\t\t\tif (item) {\n\t\t\t\tif (!this.isValidLineNumber(editor, item.lineNumber)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.gotoLocation(context, { range: this.toRange(item.lineNumber, item.column), keyMods: picker.keyMods, preserveFocus: event.inBackground });\n\n\t\t\t\tif (!event.inBackground) {\n\t\t\t\t\tpicker.hide();\n\t\t\t\t}\n\t\t\t}\n\t\t}));\n\n\t\t// React to picker changes\n\t\tconst updatePickerAndEditor = () => {\n\t\t\tconst inputText = picker.value.trim().substring(AbstractGotoLineQuickAccessProvider.PREFIX.length);\n\t\t\tconst inOffsetMode = inputText.startsWith(':');\n\t\t\tconst position = this.parsePosition(editor, inputText);\n\t\t\tconst label = this.getPickLabel(editor, position.lineNumber, position.column, inOffsetMode);\n\n\t\t\t// Show toggle only when input text starts with '::'.\n\t\t\ttoggle.visible = inOffsetMode;\n\n\t\t\t// Picker\n\t\t\tpicker.items = [{\n\t\t\t\tlineNumber: position.lineNumber,\n\t\t\t\tcolumn: position.column,\n\t\t\t\tlabel,\n\t\t\t\tdetail: inputText.length ?\n\t\t\t\t\tundefined : // Don't show hint once the user has started typing.\n\t\t\t\t\tlocalize('gotoLineQuickAccessDescription', \"Use :line[:column] or ::offset to go to a position. Negative values are counted from the end.\")\n\t\t\t}];\n\n\t\t\t// ARIA Label\n\t\t\tpicker.ariaLabel = label;\n\n\t\t\t// Clear decorations for invalid range\n\t\t\tif (!this.isValidLineNumber(editor, position.lineNumber)) {\n\t\t\t\tthis.clearDecorations(editor);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Reveal\n\t\t\tconst range = this.toRange(position.lineNumber, position.column);\n\t\t\teditor.revealRangeInCenter(range, ScrollType.Smooth);\n\n\t\t\t// Decorate\n\t\t\tthis.addDecorations(editor, range);\n\t\t};\n\n\t\t// Add a toggle to switch between 1- and 0-based offsets.\n\t\tconst toggle = new Toggle({\n\t\t\ttitle: localize('gotoLineToggle', \"Use zero-based offset\"),\n\t\t\ticon: Codicon.indexZero,\n\t\t\tisChecked: this.useZeroBasedOffset.value,\n\t\t\tinputActiveOptionBorder: asCssVariable(inputActiveOptionBorder),\n\t\t\tinputActiveOptionForeground: asCssVariable(inputActiveOptionForeground),\n\t\t\tinputActiveOptionBackground: asCssVariable(inputActiveOptionBackground)\n\t\t});\n\n\t\tdisposables.add(\n\t\t\ttoggle.onChange(() => {\n\t\t\t\tthis.useZeroBasedOffset.value = !this.useZeroBasedOffset.value;\n\t\t\t\tupdatePickerAndEditor();\n\t\t\t}));\n\n\t\tpicker.toggles = [toggle];\n\n\t\tupdatePickerAndEditor();\n\t\tdisposables.add(picker.onDidChangeValue(() => updatePickerAndEditor()));\n\n\t\t// Adjust line number visibility as needed\n\t\tconst codeEditor = getCodeEditor(editor);\n\t\tif (codeEditor) {\n\t\t\tconst options = codeEditor.getOptions();\n\t\t\tconst lineNumbers = options.get(EditorOption.lineNumbers);\n\t\t\tif (lineNumbers.renderType === RenderLineNumbersType.Relative) {\n\t\t\t\tcodeEditor.updateOptions({ lineNumbers: 'on' });\n\n\t\t\t\tdisposables.add(toDisposable(() => codeEditor.updateOptions({ lineNumbers: 'relative' })));\n\t\t\t}\n\t\t}\n\n\t\treturn disposables;\n\t}\n\n\tprivate toRange(lineNumber = 1, column = 1): IRange {\n\t\treturn {\n\t\t\tstartLineNumber: lineNumber,\n\t\t\tstartColumn: column,\n\t\t\tendLineNumber: lineNumber,\n\t\t\tendColumn: column\n\t\t};\n\t}\n\n\tprotected parsePosition(editor: IEditor, value: string): IPosition {\n\t\tconst model = this.getModel(editor);\n\n\t\t// Support ::<offset> notation to navigate to a specific offset in the model.\n\t\tif (value.startsWith(':')) {\n\t\t\tlet offset = parseInt(value.substring(1), 10);\n\t\t\tif (!isNaN(offset) && model) {\n\t\t\t\tconst reverse = offset < 0;\n\t\t\t\tif (!this.useZeroBasedOffset.value) {\n\t\t\t\t\t// Convert 1-based offset to model's 0-based.\n\t\t\t\t\toffset -= Math.sign(offset);\n\t\t\t\t}\n\t\t\t\tif (reverse) {\n\t\t\t\t\t// Offset from the end of the buffer\n\t\t\t\t\toffset += model.getValueLength();\n\t\t\t\t}\n\t\t\t\treturn model.getPositionAt(offset);\n\t\t\t}\n\t\t}\n\n\t\t// Support line-col formats of `line,col`, `line:col`, `line#col`\n\t\tlet [lineNumber, column] = value.split(/,|:|#/).map(part => parseInt(part, 10)).filter(part => !isNaN(part));\n\n\t\t// Handle negative line numbers and clip to valid range.\n\t\tconst maxLine = (model?.getLineCount() ?? 0) + 1;\n\t\tlineNumber = lineNumber >= 0 ? lineNumber : maxLine + lineNumber;\n\t\tlineNumber = Math.min(Math.max(1, lineNumber), maxLine);\n\n\t\t// Handle negative column numbers and clip to valid range.\n\t\tif (column !== undefined && model) {\n\t\t\tconst maxColumn = model.getLineMaxColumn(lineNumber);\n\t\t\tcolumn = column >= 0 ? column : maxColumn + column;\n\t\t\tcolumn = Math.min(Math.max(1, column), maxColumn);\n\t\t}\n\n\t\treturn { lineNumber, column };\n\t}\n\n\tprivate getPickLabel(editor: IEditor, lineNumber: number, column: number | undefined, inOffsetMode: boolean): string {\n\n\t\t// Location valid: indicate this as picker label\n\t\tif (this.isValidLineNumber(editor, lineNumber)) {\n\t\t\tif (this.isValidColumn(editor, lineNumber, column)) {\n\t\t\t\treturn localize('gotoLineColumnLabel', \"Go to line {0} and character {1}.\", lineNumber, column);\n\t\t\t}\n\n\t\t\treturn localize('gotoLineLabel', \"Go to line {0}.\", lineNumber);\n\t\t}\n\n\t\t// Location invalid: show generic label\n\t\tconst position = editor.getPosition() || { lineNumber: 1, column: 1 };\n\n\t\t// When in offset mode, prompt for an offset.\n\t\tif (inOffsetMode) {\n\t\t\treturn localize('gotoLineOffsetLabel', \"Current Line: {0}, Character: {1}. Type a character offset to navigate to.\", position.lineNumber, position.column);\n\t\t}\n\n\t\tconst lineCount = this.lineCount(editor);\n\t\tif (lineCount > 1) {\n\t\t\treturn localize('gotoLineLabelEmptyWithLimit', \"Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.\", position.lineNumber, position.column, lineCount);\n\t\t}\n\n\t\treturn localize('gotoLineLabelEmpty', \"Current Line: {0}, Character: {1}. Type a line number to navigate to.\", position.lineNumber, position.column);\n\t}\n\n\tprivate isValidLineNumber(editor: IEditor, lineNumber: number | undefined): boolean {\n\t\tif (!lineNumber || typeof lineNumber !== 'number') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn lineNumber > 0 && lineNumber <= this.lineCount(editor);\n\t}\n\n\tprivate isValidColumn(editor: IEditor, lineNumber: number, column: number | undefined): boolean {\n\t\tif (!column || typeof column !== 'number') {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst model = this.getModel(editor);\n\t\tif (!model) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst positionCandidate = { lineNumber, column };\n\n\t\treturn model.validatePosition(positionCandidate).equals(positionCandidate);\n\t}\n\n\tprivate lineCount(editor: IEditor): number {\n\t\treturn this.getModel(editor)?.getLineCount() ?? 0;\n\t}\n}\n"]}
@@ -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(1334, "To go to a symbol, first open a text editor with symbol information."));
42
+ this.provideLabelPick(picker, localize(1338, "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(1335, "The active text editor does not provide symbol information."));
63
+ this.provideLabelPick(picker, localize(1339, "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(1336, "No matching editor symbols"));
149
+ this.provideLabelPick(picker, localize(1340, "No matching editor symbols"));
150
150
  }
151
151
  else {
152
- this.provideLabelPick(picker, localize(1337, "No editor symbols"));
152
+ this.provideLabelPick(picker, localize(1341, "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(1338, "Open to the Side") : localize(1339, "Open to the Bottom")
199
+ tooltip: openSideBySideDirection === 'right' ? localize(1342, "Open to the Side") : localize(1343, "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(1340, "symbols ({0})", filteredSymbolPicks.length), type: 'separator' },
315
+ { label: localize(1344, "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(1341, "properties ({0})");
365
+ const FALLBACK_NLS_SYMBOL_KIND = localize(1345, "properties ({0})");
366
366
  const NLS_SYMBOL_KIND_CACHE = {
367
- [5 /* SymbolKind.Method */]: localize(1342, "methods ({0})"),
368
- [11 /* SymbolKind.Function */]: localize(1343, "functions ({0})"),
369
- [8 /* SymbolKind.Constructor */]: localize(1344, "constructors ({0})"),
370
- [12 /* SymbolKind.Variable */]: localize(1345, "variables ({0})"),
371
- [4 /* SymbolKind.Class */]: localize(1346, "classes ({0})"),
372
- [22 /* SymbolKind.Struct */]: localize(1347, "structs ({0})"),
373
- [23 /* SymbolKind.Event */]: localize(1348, "events ({0})"),
374
- [24 /* SymbolKind.Operator */]: localize(1349, "operators ({0})"),
375
- [10 /* SymbolKind.Interface */]: localize(1350, "interfaces ({0})"),
376
- [2 /* SymbolKind.Namespace */]: localize(1351, "namespaces ({0})"),
377
- [3 /* SymbolKind.Package */]: localize(1352, "packages ({0})"),
378
- [25 /* SymbolKind.TypeParameter */]: localize(1353, "type parameters ({0})"),
379
- [1 /* SymbolKind.Module */]: localize(1354, "modules ({0})"),
380
- [6 /* SymbolKind.Property */]: localize(1355, "properties ({0})"),
381
- [9 /* SymbolKind.Enum */]: localize(1356, "enumerations ({0})"),
382
- [21 /* SymbolKind.EnumMember */]: localize(1357, "enumeration members ({0})"),
383
- [14 /* SymbolKind.String */]: localize(1358, "strings ({0})"),
384
- [0 /* SymbolKind.File */]: localize(1359, "files ({0})"),
385
- [17 /* SymbolKind.Array */]: localize(1360, "arrays ({0})"),
386
- [15 /* SymbolKind.Number */]: localize(1361, "numbers ({0})"),
387
- [16 /* SymbolKind.Boolean */]: localize(1362, "booleans ({0})"),
388
- [18 /* SymbolKind.Object */]: localize(1363, "objects ({0})"),
389
- [19 /* SymbolKind.Key */]: localize(1364, "keys ({0})"),
390
- [7 /* SymbolKind.Field */]: localize(1365, "fields ({0})"),
391
- [13 /* SymbolKind.Constant */]: localize(1366, "constants ({0})")
367
+ [5 /* SymbolKind.Method */]: localize(1346, "methods ({0})"),
368
+ [11 /* SymbolKind.Function */]: localize(1347, "functions ({0})"),
369
+ [8 /* SymbolKind.Constructor */]: localize(1348, "constructors ({0})"),
370
+ [12 /* SymbolKind.Variable */]: localize(1349, "variables ({0})"),
371
+ [4 /* SymbolKind.Class */]: localize(1350, "classes ({0})"),
372
+ [22 /* SymbolKind.Struct */]: localize(1351, "structs ({0})"),
373
+ [23 /* SymbolKind.Event */]: localize(1352, "events ({0})"),
374
+ [24 /* SymbolKind.Operator */]: localize(1353, "operators ({0})"),
375
+ [10 /* SymbolKind.Interface */]: localize(1354, "interfaces ({0})"),
376
+ [2 /* SymbolKind.Namespace */]: localize(1355, "namespaces ({0})"),
377
+ [3 /* SymbolKind.Package */]: localize(1356, "packages ({0})"),
378
+ [25 /* SymbolKind.TypeParameter */]: localize(1357, "type parameters ({0})"),
379
+ [1 /* SymbolKind.Module */]: localize(1358, "modules ({0})"),
380
+ [6 /* SymbolKind.Property */]: localize(1359, "properties ({0})"),
381
+ [9 /* SymbolKind.Enum */]: localize(1360, "enumerations ({0})"),
382
+ [21 /* SymbolKind.EnumMember */]: localize(1361, "enumeration members ({0})"),
383
+ [14 /* SymbolKind.String */]: localize(1362, "strings ({0})"),
384
+ [0 /* SymbolKind.File */]: localize(1363, "files ({0})"),
385
+ [17 /* SymbolKind.Array */]: localize(1364, "arrays ({0})"),
386
+ [15 /* SymbolKind.Number */]: localize(1365, "numbers ({0})"),
387
+ [16 /* SymbolKind.Boolean */]: localize(1366, "booleans ({0})"),
388
+ [18 /* SymbolKind.Object */]: localize(1367, "objects ({0})"),
389
+ [19 /* SymbolKind.Key */]: localize(1368, "keys ({0})"),
390
+ [7 /* SymbolKind.Field */]: localize(1369, "fields ({0})"),
391
+ [13 /* SymbolKind.Constant */]: localize(1370, "constants ({0})")
392
392
  };
393
393
  //#endregion
394
394
  //# sourceMappingURL=gotoSymbolQuickAccess.js.map
@@ -20,10 +20,10 @@ export class ReadOnlyMessageController extends Disposable {
20
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(1367, "Cannot edit in read-only input"));
23
+ message = new MarkdownString(nls.localize(1371, "Cannot edit in read-only input"));
24
24
  }
25
25
  else {
26
- message = new MarkdownString(nls.localize(1368, "Cannot edit in read-only editor"));
26
+ message = new MarkdownString(nls.localize(1372, "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(1369, "No result.")), token);
102
+ return this._provideRenameEdits(newName, i + 1, rejects.concat(nls.localize(1373, "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(1370, "An unknown error occurred while resolving rename location"), position);
175
+ MessageController.get(this.editor)?.showMessage(e || nls.localize(1374, "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(1371, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName),
243
+ label: nls.localize(1375, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName),
244
244
  code: 'undoredo.rename',
245
- quotableLabel: nls.localize(1372, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName),
245
+ quotableLabel: nls.localize(1376, "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(1373, "Successfully renamed '{0}' to '{1}'. Summary: {2}", loc.text, inputFieldResult.newName, result.ariaSummary));
251
+ alert(nls.localize(1377, "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(1374, "Rename failed to apply edits"));
255
+ this._notificationService.error(nls.localize(1378, "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(1375, "Rename failed to compute edits"));
260
+ this._notificationService.error(nls.localize(1379, "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(1377, "Rename Symbol"),
296
+ label: nls.localize2(1381, "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(1378, "Focus Next Rename Suggestion"),
376
+ ...nls.localize2(1382, "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(1379, "Focus Previous Rename Suggestion"),
404
+ ...nls.localize2(1383, "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(1376, "Enable/disable the ability to preview changes before renaming"),
449
+ description: nls.localize(1380, "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(1380, "Whether the rename input widget is visible"));
43
- export const CONTEXT_RENAME_INPUT_FOCUSED = new RawContextKey('renameInputFocused', false, nls.localize(1381, "Whether the rename input widget is focused"));
42
+ export const CONTEXT_RENAME_INPUT_VISIBLE = new RawContextKey('renameInputVisible', false, nls.localize(1384, "Whether the rename input widget is visible"));
43
+ export const CONTEXT_RENAME_INPUT_FOCUSED = new RawContextKey('renameInputFocused', false, nls.localize(1385, "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(1382, "{0} to Rename, {1} to Preview", this._keybindingService.lookupKeybinding(accept)?.getLabel(), this._keybindingService.lookupKeybinding(preview)?.getLabel());
166
+ this._label.innerText = nls.localize(1386, "{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(1383, "Received {0} rename suggestions", candidates.length));
480
+ aria.status(nls.localize(1387, "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(1384, "Rename input. Type new name and press Enter to commit."));
622
+ this._inputNode.setAttribute('aria-label', nls.localize(1388, "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(1385, "Generate New Name Suggestions");
628
- this._buttonCancelHoverText = nls.localize(1386, "Cancel");
627
+ this._buttonGenHoverText = nls.localize(1389, "Generate New Name Suggestions");
628
+ this._buttonCancelHoverText = nls.localize(1390, "Cancel");
629
629
  this._buttonHoverContent = this._buttonGenHoverText;
630
630
  this._disposables.add(getBaseLayerHoverDelegate().setupDelayedHover(this._buttonNode, () => ({
631
631
  content: this._buttonHoverContent,
@@ -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(1389, "Expand Selection"),
134
+ label: nls.localize2(1393, "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(1387, "&&Expand Selection"),
148
+ title: nls.localize(1391, "&&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(1390, "Shrink Selection"),
160
+ label: nls.localize2(1394, "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(1388, "&&Shrink Selection"),
174
+ title: nls.localize(1392, "&&Shrink Selection"),
175
175
  order: 3
176
176
  }
177
177
  });
@@ -40,9 +40,9 @@ let SnippetController2 = class SnippetController2 {
40
40
  static get(editor) {
41
41
  return editor.getContribution(SnippetController2_1.ID);
42
42
  }
43
- static { this.InSnippetMode = new RawContextKey('inSnippetMode', false, localize(1391, "Whether the editor in current in snippet mode")); }
44
- static { this.HasNextTabstop = new RawContextKey('hasNextTabstop', false, localize(1392, "Whether there is a next tab stop when in snippet mode")); }
45
- static { this.HasPrevTabstop = new RawContextKey('hasPrevTabstop', false, localize(1393, "Whether there is a previous tab stop when in snippet mode")); }
43
+ static { this.InSnippetMode = new RawContextKey('inSnippetMode', false, localize(1395, "Whether the editor in current in snippet mode")); }
44
+ static { this.HasNextTabstop = new RawContextKey('hasNextTabstop', false, localize(1396, "Whether there is a next tab stop when in snippet mode")); }
45
+ static { this.HasPrevTabstop = new RawContextKey('hasPrevTabstop', false, localize(1397, "Whether there is a previous tab stop when in snippet mode")); }
46
46
  constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
47
47
  this._editor = _editor;
48
48
  this._logService = _logService;
@@ -128,7 +128,7 @@ let SnippetController2 = class SnippetController2 {
128
128
  sortText: 'a'.repeat(i + 1),
129
129
  range: activeChoice.range,
130
130
  filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
131
- command: { id: 'jumpToNextSnippetPlaceholder', title: localize(1394, 'Go to next placeholder...') }
131
+ command: { id: 'jumpToNextSnippetPlaceholder', title: localize(1398, 'Go to next placeholder...') }
132
132
  });
133
133
  }
134
134
  return { suggestions };