@codingame/monaco-vscode-view-common-service-override 15.0.2 → 16.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 (64) hide show
  1. package/assets/{index-no-csp.html → webview/index-no-csp.html} +1 -1
  2. package/assets/{index.html → webview/index.html} +2 -2
  3. package/index.js +5 -5
  4. package/package.json +42 -40
  5. package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +1 -1
  6. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +60 -60
  7. package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
  8. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -7
  9. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +162 -159
  10. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -9
  11. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
  12. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +7 -7
  13. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
  14. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css +47 -0
  15. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css +3 -0
  17. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
  19. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
  20. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +1 -1
  21. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +8 -8
  22. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css +90 -0
  23. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
  24. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +27 -27
  25. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
  26. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +6 -3
  27. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.d.ts +10 -0
  28. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +46 -0
  29. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
  30. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
  31. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
  32. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
  33. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css +235 -0
  34. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -6
  35. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +18 -25
  36. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
  37. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
  38. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
  39. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css +47 -0
  40. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
  41. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +7 -7
  42. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
  43. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +1 -1
  44. package/{assets → vscode/src/vs/workbench/contrib/webview/browser/pre}/service-worker.js +34 -3
  45. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +1 -1
  47. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
  48. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
  49. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
  50. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
  51. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +1 -4
  52. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +13 -22
  53. package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +0 -1
  54. package/vscode/src/vs/workbench/services/history/browser/historyService.js +29 -30
  55. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css +15 -0
  56. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +29 -42
  57. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
  58. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
  59. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
  60. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
  61. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
  62. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
  63. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
  64. /package/{assets → vscode/src/vs/workbench/contrib/webview/browser/pre}/fake.html +0 -0
@@ -20,27 +20,28 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
20
20
  static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set([
21
21
  'terminalEditor',
22
22
  'mainThreadWebview-simpleBrowser.view',
23
- 'mainThreadWebview-browserPreview'
23
+ 'mainThreadWebview-browserPreview',
24
+ 'workbench.editor.chatSession'
24
25
  ])); }
25
26
  static { this.AUTO_LOCK_EXTRA_EDITORS = [
26
27
  {
27
28
  id: 'workbench.input.interactive',
28
- label: ( localize(3154, 'Interactive Window')),
29
+ label: ( localize(3196, 'Interactive Window')),
29
30
  priority: RegisteredEditorPriority.builtin
30
31
  },
31
32
  {
32
33
  id: 'mainThreadWebview-markdown.preview',
33
- label: ( localize(3155, "Markdown Preview")),
34
+ label: ( localize(3197, "Markdown Preview")),
34
35
  priority: RegisteredEditorPriority.builtin
35
36
  },
36
37
  {
37
38
  id: 'mainThreadWebview-simpleBrowser.view',
38
- label: ( localize(3156, "Simple Browser")),
39
+ label: ( localize(3198, "Simple Browser")),
39
40
  priority: RegisteredEditorPriority.builtin
40
41
  },
41
42
  {
42
43
  id: 'mainThreadWebview-browserPreview',
43
- label: ( localize(3157, "Live Preview")),
44
+ label: ( localize(3199, "Live Preview")),
44
45
  priority: RegisteredEditorPriority.builtin
45
46
  }
46
47
  ]; }
@@ -85,7 +86,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
85
86
  'workbench.editor.autoLockGroups': {
86
87
  type: 'object',
87
88
  description: ( localize(
88
- 3158,
89
+ 3200,
89
90
  "If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
90
91
  )),
91
92
  properties: autoLockGroupConfiguration,
@@ -103,7 +104,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
103
104
  default: '',
104
105
  enum: [...binaryEditorCandidates, ''],
105
106
  description: ( localize(
106
- 3159,
107
+ 3201,
107
108
  "The default editor for files detected as binary. If undefined, the user will be presented with a picker."
108
109
  )),
109
110
  }
