@codingame/monaco-vscode-view-common-service-override 7.1.0 → 8.0.0

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 (52) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +80 -149
  3. package/vscode/src/vs/workbench/browser/actions/listCommands.js +5 -7
  4. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -8
  5. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +24 -26
  6. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +6 -14
  7. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
  8. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -3
  9. package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -5
  10. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +161 -160
  11. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +13 -18
  12. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -8
  13. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -0
  14. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +2 -3
  15. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  16. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +3 -4
  17. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +6 -7
  18. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +19 -16
  19. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
  20. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -3
  21. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +2 -3
  22. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -14
  23. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -7
  24. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -5
  25. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -3
  26. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -3
  27. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +18 -24
  28. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -10
  29. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
  30. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -31
  31. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -16
  32. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -5
  33. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -15
  34. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +26 -31
  35. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +5 -7
  36. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +12 -13
  37. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -7
  38. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -3
  39. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -7
  40. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +15 -18
  41. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +5 -8
  42. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +11 -12
  43. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -7
  44. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -5
  45. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +13 -4
  46. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +6 -7
  47. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -3
  48. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
  49. package/vscode/src/vs/workbench/services/history/browser/historyService.js +16 -27
  50. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -9
  51. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -4
  52. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -3
@@ -9,7 +9,7 @@ import { registerEditorContribution, EditorContributionInstantiation, EditorActi
9
9
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
10
10
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
11
11
  import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
12
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
12
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
13
13
  import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
14
14
  import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
15
15
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
@@ -21,13 +21,12 @@ import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
21
21
  import { TypeHierarchyDirection, TypeHierarchyProviderRegistry, TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
22
22
 
23
23
  var TypeHierarchyController_1;
24
- const _moduleId = "vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution";
25
- const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localizeWithPath(_moduleId, 0, 'Whether a type hierarchy provider is available')))));
26
- const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localizeWithPath(_moduleId, 1, 'Whether type hierarchy peek is currently showing')))));
24
+ const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(4156, 'Whether a type hierarchy provider is available')))));
25
+ const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localize(4157, 'Whether type hierarchy peek is currently showing')))));
27
26
  const _ctxTypeHierarchyDirection = ( (new RawContextKey(
28
27
  'typeHierarchyDirection',
29
28
  undefined,
30
- { type: 'string', description: ( localizeWithPath(_moduleId, 2, 'whether type hierarchy shows super types or subtypes')) }
29
+ { type: 'string', description: ( localize(4158, 'whether type hierarchy shows super types or subtypes')) }
31
30
  )));
32
31
  function sanitizedDirection(candidate) {
33
32
  return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes
@@ -96,14 +95,14 @@ let TypeHierarchyController = class TypeHierarchyController {
96
95
  this._widget.showModel(model);
97
96
  }
98
97
  else {
99
- this._widget.showMessage(( localizeWithPath(_moduleId, 3, "No results")));
98
+ this._widget.showMessage(( localize(4159, "No results")));
100
99
  }
101
100
  }).catch(err => {
102
101
  if (isCancellationError(err)) {
103
102
  this.endTypeHierarchy();
104
103
  return;
105
104
  }
106
- this._widget.showMessage(( localizeWithPath(_moduleId, 4, "Failed to show type hierarchy")));
105
+ this._widget.showMessage(( localize(4160, "Failed to show type hierarchy")));
107
106
  });
108
107
  }
