@codingame/monaco-vscode-view-common-service-override 4.5.0 → 4.5.2

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 (62) hide show
  1. package/index.d.ts +1 -1
  2. package/package.json +3 -3
  3. package/vscode/src/vs/base/browser/ui/grid/grid.js +12 -12
  4. package/vscode/src/vs/base/browser/ui/grid/gridview.js +26 -26
  5. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +4 -3
  6. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +127 -220
  7. package/vscode/src/vs/workbench/browser/actions/listCommands.js +43 -44
  8. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -30
  9. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +67 -138
  10. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -36
  11. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +26 -27
  12. package/vscode/src/vs/workbench/browser/parts/compositePart.js +17 -31
  13. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +215 -764
  14. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +27 -42
  15. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +24 -23
  16. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -3
  17. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +31 -33
  18. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +51 -54
  19. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +38 -41
  20. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +21 -24
  21. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -5
  22. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +17 -20
  23. package/vscode/src/vs/workbench/browser/window.js +41 -92
  24. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +41 -78
  25. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +23 -46
  26. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +36 -27
  27. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -1
  28. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +14 -15
  30. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +10 -11
  31. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -1
  32. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +25 -52
  33. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +55 -87
  34. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +18 -48
  35. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +61 -150
  36. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -70
  37. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +9 -20
  38. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -65
  39. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +38 -113
  40. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +12 -19
  41. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +34 -75
  42. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +16 -37
  43. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +40 -43
  44. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +12 -11
  45. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +24 -61
  46. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -6
  47. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +37 -70
  48. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +23 -46
  49. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +26 -27
  50. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +2 -2
  51. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +50 -52
  52. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +18 -34
  53. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +7 -10
  54. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +2 -2
  55. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +45 -46
  56. package/vscode/src/vs/workbench/services/driver/browser/driver.js +8 -6
  57. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +45 -68
  58. package/vscode/src/vs/workbench/services/history/browser/historyService.js +95 -98
  59. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +34 -74
  60. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +69 -67
  61. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +52 -47
  62. package/viewCommon.d.ts +0 -5
@@ -23,6 +23,7 @@ import { EditorGutter } from '../editorGutter.js';
23
23
  import { ctxIsMergeResultEditor } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
24
24
  import { CodeEditorView, createSelectionsAutorun, TitleMenu } from './codeEditorView.js';
25
25
 
26
+ const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView";
26
27
  let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
27
28
  constructor(viewModel, instantiationService, _labelService, configurationService) {
28
29
  super(instantiationService, viewModel, configurationService);
@@ -34,7 +35,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
34
35
  }
35
36
  const model = viewModel.model;
36
37
  const textModel = model.resultTextModel;
37
- const result = ( new Array());
38
+ const result = ( (new Array()));
38
39
  const baseRangeWithStoreAndTouchingDiffs = join(model.modifiedBaseRanges.read(reader), model.baseResultDiffs.read(reader), (baseRange, diff) => baseRange.baseRange.touches(diff.inputRange)
39
40
  ? CompareResult.neitherLessOrGreaterThan
40
41
  : LineRange.compareByStart(baseRange.baseRange, diff.inputRange));
@@ -119,10 +120,10 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
119
120
  this.htmlElements.root.classList.add(`result`);
120
121
  this._register(autorunWithStore((reader, store) => {
121
122
  if (this.checkboxesVisible.read(reader)) {
122
- store.add(( new EditorGutter(this.editor, this.htmlElements.gutterDiv, {
123
+ store.add(( (new EditorGutter(this.editor, this.htmlElements.gutterDiv, {
123
124
  getIntersectingGutterItems: (range, reader) => [],
124
- createView: (item, target) => { throw new BugIndicatingError(); },
125
- })));
125
+ createView: (item, target) => { throw ( (new BugIndicatingError())); },
126
+ }))));
126
127
  }
127
128
  }));
128
129
  this._register(autorun(reader => {
@@ -131,14 +132,10 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
131
132
  return;
132
133
  }
133
134
  this.editor.setModel(vm.model.resultTextModel);
134
- reset(this.htmlElements.title, ...renderLabelWithIcons(( localizeWithPath(
135
- 'vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView',
136
- 'result',
137
- 'Result'
138
- ))));
135
+ reset(this.htmlElements.title, ...renderLabelWithIcons(( localizeWithPath(_moduleId, 0, 'Result'))));
139
136
  reset(this.htmlElements.description, ...renderLabelWithIcons(this._labelService.getUriLabel(vm.model.resultTextModel.uri, { relative: true })));
140
137
  }));