@@ -116,7 +117,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
116
117
  'workbench.editorAssociations': {
117
118
  type: 'object',
118
119
  markdownDescription: ( localize(
119
- 3160,
120
+ 3202,
120
121
  "Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
121
122
  )),
122
123
  patternProperties: {
@@ -138,7 +139,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
138
139
  minimum: 1,
139
140
  scope: ConfigurationScope.RESOURCE,
140
141
  markdownDescription: ( localize(
141
- 3161,
142
+ 3203,
142
143
  "Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
143
144
  )),
144
145
  }
@@ -24,12 +24,12 @@ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/th
24
24
  import { isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
25
25
 
26
26
  var CallHierarchyController_1;
27
- const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4205, 'Whether a call hierarchy provider is available'))));
28
- const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4206, 'Whether call hierarchy peek is currently showing'))));
27
+ const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4252, 'Whether a call hierarchy provider is available'))));
28
+ const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4253, 'Whether call hierarchy peek is currently showing'))));
29
29
  const _ctxCallHierarchyDirection = ( new RawContextKey(
30
30
  'callHierarchyDirection',
31
31
  undefined,
32
- { type: 'string', description: ( localize(4207, 'Whether call hierarchy shows incoming or outgoing calls')) }
32
+ { type: 'string', description: ( localize(4254, 'Whether call hierarchy shows incoming or outgoing calls')) }
33
33
  ));
34
34
  function sanitizedDirection(candidate) {
35
35
  return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
@@ -117,14 +117,14 @@ let CallHierarchyController = class CallHierarchyController {
117
117
  this._widget.showModel(model);
118
118
  }
119
119
  else {
120
- this._widget.showMessage(( localize(4208, "No results")));
120
+ this._widget.showMessage(( localize(4255, "No results")));
121
121
  }
122
122
  }).catch(err => {
123
123
  if (isCancellationError(err)) {
124
124
  this.endCallHierarchy();
125
125
  return;
126
126
  }
127
- this._widget.showMessage(( localize(4209, "Failed to show call hierarchy")));
127
+ this._widget.showMessage(( localize(4256, "Failed to show call hierarchy")));
128
128
  });
129
129
  }
