@codingame/monaco-vscode-view-common-service-override 9.0.2 → 10.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 (71) hide show
  1. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -1
  2. package/package.json +3 -3
  3. package/viewCommon.js +4 -1
  4. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +1 -2
  5. package/vscode/src/vs/base/browser/ui/grid/grid.js +24 -34
  6. package/vscode/src/vs/base/browser/ui/grid/gridview.js +34 -35
  7. package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +38 -0
  8. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -65
  9. package/vscode/src/vs/workbench/browser/actions/listCommands.js +85 -85
  10. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +74 -80
  11. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +73 -69
  12. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
  13. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -24
  14. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +77 -59
  15. package/vscode/src/vs/workbench/browser/parts/compositePart.js +9 -11
  16. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -4
  17. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +172 -173
  18. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -10
  19. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +16 -18
  20. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +55 -61
  21. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +19 -22
  22. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  23. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +76 -65
  24. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +37 -18
  25. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +4 -5
  26. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +20 -15
  27. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +6 -10
  28. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +31 -45
  29. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +37 -40
  30. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +18 -28
  31. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +8 -8
  32. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
  33. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -2
  34. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -2
  35. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -4
  36. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -8
  37. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -15
  38. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -1
  39. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +21 -21
  40. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
  41. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +28 -29
  42. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
  43. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +6 -7
  44. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
  45. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +4 -3
  46. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +9 -7
  47. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +2 -2
  48. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +19 -19
  49. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -9
  50. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +9 -13
  51. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +26 -26
  52. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +6 -6
  53. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +2 -2
  54. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +16 -17
  55. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +3 -4
  56. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +33 -36
  57. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +18 -28
  58. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +8 -8
  59. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +2 -2
  60. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -8
  61. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +13 -15
  62. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -4
  63. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -4
  64. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -1
  65. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -1
  66. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +28 -30
  67. package/vscode/src/vs/workbench/services/history/browser/historyService.js +71 -74
  68. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +22 -26
  69. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -1
  70. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +16 -18
  71. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +9 -10
@@ -1,6 +1,5 @@
1
1
  import { localize } from 'vscode/vscode/vs/nls';
2
2
  import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
3
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
4
3
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
5
4
  import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
6
5
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
@@ -8,7 +7,7 @@ import { SashSettingsController } from './sash.js';
8
7
  import { isIOS } from 'vscode/vscode/vs/base/common/platform';
9
8
 
10
9
  ( (Registry.as(Extensions.Workbench)))
11
- .registerWorkbenchContribution(SashSettingsController, LifecyclePhase.Restored);
10
+ .registerWorkbenchContribution(SashSettingsController, 3 );
12
11
  ( (Registry.as(Extensions$1.Configuration)))
13
12
  .registerConfiguration({
14
13
  ...workbenchConfigurationNodeBase,
@@ -19,7 +18,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
19
18
  minimum: 1,
20
19
  maximum: 20,
21
20
  description: ( localize(
22
- 4343,
21
+ 4452,
23
22
  "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
23
  ))
25
24
  },
@@ -29,7 +28,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
29
28
  minimum: 0,
30
29
  maximum: 2000,
31
30
  description: ( localize(
32
- 4344,
31
+ 4453,
33
32
  "Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
34
33
  ))
35
34
  },
@@ -3,9 +3,8 @@ import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellati
3
3
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
4
4
  import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
5
5
  import { Event } from 'vscode/vscode/vs/base/common/event';
6
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
7
6
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
8
- import { registerEditorContribution, EditorContributionInstantiation, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
7
+ import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
9
8
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
10
9
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
11
10
  import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
@@ -14,24 +13,22 @@ import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/commo
14
13
  import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
15
14
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
16
15
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
17
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
18
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
19
16
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
20
17
  import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
21
- import { TypeHierarchyDirection, TypeHierarchyProviderRegistry, TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
18
+ import { TypeHierarchyProviderRegistry, TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
22
19
 
23
20
  var TypeHierarchyController_1;
24
- const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(4129, 'Whether a type hierarchy provider is available')))));
25
- const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localize(4130, 'Whether type hierarchy peek is currently showing')))));
21
+ const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(4238, 'Whether a type hierarchy provider is available')))));
22
+ const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localize(4239, 'Whether type hierarchy peek is currently showing')))));
26
23
  const _ctxTypeHierarchyDirection = ( (new RawContextKey(
27
24
  'typeHierarchyDirection',
28
25
  undefined,
29
- { type: 'string', description: ( localize(4131, 'whether type hierarchy shows super types or subtypes')) }
26
+ { type: 'string', description: ( localize(4240, 'whether type hierarchy shows super types or subtypes')) }
30
27
  )));