141
- const remainingConflictsActionBar = this._register(( new ActionBar(this.htmlElements.detail)));
138
+ const remainingConflictsActionBar = this._register(( (new ActionBar(this.htmlElements.detail))));
142
139
  this._register(autorun(reader => {
143
140
  const vm = this.viewModel.read(reader);
144
141
  if (!vm) {
@@ -150,18 +147,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
150
147
  }
151
148
  const count = model.unhandledConflictsCount.read(reader);
152
149
  const text = count === 1
153
- ? ( localizeWithPath(
154
- 'vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView',
155
- 'mergeEditor.remainingConflicts',
156
- '{0} Conflict Remaining',
157
- count
158
- ))
159
- : ( localizeWithPath(
160
- 'vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView',
161
- 'mergeEditor.remainingConflict',
162
- '{0} Conflicts Remaining ',
163
- count
164
- ));
150
+ ? ( localizeWithPath(_moduleId, 1, '{0} Conflict Remaining', count))
151
+ : ( localizeWithPath(_moduleId, 2, '{0} Conflicts Remaining ', count));
165
152
  remainingConflictsActionBar.clear();
166
153
  remainingConflictsActionBar.push({
167
154
  class: undefined,
@@ -173,16 +160,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
173
160
  vm.goToNextModifiedBaseRange(m => !model.isHandled(m).get());
174
161
  },
175
162
  tooltip: count > 0
176
- ? ( localizeWithPath(
177
- 'vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView',
178
- 'goToNextConflict',
179
- 'Go to next conflict'
180
- ))
181
- : ( localizeWithPath(
182
- 'vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView',
183
- 'allConflictHandled',
184
- 'All conflicts handled, the merge can be completed now.'
185
- )),
163
+ ? ( localizeWithPath(_moduleId, 3, 'Go to next conflict'))
164
+ : ( localizeWithPath(_moduleId, 4, 'All conflicts handled, the merge can be completed now.')),
186
165
  });
187
166
  }));
188
167
  this._register(applyObservableDecorations(this.editor, this.decorations));
@@ -190,10 +169,10 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
190
169
  this._register(instantiationService.createInstance(TitleMenu, MenuId.MergeInputResultToolbar, this.htmlElements.toolbar));
191
170
  }
192
171
  };
193
- ResultCodeEditorView = ( __decorate([
194
- ( __param(1, IInstantiationService)),
195
- ( __param(2, ILabelService)),
196
- ( __param(3, IConfigurationService))
197
- ], ResultCodeEditorView));
172
+ ResultCodeEditorView = ( (__decorate([
173
+ ( (__param(1, IInstantiationService))),
174
+ ( (__param(2, ILabelService))),
175
+ ( (__param(3, IConfigurationService)))
176
+ ], ResultCodeEditorView)));
198
177
 
199
178
  export { ResultCodeEditorView };