130
130
  showOutgoingCalls() {
@@ -152,7 +152,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
152
152
  constructor() {
153
153
  super({
154
154
  id: 'editor.showCallHierarchy',
155
- title: ( localize2(4210, 'Peek Call Hierarchy')),
155
+ title: ( localize2(4257, 'Peek Call Hierarchy')),
156
156
  menu: {
157
157
  id: MenuId.EditorContextPeek,
158
158
  group: 'navigation',
@@ -176,8 +176,8 @@ registerAction2(class extends EditorAction2 {
176
176
  constructor() {
177
177
  super({
178
178
  id: 'editor.showIncomingCalls',
179
- title: ( localize2(4211, 'Show Incoming Calls')),
180
- icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4212, 'Icon for incoming calls in the call hierarchy view.'))),
179
+ title: ( localize2(4258, 'Show Incoming Calls')),
180
+ icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4259, 'Icon for incoming calls in the call hierarchy view.'))),
181
181
  precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
182
182
  keybinding: {
183
183
  weight: KeybindingWeight.WorkbenchContrib,
@@ -198,8 +198,8 @@ registerAction2(class extends EditorAction2 {
198
198
  constructor() {
199
199
  super({
200
200
  id: 'editor.showOutgoingCalls',
201
- title: ( localize2(4213, 'Show Outgoing Calls')),
202
- icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4214, 'Icon for outgoing calls in the call hierarchy view.'))),
201
+ title: ( localize2(4260, 'Show Outgoing Calls')),
202
+ icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4261, 'Icon for outgoing calls in the call hierarchy view.'))),
203
203
  precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
204
204
  keybinding: {
205
205
  weight: KeybindingWeight.WorkbenchContrib,
@@ -220,7 +220,7 @@ registerAction2(class extends EditorAction2 {
220
220
  constructor() {
221
221
  super({
222
222
  id: 'editor.refocusCallHierarchy',
223
- title: ( localize2(4215, 'Refocus Call Hierarchy')),
223
+ title: ( localize2(4262, 'Refocus Call Hierarchy')),
224
224
  precondition: _ctxCallHierarchyVisible,
225
225
  keybinding: {
226
226
  weight: KeybindingWeight.WorkbenchContrib,
@@ -236,7 +236,7 @@ registerAction2(class extends EditorAction2 {
236
236
  constructor() {
237
237
  super({
238
238
  id: 'editor.closeCallHierarchy',
239
- title: ( localize(4216, 'Close')),
239
+ title: ( localize(4263, 'Close')),
240
240
  icon: Codicon.close,
241
241
  precondition: _ctxCallHierarchyVisible,
242
242
  keybinding: {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import './media/callHierarchy.css.js';
3
+ import './media/callHierarchy.css';
4
4
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
5
5
  import { CallHierarchyDirection } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
6
6
  import { WorkbenchAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
@@ -77,7 +77,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
77
77
  this.create();
78
78
  this._peekViewService.addExclusiveWidget(editor, this);
79
79
  this._applyTheme(themeService.getColorTheme());
80
- this._disposables.add(themeService.onDidColorThemeChange(e => this._applyTheme(e.theme)));
80
+ this._disposables.add(themeService.onDidColorThemeChange(this._applyTheme, this));
81
81
  this._disposables.add(this._previewDisposable);
82
82
  }
83
83
  dispose() {
@@ -268,13 +268,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
268
268
  }
269
269
  this._previewDisposable.add(value);
270
270
  const title = this._direction === CallHierarchyDirection.CallsFrom
271
- ? ( localize(4217, "Calls from '{0}'", element.model.root.name))
272
- : ( localize(4218, "Callers of '{0}'", element.model.root.name));
271
+ ? ( localize(4264, "Calls from '{0}'", element.model.root.name))
272
+ : ( localize(4265, "Callers of '{0}'", element.model.root.name));
273
273
  this.setTitle(title);
274
274
  }
275
275
  showLoading() {
276
276
  this._parent.dataset['state'] = State.Loading;
277
- this.setTitle(( localize(4219, "Loading...")));
277
+ this.setTitle(( localize(4266, "Loading...")));
278
278
  this._show();
279
279
  }
280
280
  showMessage(message) {
@@ -293,8 +293,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
293
293
  await this._tree.expand(root.element);
294
294
  if (root.children.length === 0) {
295
295
  this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
296
- ? ( localize(4220, "No calls from '{0}'", model.root.name))
297
- : ( localize(4221, "No callers of '{0}'", model.root.name)));
296
+ ? ( localize(4267, "No calls from '{0}'", model.root.name))
297
+ : ( localize(4268, "No callers of '{0}'", model.root.name)));
298
298
  }
299
299
  else {
300
300
  this._parent.dataset['state'] = State.Data;
@@ -107,14 +107,14 @@ class AccessibilityProvider {
107
107
  this.getDirection = getDirection;
108
108
  }
109
109
  getWidgetAriaLabel() {
110
- return localize(4222, "Call Hierarchy");
110
+ return localize(4269, "Call Hierarchy");
111
111
  }
112
112
  getAriaLabel(element) {
113
113
  if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
114
- return localize(4223, "calls from {0}", element.item.name);
114
+ return localize(4270, "calls from {0}", element.item.name);
115
115
  }
116
116
  else {
117
- return localize(4224, "callers of {0}", element.item.name);
117
+ return localize(4271, "callers of {0}", element.item.name);
118
118
  }
119
119
  }
120
120
  }
@@ -0,0 +1,47 @@
1
+ .monaco-workbench .call-hierarchy .results,
2
+ .monaco-workbench .call-hierarchy .message {
3
+ display: none;
4
+ }
5
+ .monaco-workbench .call-hierarchy[data-state="data"] .results {
6
+ display: inherit;
7
+ height: 100%;
8
+ }
9
+ .monaco-workbench .call-hierarchy[data-state="message"] .message {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ height: 100%;
14
+ }
15
+ .monaco-workbench .call-hierarchy .editor,
16
+ .monaco-workbench .call-hierarchy .tree {
17
+ height: 100%;
18
+ }
19
+ .monaco-editor .call-hierarchy .tree {
20
+ background-color: var(--vscode-peekViewResult-background);
21
+ color: var(--vscode-peekViewResult-fileForeground);
22
+ }
23
+ .monaco-workbench .call-hierarchy .tree .callhierarchy-element {
24
+ display: flex;
25
+ flex: 1;
26
+ flex-flow: row nowrap;
27
+ align-items: center;
28
+ }
29
+ .monaco-workbench .call-hierarchy .tree .callhierarchy-element .monaco-icon-label {
30
+ padding-left: 4px;
31
+ }
32
+ .monaco-editor .call-hierarchy .tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) {
33
+ background-color: var(--vscode-peekViewResult-selectionBackground);
34
+ color: var(--vscode-peekViewResult-selectionForeground) !important;
35
+ }
36
+ .monaco-editor .call-hierarchy .call-decoration {
37
+ background-color: var(--vscode-peekViewEditor-matchHighlightBackground);
38
+ border: 2px solid var(--vscode-peekViewEditor-matchHighlightBorder);
39
+ box-sizing: border-box;
40
+ }
41
+ .monaco-editor .call-hierarchy .editor .monaco-editor .monaco-editor-background,
42
+ .monaco-editor .call-hierarchy .editor .monaco-editor .inputarea.ime-input {
43
+ background-color: var(--vscode-peekViewEditor-background);
44
+ }
45
+ .monaco-editor .call-hierarchy .editor .monaco-editor .margin {
46
+ background-color: var(--vscode-peekViewEditorGutter-background);
47
+ }
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import './media/customEditor.css.js';
3
+ import './media/customEditor.css';
4
4
  import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
5
5
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
6
6
  import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
@@ -0,0 +1,3 @@
1
+ .webview.modified {
2
+ box-shadow: -6px 0 5px -5px var(--vscode-scrollbar-shadow);
3
+ }
@@ -32,7 +32,7 @@ class ContributedCustomEditors extends Disposable {
32
32
  this.add(( new CustomEditorInfo({
33
33
  id: webviewEditorContribution.viewType,
34
34
  displayName: webviewEditorContribution.displayName,
35
- providerDisplayName: extension.description.isBuiltin ? ( localize(5183, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
35
+ providerDisplayName: extension.description.isBuiltin ? ( localize(5317, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
36
36
  selector: webviewEditorContribution.selector || [],
37
37
  priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
38
38
  })));
@@ -6,7 +6,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '@
6
6
 
7
7
  const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey('activeCustomEditorId', '', {
8
8
  type: 'string',
9
- description: ( localize(5184, "The viewType of the currently active custom editor.")),
9
+ description: ( localize(5318, "The viewType of the currently active custom editor.")),
10
10
  }));
11
11
  const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey('focusedCustomEditorIsEditable', false));
12
12
  var CustomEditorPriority;
@@ -16,7 +16,7 @@ const Fields = ( Object.freeze({
16
16
  priority: 'priority',
17
17
  }));
18
18
  const CustomEditorsContribution = {
19
- description: ( localize(5186, 'Contributed custom editors.')),
19
+ description: ( localize(5320, 'Contributed custom editors.')),
20
20
  type: 'array',
21
21
  defaultSnippets: [{
22
22
  body: [{
@@ -38,20 +38,20 @@ const CustomEditorsContribution = {
38
38
  [Fields.viewType]: {
39
39
  type: 'string',
40
40
  markdownDescription: ( localize(
41
- 5187,
41
+ 5321,
42
42
  'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'
43
43
  )),
44
44
  },
45
45
  [Fields.displayName]: {
46
46
  type: 'string',
47
47
  description: ( localize(
48
- 5188,
48
+ 5322,
49
49
  'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
50
50
  )),
51
51
  },
52
52
  [Fields.selector]: {
53
53
  type: 'array',
54
- description: ( localize(5189, 'Set of globs that the custom editor is enabled for.')),
54
+ description: ( localize(5323, 'Set of globs that the custom editor is enabled for.')),
55
55
  items: {
56
56
  type: 'object',
57
57
  defaultSnippets: [{
@@ -62,7 +62,7 @@ const CustomEditorsContribution = {
62
62
  properties: {
63
63
  filenamePattern: {
64
64
  type: 'string',
65
- description: ( localize(5190, 'Glob that the custom editor is enabled for.')),
65
+ description: ( localize(5324, 'Glob that the custom editor is enabled for.')),
66
66
  },
67
67
  }
68
68
  }
@@ -70,7 +70,7 @@ const CustomEditorsContribution = {
70
70
  [Fields.priority]: {
71
71
  type: 'string',
72
72
  markdownDeprecationMessage: ( localize(
73
- 5191,
73
+ 5325,
74
74
  'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
75
75
  )),
76
76
  enum: [
@@ -79,11 +79,11 @@ const CustomEditorsContribution = {
79
79
  ],
80
80
  markdownEnumDescriptions: [
81
81
  ( localize(
82
- 5192,
82
+ 5326,
83
83
  'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
84
84
  )),
85
85
  ( localize(
86
- 5193,
86
+ 5327,
87
87
  'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
88
88
  )),
89
89
  ],
@@ -119,9 +119,9 @@ class CustomEditorsDataRenderer extends Disposable {
119
119
  return { data: { headers: [], rows: [] }, dispose: () => { } };
120
120
  }
121
121
  const headers = [
122
- ( localize(5194, "View Type")),
123
- ( localize(5195, "Priority")),
124
- ( localize(5196, "Filename Pattern")),
122
+ ( localize(5328, "View Type")),
123
+ ( localize(5329, "Priority")),
124
+ ( localize(5330, "Filename Pattern")),
125
125
  ];
126
126
  const rows = ( customEditors
127
127
  .map(customEditor => {
@@ -142,7 +142,7 @@ class CustomEditorsDataRenderer extends Disposable {
142
142
  }
143
143
  ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
144
144
  id: 'customEditors',
145
- label: ( localize(5197, "Custom Editors")),
145
+ label: ( localize(5331, "Custom Editors")),
146
146
  access: {
147
147
  canToggle: false
148
148
  },
@@ -2,7 +2,7 @@
2
2
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
3
3
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
4
4
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
5
- import { externalUriOpenersConfigurationNode } from '@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
5
+ import { externalUriOpenersConfigurationNode } from '@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
6
6
  import '@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService';
7
7
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
8
8
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import './media/languageStatus.css.js';
3
+ import './media/languageStatus.css';
4
4
  import { getWindow, isHTMLElement, addDisposableListener, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
5
  import { renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
6
6
  import { Disposable, DisposableStore, dispose, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
@@ -178,8 +178,8 @@ let LanguageStatus = class LanguageStatus {
178
178
  isOneBusy = isOneBusy || (!isPinned && status.busy);
179
179
  }
180
180
  const props = {
181
- name: ( localize(7197, "Editor Language Status")),
182
- ariaLabel: ( localize(7198, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
181
+ name: ( localize(7345, "Editor Language Status")),
182
+ ariaLabel: ( localize(7346, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
183
183
  tooltip: this._combinedEntryTooltip,
184
184
  command: ShowTooltipCommand,
185
185
  text: isOneBusy ? '$(loading~spin)' : text,
@@ -278,7 +278,7 @@ let LanguageStatus = class LanguageStatus {
278
278
  }, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService)));
279
279
  }
280
280
  const actionBar = ( new ActionBar(right, { hoverDelegate: nativeHoverDelegate }));
281
- const actionLabel = isPinned ? ( localize(7199, "Remove from Status Bar")) : ( localize(7200, "Add to Status Bar"));
281
+ const actionLabel = isPinned ? ( localize(7347, "Remove from Status Bar")) : ( localize(7348, "Add to Status Bar"));
282
282
  actionBar.setAriaLabel(actionLabel);
283
283
  store.add(actionBar);
284
284
  let action;
@@ -333,10 +333,10 @@ let LanguageStatus = class LanguageStatus {
333
333
  }
334
334
  const textValue = typeof status.label === 'string' ? status.label : status.label.value;
335
335
  if (status.detail) {
336
- return { label: ( localize(7201, '{0}, {1}', textValue, status.detail)) };
336
+ return { label: ( localize(7349, '{0}, {1}', textValue, status.detail)) };
337
337
  }
338
338
  else {
339
- return { label: ( localize(7202, '{0}', textValue)) };
339
+ return { label: ( localize(7350, '{0}', textValue)) };
340
340
  }
341
341
  }
342
342
  static _asStatusbarEntry(item) {
@@ -349,7 +349,7 @@ let LanguageStatus = class LanguageStatus {
349
349
  }
350
350
  const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
351
351
  return {
352
- name: ( localize(7203, '{0} (Language Status)', item.name)),
352
+ name: ( localize(7351, '{0} (Language Status)', item.name)),
353
353
  text: computeText(textValue, item.busy),
354
354
  ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
355
355
  role: item.accessibilityInfo?.role,
@@ -371,7 +371,7 @@ class ResetAction extends Action2 {
371
371
  constructor() {
372
372
  super({
373
373
  id: 'editor.inlayHints.Reset',
374
- title: ( localize2(7204, "Reset Language Status Interaction Counter")),
374
+ title: ( localize2(7352, "Reset Language Status Interaction Counter")),
375
375
  category: Categories.View,
376
376
  f1: true
377
377
  });
@@ -0,0 +1,90 @@
1
+ @keyframes wiggle {
2
+ 0% {
3
+ transform: rotate(0) scale(1);
4
+ }
5
+ 15%,
6
+ 45% {
7
+ transform: rotate(.04turn) scale(1.1);
8
+ }
9
+ 30%,
10
+ 60% {
11
+ transform: rotate(-.04turn) scale(1.2);
12
+ }
13
+ 100% {
14
+ transform: rotate(0) scale(1);
15
+ }
16
+ }
17
+ .monaco-workbench .statusbar DIV#status\.languageStatus A > SPAN.codicon.wiggle {
18
+ animation-duration: .8s;
19
+ animation-iteration-count: 1;
20
+ animation-name: wiggle;
21
+ }
22
+ @keyframes flash {
23
+ 0% {
24
+ background-color: initial;
25
+ }
26
+ 50% {
27
+ background-color: var(--vscode-statusBarItem-prominentBackground);
28
+ }
29
+ 100% {
30
+ background-color: initial;
31
+ }
32
+ }
33
+ .monaco-workbench .statusbar DIV#status\.languageStatus.flash A {
34
+ animation-duration: .8s;
35
+ animation-iteration-count: 1;
36
+ animation-name: flash;
37
+ }
38
+ .monaco-workbench .hover-language-status {
39
+ display: flex;
40
+ }
41
+ .monaco-workbench .hover-language-status:not(:last-child) {
42
+ border-bottom: 1px solid var(--vscode-notifications-border);
43
+ }
44
+ .monaco-workbench .hover-language-status > .severity {
45
+ padding-right: 8px;
46
+ flex: 1;
47
+ margin: auto;
48
+ display: none;
49
+ }
50
+ .monaco-workbench .hover-language-status > .severity.sev3 {
51
+ color: var(--vscode-notificationsErrorIcon-foreground)
52
+ }
53
+ .monaco-workbench .hover-language-status > .severity.sev2 {
54
+ color: var(--vscode-notificationsInfoIcon-foreground)
55
+ }
56
+ .monaco-workbench .hover-language-status > .severity.show {
57
+ display: inherit;
58
+ }
59
+ .monaco-workbench .hover-language-status > .element {
60
+ display: flex;
61
+ justify-content: space-between;
62
+ vertical-align: middle;
63
+ flex-grow: 100;
64
+ }
65
+ .monaco-workbench .hover-language-status > .element > .left > .detail:not(:empty)::before {
66
+ content: '\2013';
67
+ padding: 0 4px;
68
+ opacity: 0.6;
69
+ }
70
+ .monaco-workbench .hover-language-status > .element > .left > .label:empty {
71
+ display: none;
72
+ }
73
+ .monaco-workbench .hover-language-status > .element .left {
74
+ margin: auto 0;
75
+ }
76
+ .monaco-workbench .hover-language-status > .element .right {
77
+ margin: auto 0;
78
+ display: flex;
79
+ }
80
+ .monaco-workbench .hover-language-status > .element .right:not(:empty) {
81
+ padding-left: 16px;
82
+ }
83
+ .monaco-workbench .hover-language-status > .element .right .monaco-link {
84
+ margin: auto 0;
85
+ white-space: nowrap;
86
+ text-decoration: var(--text-link-decoration);
87
+ }
88
+ .monaco-workbench .hover-language-status > .element .right .monaco-action-bar:not(:first-child) {
89
+ padding-left: 8px;
90
+ }
@@ -13,7 +13,7 @@ import { FoldingController } from '@codingame/monaco-vscode-api/vscode/vs/editor
13
13
  import { ColorDetector } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
14
14
 
15
15
  const openSettingsCommand = 'workbench.action.openSettings';
16
- const configureSettingsLabel = ( localize(7205, "Configure"));
16
+ const configureSettingsLabel = ( localize(7353, "Configure"));
17
17
  let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
18
18
  constructor(editorService, languageStatusService) {
19
19
  super();
@@ -41,9 +41,9 @@ LimitIndicatorContribution = ( __decorate([
41
41
  class ColorDecorationAccessor {
42
42
  constructor() {
43
43
  this.id = 'decoratorsLimitInfo';
44
- this.name = ( localize(7206, 'Color Decorator Status'));
45
- this.label = ( localize(7207, 'Color Decorators'));
46
- this.source = ( localize(7208, 'Color Decorators'));
44
+ this.name = ( localize(7354, 'Color Decorator Status'));
45
+ this.label = ( localize(7355, 'Color decorators'));
46
+ this.source = ( localize(7356, 'Color Decorators'));
47
47
  this.settingsId = 'editor.colorDecoratorsLimit';
48
48
  }
49
49
  getLimitReporter(editor) {
@@ -53,9 +53,9 @@ class ColorDecorationAccessor {
53
53
  class FoldingRangeAccessor {
54
54
  constructor() {
55
55
  this.id = 'foldingLimitInfo';
56
- this.name = ( localize(7209, 'Folding Status'));
57
- this.label = ( localize(7210, 'Folding Ranges'));
58
- this.source = ( localize(7211, 'Folding'));
56
+ this.name = ( localize(7357, 'Folding Status'));
57
+ this.label = ( localize(7358, 'Folding ranges'));
58
+ this.source = ( localize(7359, 'Folding'));
59
59
  this.settingsId = 'editor.foldingMaximumRegions';
60
60
  }
61
61
  getLimitReporter(editor) {
@@ -97,7 +97,7 @@ class LanguageStatusEntry {
97
97
  name: this.accessor.name,
98
98
  severity: Severity.Warning,
99
99
  label: this.accessor.label,
100
- detail: ( localize(7212, 'only {0} shown for performance reasons', info.limited)),
100
+ detail: ( localize(7360, 'only {0} shown for performance reasons', info.limited)),
101
101
  command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
102
102
  accessibilityInfo: undefined,
103
103
  source: this.accessor.source,