31
28
  function sanitizedDirection(candidate) {
32
- return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes
29
+ return candidate === "subtypes" || candidate === "supertypes"
33
30
  ? candidate
34
- : TypeHierarchyDirection.Subtypes;
31
+ : "subtypes" ;
35
32
  }
36
33
  let TypeHierarchyController = class TypeHierarchyController {
37
34
  static { TypeHierarchyController_1 = this; }
@@ -71,7 +68,7 @@ let TypeHierarchyController = class TypeHierarchyController {
71
68
  }
72
69
  const cts = ( (new CancellationTokenSource()));
73
70
  const model = TypeHierarchyModel.create(document, position, cts.token);
74
- const direction = sanitizedDirection(this._storageService.get(TypeHierarchyController_1._storageDirectionKey, StorageScope.PROFILE, TypeHierarchyDirection.Subtypes));
71
+ const direction = sanitizedDirection(this._storageService.get(TypeHierarchyController_1._storageDirectionKey, 0 , "subtypes" ));
75
72
  this._showTypeHierarchyWidget(position, direction, model, cts);
76
73
  }
77
74
  _showTypeHierarchyWidget(position, direction, model, cts) {
@@ -82,7 +79,7 @@ let TypeHierarchyController = class TypeHierarchyController {
82
79
  this._widget.showLoading();
83
80
  this._sessionDisposables.add(this._widget.onDidClose(() => {
84
81
  this.endTypeHierarchy();
85
- this._storageService.store(TypeHierarchyController_1._storageDirectionKey, this._widget.direction, StorageScope.PROFILE, StorageTarget.USER);
82
+ this._storageService.store(TypeHierarchyController_1._storageDirectionKey, this._widget.direction, 0 , 0 );
86
83
  }));
87
84
  this._sessionDisposables.add({ dispose() { cts.dispose(true); } });
88
85
  this._sessionDisposables.add(this._widget);
@@ -95,14 +92,14 @@ let TypeHierarchyController = class TypeHierarchyController {
95
92
  this._widget.showModel(model);
96
93
  }
97
94
  else {
98
- this._widget.showMessage(( localize(4132, "No results")));
95
+ this._widget.showMessage(( localize(4241, "No results")));
99
96
  }
100
97
  }).catch(err => {
101
98
  if (isCancellationError(err)) {
102
99
  this.endTypeHierarchy();
103
100
  return;
104
101
  }
105
- this._widget.showMessage(( localize(4133, "Failed to show type hierarchy")));
102
+ this._widget.showMessage(( localize(4242, "Failed to show type hierarchy")));
106
103
  });
107
104
  }
108
105
  async startTypeHierarchyFromTypeHierarchy() {
@@ -123,12 +120,12 @@ let TypeHierarchyController = class TypeHierarchyController {
123
120
  TypeHierarchyController_1.get(newEditor)?._showTypeHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( (new CancellationTokenSource())));
124
121
  }
125
122
  showSupertypes() {
126
- this._widget?.updateDirection(TypeHierarchyDirection.Supertypes);
127
- this._ctxDirection.set(TypeHierarchyDirection.Supertypes);
123
+ this._widget?.updateDirection("supertypes" );
124
+ this._ctxDirection.set("supertypes" );
128
125
  }
129
126
  showSubtypes() {
130
- this._widget?.updateDirection(TypeHierarchyDirection.Subtypes);
131
- this._ctxDirection.set(TypeHierarchyDirection.Subtypes);
127
+ this._widget?.updateDirection("subtypes" );
128
+ this._ctxDirection.set("subtypes" );
132
129
  }