109
108
  async startTypeHierarchyFromTypeHierarchy() {
@@ -148,7 +147,7 @@ registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
148
147
  constructor() {
149
148
  super({
150
149
  id: 'editor.showTypeHierarchy',
151
- title: ( localize2WithPath(_moduleId, 5, 'Peek Type Hierarchy')),
150
+ title: ( localize2(4161, 'Peek Type Hierarchy')),
152
151
  menu: {
153
152
  id: MenuId.EditorContextPeek,
154
153
  group: 'navigation',
@@ -167,7 +166,7 @@ registerAction2(class extends EditorAction2 {
167
166
  constructor() {
168
167
  super({
169
168
  id: 'editor.showSupertypes',
170
- title: ( localize2WithPath(_moduleId, 6, 'Show Supertypes')),
169
+ title: ( localize2(4162, 'Show Supertypes')),
171
170
  icon: Codicon.typeHierarchySuper,
172
171
  precondition: ( (ContextKeyExpr.and(
173
172
  _ctxTypeHierarchyVisible,
@@ -192,7 +191,7 @@ registerAction2(class extends EditorAction2 {
192
191
  constructor() {
193
192
  super({
194
193
  id: 'editor.showSubtypes',
195
- title: ( localize2WithPath(_moduleId, 7, 'Show Subtypes')),
194
+ title: ( localize2(4163, 'Show Subtypes')),
196
195
  icon: Codicon.typeHierarchySub,
197
196
  precondition: ( (ContextKeyExpr.and(
198
197
  _ctxTypeHierarchyVisible,
@@ -217,7 +216,7 @@ registerAction2(class extends EditorAction2 {
217
216
  constructor() {
218
217
  super({
219
218
  id: 'editor.refocusTypeHierarchy',
220
- title: ( localize2WithPath(_moduleId, 8, 'Refocus Type Hierarchy')),
219
+ title: ( localize2(4164, 'Refocus Type Hierarchy')),
221
220
  precondition: _ctxTypeHierarchyVisible,
222
221
  keybinding: {
223
222
  weight: KeybindingWeight.WorkbenchContrib,
@@ -233,7 +232,7 @@ registerAction2(class extends EditorAction2 {
233
232
  constructor() {
234
233
  super({
235
234
  id: 'editor.closeTypeHierarchy',
236
- title: ( localizeWithPath(_moduleId, 9, 'Close')),
235
+ title: ( localize(4165, 'Close')),
237
236
  icon: Codicon.close,
238
237
  precondition: _ctxTypeHierarchyVisible,
239
238
  keybinding: {
@@ -12,7 +12,7 @@ import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
12
12
  import { TrackedRangeStickiness, OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
13
13
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
14
14
  import { PeekViewWidget, peekViewBorder, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground, peekViewResultsBackground, peekViewEditorMatchHighlight, IPeekViewService } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
15
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
15
+ import { localize } from 'vscode/vscode/vs/nls';
16
16
  import { createAndFillInActionBarActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
17
17
  import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
18
18
  import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
@@ -29,7 +29,6 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
29
29
  import { Orientation } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
30
30
 
31
31
  var TypeHierarchyTreePeekWidget_1;
32
- const _moduleId = "vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek";
33
32
  var State;
34
33
  ( ((function(State) {
35
34
  State["Loading"] = "loading";
@@ -263,13 +262,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
263
262
  }
264
263
  this._previewDisposable.add(value);
265
264
  const title = this._direction === TypeHierarchyDirection.Supertypes
266
- ? ( localizeWithPath(_moduleId, 0, "Supertypes of '{0}'", element.model.root.name))
267
- : ( localizeWithPath(_moduleId, 1, "Subtypes of '{0}'", element.model.root.name));
265
+ ? ( localize(9530, "Supertypes of '{0}'", element.model.root.name))
266
+ : ( localize(9531, "Subtypes of '{0}'", element.model.root.name));
268
267
  this.setTitle(title);
269
268
  }
270
269
  showLoading() {
271
270
  this._parent.dataset['state'] = State.Loading;
272
- this.setTitle(( localizeWithPath(_moduleId, 2, "Loading...")));
271
+ this.setTitle(( localize(9532, "Loading...")));
273
272
  this._show();
274
273
  }
275
274
  showMessage(message) {
@@ -288,8 +287,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
288
287
  await this._tree.expand(root.element);
289
288
  if (root.children.length === 0) {
290
289
  this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
291
- ? ( localizeWithPath(_moduleId, 3, "No supertypes of '{0}'", model.root.name))
292
- : ( localizeWithPath(_moduleId, 4, "No subtypes of '{0}'", model.root.name)));
290
+ ? ( localize(9533, "No supertypes of '{0}'", model.root.name))
291
+ : ( localize(9534, "No subtypes of '{0}'", model.root.name)));
293
292
  }
294
293
  else {
295
294
  this._parent.dataset['state'] = State.Data;
@@ -5,10 +5,9 @@ import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel'
5
5
  import { SymbolTag, SymbolKinds } from 'vscode/vscode/vs/editor/common/languages';
6
6
  import { compare } from 'vscode/vscode/vs/base/common/strings';
7
7
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
8
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
8
+ import { localize } from 'vscode/vscode/vs/nls';
9
9
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
10
10
 
11
- const _moduleId = "vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree";
12
11
  class Type {
13
12
  constructor(item, model, parent) {
14
13
  this.item = item;
@@ -117,14 +116,14 @@ class AccessibilityProvider {
117
116
  this.getDirection = getDirection;
118
117
  }
119
118
  getWidgetAriaLabel() {
120
- return ( localizeWithPath(_moduleId, 0, "Type Hierarchy"));
119
+ return ( localize(11191, "Type Hierarchy"));
121
120
  }
122
121
  getAriaLabel(element) {
123
122
  if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
124
- return ( localizeWithPath(_moduleId, 1, "supertypes of {0}", element.item.name));
123
+ return ( localize(11192, "supertypes of {0}", element.item.name));
125
124
  }
126
125
  else {
127
- return ( localizeWithPath(_moduleId, 2, "subtypes of {0}", element.item.name));
126
+ return ( localize(11193, "subtypes of {0}", element.item.name));
128
127
  }
129
128
  }
130
129
  }
@@ -9,7 +9,7 @@ import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle
9
9
  import { FileAccess, COI } from 'vscode/vscode/vs/base/common/network';
10
10
  import { URI } from 'vscode/vscode/vs/base/common/uri';
11
11
  import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
12
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
12
+ import { localize } from 'vscode/vscode/vs/nls';
13
13
  import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
14
14
  import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
15
15
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
@@ -29,7 +29,6 @@ import { WebviewFindWidget } from './webviewFindWidget.js';
29
29
  import { decodeAuthority, webviewRootResourceAuthority, webviewGenericCspSource } from 'vscode/vscode/vs/workbench/contrib/webview/common/webview';
30
30
  import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
31
31
 
32
- const _moduleId = "vs/workbench/contrib/webview/browser/webviewElement";
33
32
  var WebviewState;
34
33
  ( ((function(WebviewState) {
35
34
  let Type;
@@ -159,7 +158,7 @@ let WebviewElement = class WebviewElement extends Disposable {
159
158
  this._hasFindResult.fire(didFind);
160
159
  }));
161
160
  this._register(this.on('fatal-error', (e) => {
162
- notificationService.error(( localizeWithPath(_moduleId, 0, "Error loading webview: {0}", e.message)));
161
+ notificationService.error(( localize(9517, "Error loading webview: {0}", e.message)));
163
162
  this._onFatalError.fire({ message: e.message });
164
163
  }));
165
164
  this._register(this.on('did-keydown', (data) => {
@@ -190,6 +189,7 @@ let WebviewElement = class WebviewElement extends Disposable {
190
189
  y: elementBox.y + data.clientY
191
190
  })
192
191
  });
192
+ this._send('set-context-menu-visible', { visible: true });
193
193
  }));
194
194
  this._register(this.on('load-resource', async (entry) => {
195
195
  try {
@@ -216,7 +216,6 @@ let WebviewElement = class WebviewElement extends Disposable {
216
216
  this._register(Event.runAndSubscribe(webviewThemeDataProvider.onThemeDataChanged, () => this.style()));
217
217
  this._register(_accessibilityService.onDidChangeReducedMotion(() => this.style()));
218
218
  this._register(_accessibilityService.onDidChangeScreenReaderOptimized(() => this.style()));
219
- this._register(contextMenuService.onDidShowContextMenu(() => this._send('set-context-menu-visible', { visible: true })));
220
219
  this._register(contextMenuService.onDidHideContextMenu(() => this._send('set-context-menu-visible', { visible: false })));
221
220
  this._confirmBeforeClose = configurationService.getValue('window.confirmBeforeClose');
222
221
  this._register(configurationService.onDidChangeConfiguration(e => {
@@ -228,6 +227,9 @@ let WebviewElement = class WebviewElement extends Disposable {
228
227
  this._register(this.on('drag-start', () => {
229
228
  this._startBlockingIframeDragEvents();
230
229
  }));
230
+ this._register(this.on('drag', (event) => {
231
+ this.handleDragEvent('drag', event);
232
+ }));
231
233
  if (initInfo.options.enableFindWidget) {
232
234
  this._webviewFindWidget = this._register(instantiationService.createInstance(WebviewFindWidget, this));
233
235
  }
@@ -497,6 +499,13 @@ let WebviewElement = class WebviewElement extends Disposable {
497
499
  });
498
500
  this.window?.dispatchEvent(emulatedKeyboardEvent);
499
501
  }
502
+ handleDragEvent(type, event) {
503
+ const emulatedDragEvent = ( (new DragEvent(type, event)));
504
+ Object.defineProperty(emulatedDragEvent, 'target', {
505
+ get: () => this.element,
506
+ });
507
+ this.window?.dispatchEvent(emulatedDragEvent);
508
+ }
500
509
  windowDidDragStart() {
501
510
  this._startBlockingIframeDragEvents();
502
511
  }
@@ -1,6 +1,6 @@
1
1
  import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
2
2
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
3
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
4
4
  import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
5
5
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
6
6
  import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
@@ -11,14 +11,13 @@ import { WebviewEditor } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/b
11
11
  import { WebviewInput } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
12
12
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
13
13
 
14
- const _moduleId = "vs/workbench/contrib/webviewPanel/browser/webviewCommands";
15
14
  const webviewActiveContextKeyExpr = ( (ContextKeyExpr.and(
16
15
  (ContextKeyExpr.equals('activeEditor', WebviewEditor.ID)),
17
16
  (EditorContextKeys.focus.toNegated())
18
17
  )));
19
18
  class ShowWebViewEditorFindWidgetAction extends Action2 {
20
19
  static { this.ID = 'editor.action.webvieweditor.showFind'; }
21
- static { this.LABEL = ( localizeWithPath(_moduleId, 0, "Show find")); }
20
+ static { this.LABEL = ( localize(9736, "Show find")); }
22
21
  constructor() {
23
22
  super({
24
23
  id: ShowWebViewEditorFindWidgetAction.ID,
@@ -39,7 +38,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
39
38
  }
40
39
  class HideWebViewEditorFindCommand extends Action2 {
41
40
  static { this.ID = 'editor.action.webvieweditor.hideFind'; }
42
- static { this.LABEL = ( localizeWithPath(_moduleId, 1, "Stop find")); }
41
+ static { this.LABEL = ( localize(9737, "Stop find")); }
43
42
  constructor() {
44
43
  super({
45
44
  id: HideWebViewEditorFindCommand.ID,
@@ -60,7 +59,7 @@ class HideWebViewEditorFindCommand extends Action2 {
60
59
  }
61
60
  class WebViewEditorFindNextCommand extends Action2 {
62
61
  static { this.ID = 'editor.action.webvieweditor.findNext'; }
63
- static { this.LABEL = ( localizeWithPath(_moduleId, 2, 'Find next')); }
62
+ static { this.LABEL = ( localize(9738, 'Find next')); }
64
63
  constructor() {
65
64
  super({
66
65
  id: WebViewEditorFindNextCommand.ID,
@@ -81,7 +80,7 @@ class WebViewEditorFindNextCommand extends Action2 {
81
80
  }
82
81
  class WebViewEditorFindPreviousCommand extends Action2 {
83
82
  static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
84
- static { this.LABEL = ( localizeWithPath(_moduleId, 3, 'Find previous')); }
83
+ static { this.LABEL = ( localize(9739, 'Find previous')); }
85
84
  constructor() {
86
85
  super({
87
86
  id: WebViewEditorFindPreviousCommand.ID,
@@ -102,7 +101,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
102
101
  }
103
102
  class ReloadWebviewAction extends Action2 {
104
103
  static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
105
- static { this.LABEL = ( localize2WithPath(_moduleId, 4, "Reload Webviews")); }
104
+ static { this.LABEL = ( localize2(9740, "Reload Webviews")); }
106
105
  constructor() {
107
106
  super({
108
107
  id: ReloadWebviewAction.ID,
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
5
5
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
6
6
  import 'vscode/vscode/vs/platform/instantiation/common/extensions';
@@ -17,8 +17,7 @@ import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbench
17
17
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
18
18
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
19
19
 
20
- const _moduleId = "vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution";
21
- (( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localizeWithPath(_moduleId, 0, "webview editor"))), [( (new SyncDescriptor(WebviewInput)))]);
20
+ (( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(4347, "webview editor"))), [( (new SyncDescriptor(WebviewInput)))]);
22
21
  let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
23
22
  static { this.ID = 'workbench.contrib.webviewPanel'; }
24
23
  constructor(editorService, editorGroupService) {
@@ -12,7 +12,7 @@ import { Schemas } from 'vscode/vscode/vs/base/common/network';
12
12
  import { ResolvedStatus, globMatchesResource, editorsAssociationsSettingId, RegisteredEditorPriority, priorityToRank } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
13
13
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
14
14
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
15
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
15
+ import { localize } from 'vscode/vscode/vs/nls';
16
16
  import 'vscode/vscode/vs/platform/notification/common/notification';
17
17
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
18
18
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
@@ -27,7 +27,6 @@ import { PauseableEmitter } from 'vscode/vscode/vs/base/common/event';
27
27
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
28
28
 
29
29
  var EditorResolverService_1;
30
- const _moduleId = "vs/workbench/services/editor/browser/editorResolverService";
31
30
  let EditorResolverService = class EditorResolverService extends Disposable {
32
31
  static { EditorResolverService_1 = this; }
33
32
  static { this.configureDefaultID = 'promptOpenWith.configureDefault'; }
@@ -451,12 +450,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
451
450
  if (storedChoices[globForResource] && storedChoices[globForResource].find(editorID => editorID === currentEditor.editorId)) {
452
451
  return;
453
452
  }
454
- const handle = this.notificationService.prompt(Severity$1.Warning, ( localizeWithPath(
455
- _moduleId,
456
- 0,
457
- 'There are multiple default editors available for the resource.'
458
- )), [{
459
- label: ( localizeWithPath(_moduleId, 1, 'Configure Default')),
453
+ const handle = this.notificationService.prompt(Severity$1.Warning, ( localize(4069, 'There are multiple default editors available for the resource.')), [{
454
+ label: ( localize(4070, 'Configure Default')),
460
455
  run: async () => {
461
456
  const picked = await this.doPickEditor(untypedInput, true);
462
457
  if (!picked) {
@@ -477,7 +472,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
477
472
  }
478
473
  },
479
474
  {
480
- label: ( localizeWithPath(_moduleId, 2, 'Keep {0}', editorName)),
475
+ label: ( localize(4071, 'Keep {0}', editorName)),
481
476
  run: writeCurrentEditorsToStorage
482
477
  }
483
478
  ]);
@@ -503,9 +498,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
503
498
  }
504
499
  });
505
500
  const quickPickEntries = [];
506
- const currentlyActiveLabel = ( localizeWithPath(_moduleId, 3, "Active"));
507
- const currentDefaultLabel = ( localizeWithPath(_moduleId, 4, "Default"));
508
- const currentDefaultAndActiveLabel = ( localizeWithPath(_moduleId, 5, "Active and Default"));
501
+ const currentlyActiveLabel = ( localize(4072, "Active"));
502
+ const currentDefaultLabel = ( localize(4073, "Default"));
503
+ const currentDefaultAndActiveLabel = ( localize(4074, "Active and Default"));
509
504
  let defaultViewType = defaultSetting;
510
505
  if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
511
506
  defaultViewType = registeredEditors[1]?.editorInfo.id;
@@ -530,12 +525,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
530
525
  quickPickEntries.push(separator);
531
526
  const configureDefaultEntry = {
532
527
  id: EditorResolverService_1.configureDefaultID,
533
- label: ( localizeWithPath(
534
- _moduleId,
535
- 6,
536
- "Configure default editor for '{0}'...",
537
- `*${extname(resource)}`
538
- )),
528
+ label: ( localize(4075, "Configure default editor for '{0}'...", `*${extname(resource)}`)),
539
529
  };
540
530
  quickPickEntries.push(configureDefaultEntry);
541
531
  }
@@ -549,13 +539,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
549
539
  const editorPicks = this.mapEditorsToQuickPickEntry(resource, showDefaultPicker);
550
540
  const editorPicker = this.quickInputService.createQuickPick();
551
541
  const placeHolderMessage = showDefaultPicker ?
552
- ( localizeWithPath(
553
- _moduleId,
554
- 7,
555
- "Select new default editor for '{0}'",
556
- `*${extname(resource)}`
557
- )) :
558
- ( localizeWithPath(_moduleId, 8, "Select editor for '{0}'", basename(resource)));
542
+ ( localize(4076, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
543
+ ( localize(4077, "Select editor for '{0}'", basename(resource)));
559
544
  editorPicker.placeholder = placeHolderMessage;
560
545
  editorPicker.canAcceptInBackground = true;
561
546
  editorPicker.items = editorPicks;
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { URI } from 'vscode/vscode/vs/base/common/uri';
4
4
  import { GroupModelChangeKind, isEditorPaneWithSelection, isEditorInput, EditorResourceAccessor, EditorsOrder, EditorCloseContext, SideBySideEditor, isSideBySideEditorInput, isResourceEditorInput, EditorPaneSelectionCompareResult, EditorPaneSelectionChangeReason } from 'vscode/vscode/vs/workbench/common/editor';
5
5
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -35,7 +35,6 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
35
35
  import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
36
36
 
37
37
  var HistoryService_1, EditorNavigationStack_1;
38
- const _moduleId = "vs/workbench/services/history/browser/historyService";
39
38
  let HistoryService = class HistoryService extends Disposable {
40
39
  static { HistoryService_1 = this; }
41
40
  static { this.MOUSE_NAVIGATION_SETTING = 'workbench.editor.mouseBackForwardToNavigate'; }
@@ -56,43 +55,33 @@ let HistoryService = class HistoryService extends Disposable {
56
55
  this.activeEditorListeners = this._register(( (new DisposableStore())));
57
56
  this.lastActiveEditor = undefined;
58
57
  this.editorHelper = this.instantiationService.createInstance(EditorHelper);
59
- this.canNavigateBackContextKey = (( (new RawContextKey('canNavigateBack', false, ( localizeWithPath(_moduleId, 0, "Whether it is possible to navigate back in editor history")))))).bindTo(this.contextKeyService);
60
- this.canNavigateForwardContextKey = (( (new RawContextKey('canNavigateForward', false, ( localizeWithPath(
61
- _moduleId,
62
- 1,
63
- "Whether it is possible to navigate forward in editor history"
64
- )))))).bindTo(this.contextKeyService);
65
- this.canNavigateBackInNavigationsContextKey = (( (new RawContextKey('canNavigateBackInNavigationLocations', false, ( localizeWithPath(
66
- _moduleId,
67
- 2,
58
+ this.canNavigateBackContextKey = (( (new RawContextKey('canNavigateBack', false, ( localize(4119, "Whether it is possible to navigate back in editor history")))))).bindTo(this.contextKeyService);
59
+ this.canNavigateForwardContextKey = (( (new RawContextKey('canNavigateForward', false, ( localize(4120, "Whether it is possible to navigate forward in editor history")))))).bindTo(this.contextKeyService);
60
+ this.canNavigateBackInNavigationsContextKey = (( (new RawContextKey('canNavigateBackInNavigationLocations', false, ( localize(
61
+ 4121,
68
62
  "Whether it is possible to navigate back in editor navigation locations history"
69
63
  )))))).bindTo(this.contextKeyService);
70
- this.canNavigateForwardInNavigationsContextKey = (( (new RawContextKey('canNavigateForwardInNavigationLocations', false, ( localizeWithPath(
71
- _moduleId,
72
- 3,
64
+ this.canNavigateForwardInNavigationsContextKey = (( (new RawContextKey('canNavigateForwardInNavigationLocations', false, ( localize(
65
+ 4122,
73
66
  "Whether it is possible to navigate forward in editor navigation locations history"
74
67
  )))))).bindTo(this.contextKeyService);
75
- this.canNavigateToLastNavigationLocationContextKey = (( (new RawContextKey('canNavigateToLastNavigationLocation', false, ( localizeWithPath(
76
- _moduleId,
77
- 4,
68
+ this.canNavigateToLastNavigationLocationContextKey = (( (new RawContextKey('canNavigateToLastNavigationLocation', false, ( localize(
69
+ 4123,
78
70
  "Whether it is possible to navigate to the last editor navigation location"
79
71
  )))))).bindTo(this.contextKeyService);
80
- this.canNavigateBackInEditsContextKey = (( (new RawContextKey('canNavigateBackInEditLocations', false, ( localizeWithPath(
81
- _moduleId,
82
- 5,
72
+ this.canNavigateBackInEditsContextKey = (( (new RawContextKey('canNavigateBackInEditLocations', false, ( localize(
73
+ 4124,
83
74
  "Whether it is possible to navigate back in editor edit locations history"
84
75
  )))))).bindTo(this.contextKeyService);
85
- this.canNavigateForwardInEditsContextKey = (( (new RawContextKey('canNavigateForwardInEditLocations', false, ( localizeWithPath(
86
- _moduleId,
87
- 6,
76
+ this.canNavigateForwardInEditsContextKey = (( (new RawContextKey('canNavigateForwardInEditLocations', false, ( localize(
77
+ 4125,
88
78
  "Whether it is possible to navigate forward in editor edit locations history"
89
79
  )))))).bindTo(this.contextKeyService);
90
- this.canNavigateToLastEditLocationContextKey = (( (new RawContextKey('canNavigateToLastEditLocation', false, ( localizeWithPath(
91
- _moduleId,
92
- 7,
80
+ this.canNavigateToLastEditLocationContextKey = (( (new RawContextKey('canNavigateToLastEditLocation', false, ( localize(
81
+ 4126,
93
82
  "Whether it is possible to navigate to the last editor edit location"
94
83
  )))))).bindTo(this.contextKeyService);
95
- this.canReopenClosedEditorContextKey = (( (new RawContextKey('canReopenClosedEditor', false, ( localizeWithPath(_moduleId, 8, "Whether it is possible to reopen the last closed editor")))))).bindTo(this.contextKeyService);
84
+ this.canReopenClosedEditorContextKey = (( (new RawContextKey('canReopenClosedEditor', false, ( localize(4127, "Whether it is possible to reopen the last closed editor")))))).bindTo(this.contextKeyService);
96
85
  this._onDidChangeEditorNavigationStack = this._register(( (new Emitter())));
97
86
  this.onDidChangeEditorNavigationStack = this._onDidChangeEditorNavigationStack.event;
98
87
  this.defaultScopedEditorNavigationStack = undefined;
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import './media/progressService.css.js';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { Disposable, toDisposable, DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
5
5
  import { ProgressLocation, Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
6
6
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
@@ -29,7 +29,6 @@ import { ResultKind } from 'vscode/vscode/vs/platform/keybinding/common/keybindi
29
29
  import { IUserActivityService } from 'vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
30
30
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
31
31
 
32
- const _moduleId = "vs/workbench/services/progress/browser/progressService";
33
32
  let ProgressService = class ProgressService extends Disposable {
34
33
  constructor(activityService, paneCompositeService, viewDescriptorService, viewsService, notificationService, statusbarService, layoutService, keybindingService, userActivityService) {
35
34
  super();
@@ -132,23 +131,23 @@ let ProgressService = class ProgressService extends Disposable {
132
131
  let title;
133
132
  const source = options.source && typeof options.source !== 'string' ? options.source.label : options.source;
134
133
  if (progressTitle && progressMessage) {
135
- text = ( localizeWithPath(_moduleId, 0, "{0}: {1}", progressTitle, progressMessage));
136
- title = source ? ( localizeWithPath(_moduleId, 1, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
134
+ text = ( localize(4128, "{0}: {1}", progressTitle, progressMessage));
135
+ title = source ? ( localize(4129, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
137
136
  }
138
137
  else if (progressTitle) {
139
138
  text = progressTitle;
140
- title = source ? ( localizeWithPath(_moduleId, 2, "[{0}]: {1}", source, progressTitle)) : text;
139
+ title = source ? ( localize(4130, "[{0}]: {1}", source, progressTitle)) : text;
141
140
  }
142
141
  else if (progressMessage) {
143
142
  text = progressMessage;
144
- title = source ? ( localizeWithPath(_moduleId, 2, "[{0}]: {1}", source, progressMessage)) : text;
143
+ title = source ? ( localize(4130, "[{0}]: {1}", source, progressMessage)) : text;
145
144
  }
146
145
  else {
147
146
  this.updateWindowProgress(idx + 1);
148
147
  return;
149
148
  }
150
149
  const statusEntryProperties = {
151
- name: ( localizeWithPath(_moduleId, 3, "Progress Message")),
150
+ name: ( localize(4131, "Progress Message")),
152
151
  text,
153
152
  showProgress: options.type || true,
154
153
  ariaLabel: text,
@@ -244,7 +243,7 @@ let ProgressService = class ProgressService extends Disposable {
244
243
  if (options.cancellable) {
245
244
  const cancelAction = new (class extends Action {
246
245
  constructor() {
247
- super('progress.cancel', ( localizeWithPath(_moduleId, 4, "Cancel")), undefined, true);
246
+ super('progress.cancel', ( localize(4132, "Cancel")), undefined, true);
248
247
  }
249
248
  async run() {
250
249
  progressStateModel.cancel();
@@ -429,7 +428,7 @@ let ProgressService = class ProgressService extends Disposable {
429
428
  const createDialog = (message) => {
430
429
  const buttons = options.buttons || [];
431
430
  if (!options.sticky) {
432
- buttons.push(options.cancellable ? ( localizeWithPath(_moduleId, 4, "Cancel")) : ( localizeWithPath(_moduleId, 5, "Dismiss")));
431
+ buttons.push(options.cancellable ? ( localize(4132, "Cancel")) : ( localize(4133, "Dismiss")));
433
432
  }
434
433
  dialog = ( (new Dialog(this.layoutService.activeContainer, message, buttons, {
435
434
  type: 'pending',
@@ -16,12 +16,11 @@ import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/te
16
16
  import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
17
17
  import { getViewsStateStorageId, ViewContainerModel } from '../common/viewContainerModel.js';
18
18
  import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
19
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
19
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
20
20
  import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
21
21
  import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
22
22
 
23
23
  var ViewDescriptorService_1;
24
- const _moduleId = "vs/workbench/services/views/browser/viewDescriptorService";
25
24
  function getViewContainerStorageId(viewContainerId) { return `${viewContainerId}.state`; }
26
25
  let ViewDescriptorService = class ViewDescriptorService extends Disposable {
27
26
  static { ViewDescriptorService_1 = this; }
@@ -586,7 +585,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
586
585
  super({
587
586
  id: `${viewDescriptor.id}.removeView`,
588
587
  viewPaneContainerId: viewContainerModel.viewContainer.id,
589
- title: ( localizeWithPath(_moduleId, 0, "Hide '{0}'", viewDescriptor.name.value)),
588
+ title: ( localize(4067, "Hide '{0}'", viewDescriptor.name.value)),
590
589
  precondition: viewDescriptor.canToggleVisibility && (!viewContainerModel.isVisible(viewDescriptor.id) || viewContainerModel.visibleViewDescriptors.length > 1) ? ContextKeyExpr.true() : ( (ContextKeyExpr.false())),
591
590
  menu: [{
592
591
  id: MenuId.ViewTitleContext,
@@ -613,7 +612,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
613
612
  constructor() {
614
613
  super({
615
614
  id: `${viewContainer.id}.resetViewContainerLocation`,
616
- title: ( localize2WithPath(_moduleId, 1, "Reset Location")),
615
+ title: ( localize2(4068, "Reset Location")),
617
616
  menu: [{
618
617
  id: MenuId.ViewContainerTitleContext,
619
618
  when: ( (ContextKeyExpr.or( (ContextKeyExpr.and(
@@ -17,15 +17,14 @@ import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/comm
17
17
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
18
18
  import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
19
19
  import { CounterSet } from 'vscode/vscode/vs/base/common/map';
20
- import { localize2WithPath } from 'vscode/vscode/vs/nls';
20
+ import { localize2 } from 'vscode/vscode/vs/nls';
21
21
  import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
22
22
 
23
- const _moduleId = "vs/workbench/services/views/common/viewContainerModel";
24
23
  registerAction2(class extends Action2 {
25
24
  constructor() {
26
25
  super({
27
26
  id: '_workbench.output.showViewsLog',
28
- title: ( localize2WithPath(_moduleId, 0, "Show Views Log")),
27
+ title: ( localize2(9511, "Show Views Log")),
29
28
  category: Categories.Developer,
30
29
  f1: true
31
30
  });