@@ -45,6 +45,7 @@ import { ResultCodeEditorView } from './editors/resultCodeEditorView.js';
45
45
  import { AbstractTextEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textEditor';
46
46
 
47
47
  var MergeEditor_1, MergeEditorLayoutStore_1;
48
+ const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/mergeEditor";
48
49
  let MergeEditor = class MergeEditor extends AbstractTextEditor {
49
50
  static { MergeEditor_1 = this; }
50
51
  static { this.ID = 'mergeEditor'; }
@@ -66,9 +67,9 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
66
67
  this._configurationService = _configurationService;
67
68
  this._codeEditorService = _codeEditorService;
68
69
  this.configurationService = configurationService;
69
- this._sessionDisposables = ( new DisposableStore());
70
+ this._sessionDisposables = ( (new DisposableStore()));
70
71
  this._viewModel = observableValue(this, undefined);
71
- this._grid = this._register(( new MutableDisposable()));
72
+ this._grid = this._register(( (new MutableDisposable())));
72
73
  this.input1View = this._register(this.instantiationService.createInstance(InputCodeEditorView, 1, this._viewModel));
73
74
  this.baseView = observableValue(this, undefined);
74
75
  this.baseViewOptions = observableValue(this, undefined);
@@ -84,23 +85,23 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
84
85
  this._ctxBaseUri = ctxMergeBaseUri.bindTo(this.contextKeyService);
85
86
  this._ctxShowNonConflictingChanges = ctxMergeEditorShowNonConflictingChanges.bindTo(this.contextKeyService);
86
87
  this._inputModel = observableValue(this, undefined);
87
- this.viewZoneComputer = ( new ViewZoneComputer(
88
+ this.viewZoneComputer = ( (new ViewZoneComputer(
88
89
  this.input1View.editor,
89
90
  this.input2View.editor,
90
91
  this.inputResultView.editor
91
- ));
92
+ )));
92
93
  this.codeLensesVisible = observableConfigValue('mergeEditor.showCodeLenses', true, this.configurationService);
93
- this.scrollSynchronizer = this._register(( new ScrollSynchronizer(
94
+ this.scrollSynchronizer = this._register(( (new ScrollSynchronizer(
94
95
  this._viewModel,
95
96
  this.input1View,
96
97
  this.input2View,
97
98
  this.baseView,
98
99
  this.inputResultView,
99
100
  this._layoutModeObs
100
- )));
101
- this._onDidChangeSizeConstraints = ( new Emitter());
101
+ ))));
102
+ this._onDidChangeSizeConstraints = ( (new Emitter()));
102
103
  this.onDidChangeSizeConstraints = this._onDidChangeSizeConstraints.event;
103
- this.baseViewDisposables = this._register(( new DisposableStore()));
104
+ this.baseViewDisposables = this._register(( (new DisposableStore())));
104
105
  this.showNonConflictingChangesStore = this.instantiationService.createInstance((PersistentStore), 'mergeEditor/showNonConflictingChanges');
105
106
  this.showNonConflictingChanges = observableValue(this, this.showNonConflictingChangesStore.get() ?? false);
106
107
  }
@@ -120,11 +121,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
120
121
  if (this.input) {
121
122
  return this.input.getName();
122
123
  }
123
- return ( localizeWithPath(
124
- 'vs/workbench/contrib/mergeEditor/browser/view/mergeEditor',
125
- 'mergeEditor',
126
- "Text Merge Editor"
127
- ));
124
+ return ( localizeWithPath(_moduleId, 0, "Text Merge Editor"));
128
125
  }
129
126
  createEditorControl(parent, initialOptions) {
130
127
  this.rootHtmlElement = parent;
@@ -155,7 +152,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
155
152
  }
156
153
  async setInput(input, options, context, token) {
157
154
  if (!(input instanceof MergeEditorInput)) {
158
- throw new BugIndicatingError('ONLY MergeEditorInput is supported');
155
+ throw ( (new BugIndicatingError('ONLY MergeEditorInput is supported')));
159
156
  }
160
157
  await super.setInput(input, options, context, token);
161
158
  this._sessionDisposables.clear();
@@ -178,8 +175,8 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
178
175
  this._inputModel.set(inputModel, tx);
179
176
  });
180
177
  this._sessionDisposables.add(viewModel);