133
130
  endTypeHierarchy() {
134
131
  this._sessionDisposables.clear();
@@ -142,12 +139,12 @@ TypeHierarchyController = TypeHierarchyController_1 = ( (__decorate([
142
139
  ( (__param(3, ICodeEditorService))),
143
140
  ( (__param(4, IInstantiationService)))
144
141
  ], TypeHierarchyController)));
145
- registerEditorContribution(TypeHierarchyController.Id, TypeHierarchyController, EditorContributionInstantiation.Eager);
142
+ registerEditorContribution(TypeHierarchyController.Id, TypeHierarchyController, 0 );
146
143
  registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
147
144
  constructor() {
148
145
  super({
149
146
  id: 'editor.showTypeHierarchy',
150
- title: ( localize2(4134, 'Peek Type Hierarchy')),
147
+ title: ( localize2(4243, 'Peek Type Hierarchy')),
151
148
  menu: {
152
149
  id: MenuId.EditorContextPeek,
153
150
  group: 'navigation',
@@ -166,19 +163,19 @@ registerAction2(class extends EditorAction2 {
166
163
  constructor() {
167
164
  super({
168
165
  id: 'editor.showSupertypes',
169
- title: ( localize2(4135, 'Show Supertypes')),
166
+ title: ( localize2(4244, 'Show Supertypes')),
170
167
  icon: Codicon.typeHierarchySuper,
171
168
  precondition: ( (ContextKeyExpr.and(
172
169
  _ctxTypeHierarchyVisible,
173
- (_ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes))
170
+ (_ctxTypeHierarchyDirection.isEqualTo("subtypes" ))
174
171
  ))),
175
172
  keybinding: {
176
- weight: KeybindingWeight.WorkbenchContrib,
177
- primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
173
+ weight: 200 ,
174
+ primary: 1024 + 512 + 38 ,
178
175
  },
179
176
  menu: {
180
177
  id: TypeHierarchyTreePeekWidget.TitleMenu,
181
- when: ( (_ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes))),
178
+ when: ( (_ctxTypeHierarchyDirection.isEqualTo("subtypes" ))),
182
179
  order: 1,
183
180
  }
184
181
  });
@@ -191,19 +188,19 @@ registerAction2(class extends EditorAction2 {
191
188
  constructor() {
192
189
  super({
193
190
  id: 'editor.showSubtypes',
194
- title: ( localize2(4136, 'Show Subtypes')),
191
+ title: ( localize2(4245, 'Show Subtypes')),
195
192
  icon: Codicon.typeHierarchySub,
196
193
  precondition: ( (ContextKeyExpr.and(
197
194
  _ctxTypeHierarchyVisible,
198
- (_ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes))
195
+ (_ctxTypeHierarchyDirection.isEqualTo("supertypes" ))
199
196
  ))),
200
197
  keybinding: {
201
- weight: KeybindingWeight.WorkbenchContrib,
202
- primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
198
+ weight: 200 ,
199
+ primary: 1024 + 512 + 38 ,
203
200
  },
204
201
  menu: {
205
202
  id: TypeHierarchyTreePeekWidget.TitleMenu,
206
- when: ( (_ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes))),
203
+ when: ( (_ctxTypeHierarchyDirection.isEqualTo("supertypes" ))),
207
204
  order: 1,
208
205
  }
209
206
  });
@@ -216,11 +213,11 @@ registerAction2(class extends EditorAction2 {
216
213
  constructor() {
217
214
  super({
218
215
  id: 'editor.refocusTypeHierarchy',
219
- title: ( localize2(4137, 'Refocus Type Hierarchy')),
216
+ title: ( localize2(4246, 'Refocus Type Hierarchy')),
220
217
  precondition: _ctxTypeHierarchyVisible,
221
218
  keybinding: {
222
- weight: KeybindingWeight.WorkbenchContrib,
223
- primary: KeyMod.Shift + KeyCode.Enter
219
+ weight: 200 ,
220
+ primary: 1024 + 3
224
221
  }
225
222
  });
226
223
  }
@@ -232,12 +229,12 @@ registerAction2(class extends EditorAction2 {
232
229
  constructor() {
233
230
  super({
234
231
  id: 'editor.closeTypeHierarchy',
235
- title: ( localize(4138, 'Close')),
232
+ title: ( localize(4247, 'Close')),
236
233
  icon: Codicon.close,
237
234
  precondition: _ctxTypeHierarchyVisible,
238
235
  keybinding: {
239
- weight: KeybindingWeight.WorkbenchContrib + 10,
240
- primary: KeyCode.Escape,
236
+ weight: 200 + 10,
237
+ primary: 9 ,
241
238
  when: ContextKeyExpr.not('config.editor.stablePeek')
242
239
  },
243
240
  menu: {
@@ -8,8 +8,7 @@ import { Event } from 'vscode/vscode/vs/base/common/event';
8
8
  import { DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
9
9
  import { EmbeddedCodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget';
10
10
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
11
- import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
12
- import { TrackedRangeStickiness, OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
11
+ import { OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
13
12
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
14
13
  import { PeekViewWidget, peekViewBorder, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground, peekViewResultsBackground, peekViewEditorMatchHighlight, IPeekViewService } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
15
14
  import { localize } from 'vscode/vscode/vs/nls';
@@ -19,28 +18,19 @@ import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.s
19
18
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
20
19
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
21
20
  import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
22
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
23
21
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
24
22
  import { themeColorFromId } from 'vscode/vscode/vs/platform/theme/common/themeService';
25
23
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
26
24
  import { Sorter, AccessibilityProvider, IdentityProvider, VirtualDelegate, TypeRenderer, DataSource } from './typeHierarchyTree.js';
27
- import { TypeHierarchyDirection } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
28
25
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
29
- import { Orientation } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
30
26
 
31
27
  var TypeHierarchyTreePeekWidget_1;
32
- var State;
33
- ( ((function(State) {
34
- State["Loading"] = "loading";
35
- State["Message"] = "message";
36
- State["Data"] = "data";
37
- })(State || (State = {}))));
38
28
  class LayoutInfo {
39
29
  static store(info, storageService) {
40
- storageService.store('typeHierarchyPeekLayout', JSON.stringify(info), StorageScope.PROFILE, StorageTarget.MACHINE);
30
+ storageService.store('typeHierarchyPeekLayout', JSON.stringify(info), 0 , 1 );
41
31
  }
42
32
  static retrieve(storageService) {
43
- const value = storageService.get('typeHierarchyPeekLayout', StorageScope.PROFILE, '{}');
33
+ const value = storageService.get('typeHierarchyPeekLayout', 0 , '{}');
44
34
  const defaultInfo = { ratio: 0.7, height: 17 };
45
35
  try {
46
36
  return { ...defaultInfo, ...JSON.parse(value) };
@@ -124,7 +114,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
124
114
  const container = document.createElement('div');
125
115
  container.classList.add('results');
126
116
  parent.appendChild(container);
127
- this._splitView = ( (new SplitView(container, { orientation: Orientation.HORIZONTAL })));
117
+ this._splitView = ( (new SplitView(container, { orientation: 1 })));
128
118
  const editorContainer = document.createElement('div');
129
119
  editorContainer.classList.add('editor');
130
120
  container.appendChild(editorContainer);
@@ -232,7 +222,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
232
222
  this._previewDisposable.clear();
233
223
  const options = {
234
224
  description: 'type-hierarchy-decoration',
235
- stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
225
+ stickiness: 1 ,
236
226
  className: 'type-decoration',
237
227
  overviewRuler: {
238
228
  color: themeColorFromId(peekViewEditorMatchHighlight),
@@ -240,7 +230,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
240
230
  },
241
231
  };
242
232
  let previewUri;
243
- if (this._direction === TypeHierarchyDirection.Supertypes) {
233
+ if (this._direction === "supertypes" ) {
244
234
  previewUri = element.parent ? element.parent.item.uri : element.model.root.uri;
245
235
  }
246
236
  else {
@@ -256,23 +246,23 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
256
246
  fullRange = !fullRange ? loc.range : Range.plusRange(loc.range, fullRange);
257
247
  }
258
248
  if (fullRange) {
259
- this._editor.revealRangeInCenter(fullRange, ScrollType.Immediate);
249
+ this._editor.revealRangeInCenter(fullRange, 1 );
260
250
  const decorationsCollection = this._editor.createDecorationsCollection(decorations);
261
251
  this._previewDisposable.add(toDisposable(() => decorationsCollection.clear()));
262
252
  }
263
253
  this._previewDisposable.add(value);
264
- const title = this._direction === TypeHierarchyDirection.Supertypes
265
- ? ( localize(9550, "Supertypes of '{0}'", element.model.root.name))
266
- : ( localize(9551, "Subtypes of '{0}'", element.model.root.name));
254
+ const title = this._direction === "supertypes"
255
+ ? ( localize(9632, "Supertypes of '{0}'", element.model.root.name))
256
+ : ( localize(9633, "Subtypes of '{0}'", element.model.root.name));
267
257
  this.setTitle(title);
268
258
  }
269
259
  showLoading() {
270
- this._parent.dataset['state'] = State.Loading;
271
- this.setTitle(( localize(9552, "Loading...")));
260
+ this._parent.dataset['state'] = "loading" ;
261
+ this.setTitle(( localize(9634, "Loading...")));
272
262
  this._show();
273
263
  }
274
264
  showMessage(message) {
275
- this._parent.dataset['state'] = State.Message;
265
+ this._parent.dataset['state'] = "message" ;
276
266
  this.setTitle('');
277
267
  this.setMetaTitle('');
278
268
  this._message.innerText = message;
@@ -286,12 +276,12 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
286
276
  const root = this._tree.getNode(model).children[0];
287
277
  await this._tree.expand(root.element);
288
278
  if (root.children.length === 0) {
289
- this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
290
- ? ( localize(9553, "No supertypes of '{0}'", model.root.name))
291
- : ( localize(9554, "No subtypes of '{0}'", model.root.name)));
279
+ this.showMessage(this._direction === "supertypes"
280
+ ? ( localize(9635, "No supertypes of '{0}'", model.root.name))
281
+ : ( localize(9636, "No subtypes of '{0}'", model.root.name)));
292
282
  }
293
283
  else {
294
- this._parent.dataset['state'] = State.Data;
284
+ this._parent.dataset['state'] = "data" ;
295
285
  if (!viewState || this._tree.getFocus().length === 0) {
296
286
  this._tree.setFocus([root.children[0].element]);
297
287
  }
@@ -315,7 +305,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
315
305
  }
316
306
  _show() {
317
307
  if (!this._isShowing) {
318
- this.editor.revealLineInCenterIfOutsideViewport(this._where.lineNumber, ScrollType.Smooth);
308
+ this.editor.revealLineInCenterIfOutsideViewport(this._where.lineNumber, 0 );
319
309
  super.show(Range.fromPositions(this._where), this._layoutInfo.height);
320
310
  }
321
311
  }
@@ -1,8 +1,8 @@
1
- import { TypeHierarchyModel, TypeHierarchyDirection } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
1
+ import { TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
2
2
  import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
3
3
  import { createMatches } from 'vscode/vscode/vs/base/common/filters';
4
4
  import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel';
5
- import { SymbolTag, SymbolKinds } from 'vscode/vscode/vs/editor/common/languages';
5
+ import { 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
8
  import { localize } from 'vscode/vscode/vs/nls';
@@ -36,7 +36,7 @@ class DataSource {
36
36
  );
37
37
  }
38
38
  const { model, item } = element;
39
- if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
39
+ if (this.getDirection() === "supertypes" ) {
40
40
  return (
41
41
  ((await model.provideSupertypes(item, CancellationToken.None)).map(item => {
42
42
  return (
@@ -95,7 +95,7 @@ class TypeRenderer {
95
95
  }
96
96
  renderElement(node, _index, template) {
97
97
  const { element, filterData } = node;
98
- const deprecated = element.item.tags?.includes(SymbolTag.Deprecated);
98
+ const deprecated = element.item.tags?.includes(1 );
99
99
  template.icon.classList.add('inline', ...ThemeIcon.asClassNameArray(SymbolKinds.toIcon(element.item.kind)));
100
100
  template.label.setLabel(element.item.name, element.item.detail, { labelEscapeNewLines: true, matches: createMatches(filterData), strikethrough: deprecated });
101
101
  }
@@ -116,14 +116,14 @@ class AccessibilityProvider {
116
116
  this.getDirection = getDirection;
117
117
  }
118
118
  getWidgetAriaLabel() {
119
- return ( localize(11245, "Type Hierarchy"));
119
+ return ( localize(11356, "Type Hierarchy"));
120
120
  }
121
121
  getAriaLabel(element) {
122
- if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
123
- return ( localize(11246, "supertypes of {0}", element.item.name));
122
+ if (this.getDirection() === "supertypes" ) {
123
+ return ( localize(11357, "supertypes of {0}", element.item.name));
124
124
  }
125
125
  else {
126
- return ( localize(11247, "subtypes of {0}", element.item.name));
126
+ return ( localize(11358, "subtypes of {0}", element.item.name));
127
127
  }
128
128
  }
129
129
  }
@@ -2,7 +2,7 @@ import { isUNC } from 'vscode/vscode/vs/base/common/extpath';
2
2
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
3
3
  import { normalize, sep } from 'vscode/vscode/vs/base/common/path';
4
4
  import { URI } from 'vscode/vscode/vs/base/common/uri';
5
- import { FileOperationError, FileOperationResult } from 'vscode/vscode/vs/platform/files/common/files';
5
+ import { FileOperationError } from 'vscode/vscode/vs/platform/files/common/files';
6
6
  import { getWebviewContentMimeType } from '../../../../platform/webview/common/mimeTypes.js';
7
7
 
8
8
  var WebviewResourceResponse;
@@ -50,7 +50,7 @@ async function loadLocalResource(requestUri, options, fileService, logService, t
50
50
  catch (err) {
51
51
  if (err instanceof FileOperationError) {
52
52
  const result = err.fileOperationResult;
53
- if (result === FileOperationResult.FILE_NOT_MODIFIED_SINCE) {
53
+ if (result === 2 ) {
54
54
  return new WebviewResourceResponse.NotModified(mime, err.options?.mtime);
55
55
  }
56
56
  }
@@ -31,19 +31,18 @@ import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/service
31
31
 
32
32
  var WebviewState;
33
33
  ( ((function(WebviewState) {
34
- let Type;
35
34
  ( ((function(Type) {
36
35
  Type[Type["Initializing"] = 0] = "Initializing";
37
36
  Type[Type["Ready"] = 1] = "Ready";
38
- })(Type = WebviewState.Type || (WebviewState.Type = {}))));
37
+ })(WebviewState.Type || (WebviewState.Type = {}))));
39
38
  class Initializing {
40
39
  constructor(pendingMessages) {
41
40
  this.pendingMessages = pendingMessages;
42
- this.type = Type.Initializing;
41
+ this.type = 0 ;
43
42
  }
44
43
  }
45
44
  WebviewState.Initializing = Initializing;
46
- WebviewState.Ready = { type: Type.Ready };
45
+ WebviewState.Ready = { type: 1 };
47
46
  })(WebviewState || (WebviewState = {}))));
48
47
  const webviewIdContext = 'webviewId';
49
48
  let WebviewElement = class WebviewElement extends Disposable {
@@ -158,7 +157,7 @@ let WebviewElement = class WebviewElement extends Disposable {
158
157
  this._hasFindResult.fire(didFind);
159
158
  }));
160
159
  this._register(this.on('fatal-error', (e) => {
161
- notificationService.error(( localize(9537, "Error loading webview: {0}", e.message)));
160
+ notificationService.error(( localize(9619, "Error loading webview: {0}", e.message)));
162
161
  this._onFatalError.fire({ message: e.message });
163
162
  }));
164
163
  this._register(this.on('did-keydown', (data) => {
@@ -239,7 +238,7 @@ let WebviewElement = class WebviewElement extends Disposable {
239
238
  this.element?.remove();
240
239
  this._element = undefined;
241
240
  this._messagePort = undefined;
242
- if (this._state.type === WebviewState.Type.Initializing) {
241
+ if (this._state.type === 0 ) {
243
242
  for (const message of this._state.pendingMessages) {
244
243
  message.resolve(false);
245
244
  }
@@ -256,7 +255,7 @@ let WebviewElement = class WebviewElement extends Disposable {
256
255
  return this._send('message', { message, transfer });
257
256
  }
258
257
  async _send(channel, data, _createElement = []) {
259
- if (this._state.type === WebviewState.Type.Initializing) {
258
+ if (this._state.type === 0 ) {
260
259
  const { promise, resolve } = promiseWithResolvers();
261
260
  this._state.pendingMessages.push({ channel, data, transferable: _createElement, resolve });
262
261
  return promise;
@@ -358,7 +357,7 @@ let WebviewElement = class WebviewElement extends Disposable {
358
357
  handlers?.forEach(handler => handler(e.data.data, e));
359
358
  };
360
359
  this.element?.classList.add('ready');
361
- if (this._state.type === WebviewState.Type.Initializing) {
360
+ if (this._state.type === 0 ) {
362
361
  this._state.pendingMessages.forEach(({ channel, data, resolve }) => resolve(this.doPostMessage(channel, data)));
363
362
  }
364
363
  this._state = WebviewState.Ready;
@@ -1,9 +1,7 @@
1
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
2
1
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
3
2
  import { localize, localize2 } from 'vscode/vscode/vs/nls';
4
3
  import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
5
4
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
6
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
7
5
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
8
6
  import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
9
7
  import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.service';
@@ -17,7 +15,7 @@ const webviewActiveContextKeyExpr = ( (ContextKeyExpr.and(
17
15
  )));
18
16
  class ShowWebViewEditorFindWidgetAction extends Action2 {
19
17
  static { this.ID = 'editor.action.webvieweditor.showFind'; }
20
- static { this.LABEL = ( localize(9763, "Show find")); }
18
+ static { this.LABEL = ( localize(9845, "Show find")); }
21
19
  constructor() {
22
20
  super({
23
21
  id: ShowWebViewEditorFindWidgetAction.ID,
@@ -27,8 +25,8 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
27
25
  webviewActiveContextKeyExpr,
28
26
  KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED
29
27
  ))),
30
- primary: KeyMod.CtrlCmd | KeyCode.KeyF,
31
- weight: KeybindingWeight.EditorContrib
28
+ primary: 2048 | 36 ,
29
+ weight: 100
32
30
  }
33
31
  });
34
32
  }
@@ -38,7 +36,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
38
36
  }
39
37
  class HideWebViewEditorFindCommand extends Action2 {
40
38
  static { this.ID = 'editor.action.webvieweditor.hideFind'; }
41
- static { this.LABEL = ( localize(9764, "Stop find")); }
39
+ static { this.LABEL = ( localize(9846, "Stop find")); }
42
40
  constructor() {
43
41
  super({
44
42
  id: HideWebViewEditorFindCommand.ID,
@@ -48,8 +46,8 @@ class HideWebViewEditorFindCommand extends Action2 {
48
46
  webviewActiveContextKeyExpr,
49
47
  KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE
50
48
  ))),
51
- primary: KeyCode.Escape,
52
- weight: KeybindingWeight.EditorContrib
49
+ primary: 9 ,
50
+ weight: 100
53
51
  }
54
52
  });
55
53
  }
@@ -59,7 +57,7 @@ class HideWebViewEditorFindCommand extends Action2 {
59
57
  }
60
58
  class WebViewEditorFindNextCommand extends Action2 {
61
59
  static { this.ID = 'editor.action.webvieweditor.findNext'; }
62
- static { this.LABEL = ( localize(9765, 'Find next')); }
60
+ static { this.LABEL = ( localize(9847, 'Find next')); }
63
61
  constructor() {
64
62
  super({
65
63
  id: WebViewEditorFindNextCommand.ID,
@@ -69,8 +67,8 @@ class WebViewEditorFindNextCommand extends Action2 {
69
67
  webviewActiveContextKeyExpr,
70
68
  KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED
71
69
  ))),
72
- primary: KeyCode.Enter,
73
- weight: KeybindingWeight.EditorContrib
70
+ primary: 3 ,
71
+ weight: 100
74
72
  }
75
73
  });
76
74
  }
@@ -80,7 +78,7 @@ class WebViewEditorFindNextCommand extends Action2 {
80
78
  }
81
79
  class WebViewEditorFindPreviousCommand extends Action2 {
82
80
  static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
83
- static { this.LABEL = ( localize(9766, 'Find previous')); }
81
+ static { this.LABEL = ( localize(9848, 'Find previous')); }
84
82
  constructor() {
85
83
  super({
86
84
  id: WebViewEditorFindPreviousCommand.ID,
@@ -90,8 +88,8 @@ class WebViewEditorFindPreviousCommand extends Action2 {
90
88
  webviewActiveContextKeyExpr,
91
89
  KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED
92
90
  ))),
93
- primary: KeyMod.Shift | KeyCode.Enter,
94
- weight: KeybindingWeight.EditorContrib
91
+ primary: 1024 | 3 ,
92
+ weight: 100
95
93
  }
96
94
  });
97
95
  }
@@ -101,7 +99,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
101
99
  }
102
100
  class ReloadWebviewAction extends Action2 {
103
101
  static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
104
- static { this.LABEL = ( localize2(9767, "Reload Webviews")); }
102
+ static { this.LABEL = ( localize2(9849, "Reload Webviews")); }
105
103
  constructor() {
106
104
  super({
107
105
  id: ReloadWebviewAction.ID,
@@ -3,10 +3,9 @@ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
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
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
7
6
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
7
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
9
- import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
8
+ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
10
9
  import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
11
10
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
12
11
  import { ShowWebViewEditorFindWidgetAction, HideWebViewEditorFindCommand, WebViewEditorFindNextCommand, WebViewEditorFindPreviousCommand, ReloadWebviewAction } from './webviewCommands.js';
@@ -17,7 +16,7 @@ import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbench
17
16
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
18
17
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
19
18
 
20
- (( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(4320, "webview editor"))), [( (new SyncDescriptor(WebviewInput)))]);
19
+ (( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(4429, "webview editor"))), [( (new SyncDescriptor(WebviewInput)))]);
21
20
  let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
22
21
  static { this.ID = 'workbench.contrib.webviewPanel'; }
23
22
  constructor(editorService, editorGroupService) {
@@ -55,7 +54,7 @@ WebviewPanelContribution = ( (__decorate([
55
54
  ( (__param(0, IEditorService))),
56
55
  ( (__param(1, IEditorGroupsService)))
57
56
  ], WebviewPanelContribution)));
58
- registerWorkbenchContribution2(WebviewPanelContribution.ID, WebviewPanelContribution, WorkbenchPhase.BlockStartup);
57
+ registerWorkbenchContribution2(WebviewPanelContribution.ID, WebviewPanelContribution, 1 );
59
58
  ( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(WebviewEditorInputSerializer.ID, WebviewEditorInputSerializer);
60
59
  registerAction2(ShowWebViewEditorFindWidgetAction);
61
60
  registerAction2(HideWebViewEditorFindCommand);
@@ -11,7 +11,6 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
11
11
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
12
12
  import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
13
13
  import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
14
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
15
14
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
16
15
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
17
16
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
@@ -19,7 +18,7 @@ import { ViewPane, ViewPaneShowActions } from 'vscode/vscode/vs/workbench/browse
19
18
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
20
19
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
21
20
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
22
- import { ExtensionKeyedWebviewOriginStore, WebviewContentPurpose } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
21
+ import { ExtensionKeyedWebviewOriginStore } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
23
22
  import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.service';
24
23
  import { WebviewWindowDragMonitor } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor';
25
24
  import { IWebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service';
@@ -58,7 +57,7 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
58
57
  this.extensionId = options.fromExtensionId;
59
58
  this.defaultTitle = this.title;
60
59
  this.memento = ( new Memento(`webviewView.${this.id}`, storageService));
61
- this.viewState = this.memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
60
+ this.viewState = this.memento.getMemento(1 , 1 );
62
61
  this._register(this.onDidChangeBodyVisibility(() => this.updateTreeVisibility()));
63
62
  this._register(this.webviewViewService.onNewResolverRegistered(e => {
64
63
  if (e.viewType === this.id) {
@@ -122,7 +121,7 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
122
121
  origin,
123
122
  providedViewType: this.id,
124
123
  title: this.title,
125
- options: { purpose: WebviewContentPurpose.WebviewView },
124
+ options: { purpose: "webviewView" },
126
125
  contentOptions: {},
127
126
  extension: this.extensionId ? { id: this.extensionId } : undefined
128
127
  });