181
- this._ctxResultUri.set(( inputModel.resultUri.toString()));
182
- this._ctxBaseUri.set(( model.base.uri.toString()));
178
+ this._ctxResultUri.set(( (inputModel.resultUri.toString())));
179
+ this._ctxBaseUri.set(( (model.base.uri.toString())));
183
180
  this._sessionDisposables.add(toDisposable(() => {
184
181
  this._ctxBaseUri.reset();
185
182
  this._ctxResultUri.reset();
@@ -238,7 +235,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
238
235
  const that = this;
239
236
  this._sessionDisposables.add(new (class {
240
237
  constructor() {
241
- this._disposable = ( new DisposableStore());
238
+ this._disposable = ( (new DisposableStore()));
242
239
  for (const model of this.baseInput1Input2()) {
243
240
  this._disposable.add(model.onDidChangeContent(() => this._checkBaseInput1Input2AllEmpty()));
244
241
  }
@@ -272,7 +269,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
272
269
  shouldAlignBase,
273
270
  shouldAlignResult,
274
271
  });
275
- const disposableStore = ( new DisposableStore());
272
+ const disposableStore = ( (new DisposableStore()));
276
273
  if (baseViewZoneAccessor) {
277
274
  for (const v of viewZones.baseViewZones) {
278
275
  v.create(baseViewZoneAccessor, baseViewZoneIds, disposableStore);
@@ -511,20 +508,20 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
511
508
  this._ctxShowNonConflictingChanges.set(this.showNonConflictingChanges.get());
512
509
  }
513
510
  };
514
- MergeEditor = MergeEditor_1 = ( __decorate([
515
- ( __param(1, IInstantiationService)),
516
- ( __param(2, IContextKeyService)),
517
- ( __param(3, ITelemetryService)),
518
- ( __param(4, IStorageService)),
519
- ( __param(5, IThemeService)),
520
- ( __param(6, ITextResourceConfigurationService)),
521
- ( __param(7, IConfigurationService)),
522
- ( __param(8, IEditorService)),
523
- ( __param(9, IEditorGroupsService)),
524
- ( __param(10, IFileService)),
525
- ( __param(11, ICodeEditorService)),
526
- ( __param(12, IConfigurationService))
527
- ], MergeEditor));
511
+ MergeEditor = MergeEditor_1 = ( (__decorate([
512
+ ( (__param(1, IInstantiationService))),
513
+ ( (__param(2, IContextKeyService))),
514
+ ( (__param(3, ITelemetryService))),
515
+ ( (__param(4, IStorageService))),
516
+ ( (__param(5, IThemeService))),
517
+ ( (__param(6, ITextResourceConfigurationService))),
518
+ ( (__param(7, IConfigurationService))),
519
+ ( (__param(8, IEditorService))),
520
+ ( (__param(9, IEditorGroupsService))),
521
+ ( (__param(10, IFileService))),
522
+ ( (__param(11, ICodeEditorService))),
523
+ ( (__param(12, IConfigurationService)))
524
+ ], MergeEditor)));
528
525
  let MergeEditorLayoutStore = class MergeEditorLayoutStore {
529
526
  static { MergeEditorLayoutStore_1 = this; }
530
527
  static { this._key = 'mergeEditor/layout'; }
@@ -554,9 +551,9 @@ let MergeEditorLayoutStore = class MergeEditorLayoutStore {
554
551
  }
555
552
  }
556
553
  };
557
- MergeEditorLayoutStore = MergeEditorLayoutStore_1 = ( __decorate([
558
- ( __param(0, IStorageService))
559
- ], MergeEditorLayoutStore));
554
+ MergeEditorLayoutStore = MergeEditorLayoutStore_1 = ( (__decorate([
555
+ ( (__param(0, IStorageService)))
556
+ ], MergeEditorLayoutStore)));
560
557
  let MergeEditorOpenHandlerContribution = class MergeEditorOpenHandlerContribution extends Disposable {
561
558
  constructor(_editorService, codeEditorService) {
562
559
  super();
@@ -578,10 +575,10 @@ let MergeEditorOpenHandlerContribution = class MergeEditorOpenHandlerContributio
578
575
  return null;
579
576
  }
580
577
  };
581
- MergeEditorOpenHandlerContribution = ( __decorate([
582
- ( __param(0, IEditorService)),
583
- ( __param(1, ICodeEditorService))
584
- ], MergeEditorOpenHandlerContribution));
578
+ MergeEditorOpenHandlerContribution = ( (__decorate([
579
+ ( (__param(0, IEditorService))),
580
+ ( (__param(1, ICodeEditorService)))
581
+ ], MergeEditorOpenHandlerContribution)));
585
582
  let MergeEditorResolverContribution = class MergeEditorResolverContribution extends Disposable {
586
583
  static { this.ID = 'workbench.contrib.mergeEditorResolver'; }
587
584
  constructor(editorResolverService, instantiationService) {
@@ -611,9 +608,9 @@ let MergeEditorResolverContribution = class MergeEditorResolverContribution exte
611
608
  }));
612
609
  }
613
610
  };
614
- MergeEditorResolverContribution = ( __decorate([
615
- ( __param(0, IEditorResolverService)),
616
- ( __param(1, IInstantiationService))
617
- ], MergeEditorResolverContribution));
611
+ MergeEditorResolverContribution = ( (__decorate([
612
+ ( (__param(0, IEditorResolverService))),
613
+ ( (__param(1, IInstantiationService)))
614
+ ], MergeEditorResolverContribution)));
618
615
 
619
616
  export { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverContribution };
@@ -13,6 +13,7 @@ import { INotificationService } from 'vscode/vscode/vs/platform/notification/com
13
13
  import { LineRange } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
14
14
  import { observableConfigValue } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/utils';
15
15
 
16
+ const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/viewModel";
16
17
  let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
17
18
  constructor(model, inputCodeEditorView1, inputCodeEditorView2, resultCodeEditorView, baseCodeEditorView, showNonConflictingChanges, configurationService, notificationService) {
18
19
  super();
@@ -25,7 +26,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
25
26
  this.configurationService = configurationService;
26
27
  this.notificationService = notificationService;
27
28
  this.manuallySetActiveModifiedBaseRange = observableValue(this, { range: undefined, counter: 0 });
28
- this.attachedHistory = this._register(( new AttachedHistory(this.model.resultTextModel)));
29
+ this.attachedHistory = this._register(( (new AttachedHistory(this.model.resultTextModel))));
29
30
  this.shouldUseAppendInsteadOfAccept = observableConfigValue('mergeEditor.shouldUseAppendInsteadOfAccept', false, this.configurationService);
30
31
  this.counter = 0;
31
32
  this.lastFocusedEditor = derivedObservableWithWritableCache(this, (reader, lastValue) => {
@@ -54,7 +55,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
54
55
  return undefined;
55
56
  }
56
57
  const selections = sourceEditor.selection.read(reader) || [];
57
- const rangesInBase = ( selections.map((selection) => {
58
+ const rangesInBase = ( (selections.map((selection) => {
58
59
  if (sourceEditor === this.inputCodeEditorView1) {
59
60
  return this.model.translateInputRangeToBase(1, selection);
60
61
  }
@@ -70,7 +71,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
70
71
  else {
71
72
  return selection;
72
73
  }
73
- }));
74
+ })));
74
75
  return {
75
76
  rangesInBase,
76
77
  sourceEditor
@@ -104,10 +105,10 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
104
105
  const baseRangeStates = [];
105
106
  for (const change of e.changes) {
106
107
  const rangeInBase = this.model.translateResultRangeToBase(Range.lift(change.range));
107
- const baseRanges = this.model.findModifiedBaseRangesInRange(( new LineRange(
108
+ const baseRanges = this.model.findModifiedBaseRangesInRange(( (new LineRange(
108
109
  rangeInBase.startLineNumber,
109
110
  rangeInBase.endLineNumber - rangeInBase.startLineNumber
110
- )));
111
+ ))));
111
112
  if (baseRanges.length === 1) {
112
113
  const isHandled = this.model.isHandled(baseRanges[0]).get();
113
114
  if (!isHandled) {
@@ -204,8 +205,8 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
204
205
  const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
205
206
  if (!activeModifiedBaseRange) {
206
207
  this.notificationService.error(( localizeWithPath(
207
- 'vs/workbench/contrib/mergeEditor/browser/view/viewModel',
208
- 'noConflictMessage',
208
+ _moduleId,
209
+ 0,
209
210
  "There is currently no conflict focused that can be toggled."
210
211
  )));
211
212
  return;
@@ -222,10 +223,10 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
222
223
  });
223
224
  }
224
225
  };
225
- MergeEditorViewModel = ( __decorate([
226
- ( __param(6, IConfigurationService)),
227
- ( __param(7, INotificationService))
228
- ], MergeEditorViewModel));
226
+ MergeEditorViewModel = ( (__decorate([
227
+ ( (__param(6, IConfigurationService))),
228
+ ( (__param(7, INotificationService)))
229
+ ], MergeEditorViewModel)));
229
230
  class AttachedHistory extends Disposable {
230
231
  constructor(model) {
231
232
  super();
@@ -15,27 +15,19 @@ import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.servi
15
15
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
16
16
  import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
17
17
 
18
+ const _moduleId = "vs/workbench/contrib/preferences/browser/keyboardLayoutPicker";
18
19
  let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution extends Disposable {
19
20
  static { this.ID = 'workbench.contrib.keyboardLayoutPicker'; }
20
21
  constructor(keyboardLayoutService, statusbarService) {
21
22
  super();
22
23
  this.keyboardLayoutService = keyboardLayoutService;
23
24
  this.statusbarService = statusbarService;
24
- this.pickerElement = this._register(( new MutableDisposable()));
25
- const name = ( localizeWithPath(
26
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
27
- 'status.workbench.keyboardLayout',
28
- "Keyboard Layout"
29
- ));
25
+ this.pickerElement = this._register(( (new MutableDisposable())));
26
+ const name = ( localizeWithPath(_moduleId, 0, "Keyboard Layout"));
30
27
  const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
31
28
  if (layout) {
32
29
  const layoutInfo = parseKeyboardLayoutDescription(layout);
33
- const text = ( localizeWithPath(
34
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
35
- 'keyboardLayout',
36
- "Layout: {0}",
37
- layoutInfo.label
38
- ));
30
+ const text = ( localizeWithPath(_moduleId, 1, "Layout: {0}", layoutInfo.label));
39
31
  this.pickerElement.value = this.statusbarService.addEntry({
40
32
  name,
41
33
  text,
@@ -47,12 +39,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
47
39
  const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
48
40
  const layoutInfo = parseKeyboardLayoutDescription(layout);
49
41
  if (this.pickerElement.value) {
50
- const text = ( localizeWithPath(
51
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
52
- 'keyboardLayout',
53
- "Layout: {0}",
54
- layoutInfo.label
55
- ));
42
+ const text = ( localizeWithPath(_moduleId, 1, "Layout: {0}", layoutInfo.label));
56
43
  this.pickerElement.value.update({
57
44
  name,
58
45
  text,
@@ -61,12 +48,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
61
48
  });
62
49
  }
63
50
  else {
64
- const text = ( localizeWithPath(
65
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
66
- 'keyboardLayout',
67
- "Layout: {0}",
68
- layoutInfo.label
69
- ));
51
+ const text = ( localizeWithPath(_moduleId, 1, "Layout: {0}", layoutInfo.label));
70
52
  this.pickerElement.value = this.statusbarService.addEntry({
71
53
  name,
72
54
  text,
@@ -77,20 +59,20 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
77
59
  }));
78
60
  }
79
61
  };
80
- KeyboardLayoutPickerContribution = ( __decorate([
81
- ( __param(0, IKeyboardLayoutService)),
82
- ( __param(1, IStatusbarService))
83
- ], KeyboardLayoutPickerContribution));
62
+ KeyboardLayoutPickerContribution = ( (__decorate([
63
+ ( (__param(0, IKeyboardLayoutService))),
64
+ ( (__param(1, IStatusbarService)))
65
+ ], KeyboardLayoutPickerContribution)));
84
66
  registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, 1 );
85
67
  const DEFAULT_CONTENT = [
86
68
  `// ${( localizeWithPath(
87
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
88
- 'displayLanguage',
69
+ _moduleId,
70
+ 2,
89
71
  'Defines the keyboard layout used in VS Code in the browser environment.'
90
72
  ))}`,
91
73
  `// ${( localizeWithPath(
92
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
93
- 'doc',
74
+ _moduleId,
75
+ 3,
94
76
  'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
95
77
  ))}`,
96
78
  ``,
@@ -101,11 +83,7 @@ registerAction2(class extends Action2 {
101
83
  constructor() {
102
84
  super({
103
85
  id: KEYBOARD_LAYOUT_OPEN_PICKER,
104
- title: ( localize2WithPath(
105
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
106
- 'keyboard.chooseLayout',
107
- "Change Keyboard Layout"
108
- )),
86
+ title: ( localize2WithPath(_moduleId, 4, "Change Keyboard Layout")),
109
87
  f1: true
110
88
  });
111
89
  }
@@ -120,7 +98,7 @@ registerAction2(class extends Action2 {
120
98
  const currentLayout = keyboardLayoutService.getCurrentKeyboardLayout();
121
99
  const layoutConfig = configurationService.getValue('keyboard.layout');
122
100
  const isAutoDetect = layoutConfig === 'autodetect';
123
- const picks = ( layouts.map(layout => {
101
+ const picks = ( (layouts.map(layout => {
124
102
  const picked = !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout);
125
103
  const layoutInfo = parseKeyboardLayoutDescription(layout);
126
104
  return {
@@ -130,39 +108,22 @@ registerAction2(class extends Action2 {
130
108
  description: layoutInfo.description + (picked ? ' (Current layout)' : ''),
131
109
  picked: !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout)
132
110
  };
133
- })).sort((a, b) => {
111
+ }))).sort((a, b) => {
134
112
  return a.label < b.label ? -1 : (a.label > b.label ? 1 : 0);
135
113
  });
136
114
  if (picks.length > 0) {
137
115
  const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
138
- picks.unshift({ type: 'separator', label: ( localizeWithPath(
139
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
140
- 'layoutPicks',
141
- "Keyboard Layouts ({0})",
142
- platform
143
- )) });
116
+ picks.unshift({ type: 'separator', label: ( localizeWithPath(_moduleId, 5, "Keyboard Layouts ({0})", platform)) });
144
117
  }
145
- const configureKeyboardLayout = { label: ( localizeWithPath(
146
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
147
- 'configureKeyboardLayout',
148
- "Configure Keyboard Layout"
149
- )) };
118
+ const configureKeyboardLayout = { label: ( localizeWithPath(_moduleId, 6, "Configure Keyboard Layout")) };
150
119
  picks.unshift(configureKeyboardLayout);
151
120
  const autoDetectMode = {
152
- label: ( localizeWithPath(
153
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
154
- 'autoDetect',
155
- "Auto Detect"
156
- )),
121
+ label: ( localizeWithPath(_moduleId, 7, "Auto Detect")),
157
122
  description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
158
123
  picked: isAutoDetect ? true : undefined
159
124
  };
160
125
  picks.unshift(autoDetectMode);
161
- const pick = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
162
- 'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
163
- 'pickKeyboardLayout',
164
- "Select Keyboard Layout"
165
- )), matchOnDescription: true });
126
+ const pick = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(_moduleId, 8, "Select Keyboard Layout")), matchOnDescription: true });
166
127
  if (!pick) {
167
128
  return;
168
129
  }
@@ -184,7 +145,9 @@ registerAction2(class extends Action2 {
184
145
  options: { pinned: true }
185
146
  });
186
147
  }, (error) => {
187
- throw new Error(localizeWithPath('vs/workbench/contrib/preferences/browser/keyboardLayoutPicker', 'fail.createSettings', "Unable to create '{0}' ({1}).", file.toString(), error));
148
+ throw ( (new Error(
149
+ localizeWithPath(_moduleId, 9, "Unable to create '{0}' ({1}).", ( (file.toString())), error)
150
+ )));
188
151
  });
189
152
  return Promise.resolve();
190
153
  }
@@ -6,9 +6,10 @@ import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
6
6
  import { SashSettingsController } from './sash.js';
7
7
  import { isIOS } from 'vscode/vscode/vs/base/common/platform';
8
8
 
9
- ( Registry.as(Extensions.Workbench))
9
+ const _moduleId = "vs/workbench/contrib/sash/browser/sash.contribution";
10
+ ( (Registry.as(Extensions.Workbench)))
10
11
  .registerWorkbenchContribution(SashSettingsController, 3 );
11
- ( Registry.as(Extensions$1.Configuration))
12
+ ( (Registry.as(Extensions$1.Configuration)))
12
13
  .registerConfiguration({
13
14
  ...workbenchConfigurationNodeBase,
14
15
  properties: {
@@ -18,8 +19,8 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
18
19
  minimum: 1,
19
20
  maximum: 20,
20
21
  description: ( localizeWithPath(
21
- 'vs/workbench/contrib/sash/browser/sash.contribution',
22
- 'sashSize',
22
+ _moduleId,
23
+ 0,
23
24
  "Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
24
25
  ))
25
26
  },
@@ -29,8 +30,8 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
29
30
  minimum: 0,
30
31
  maximum: 2000,
31
32
  description: ( localizeWithPath(
32
- 'vs/workbench/contrib/sash/browser/sash.contribution',
33
- 'sashHoverDelay',
33
+ _moduleId,
34
+ 1,
34
35
  "Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
35
36
  ))
36
37
  },