@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.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.
- package/index.d.ts +3 -1
- package/index.js +110 -1
- package/package.json +64 -10
- package/service-override/tools/editorAssets.d.ts +1 -0
- package/service-override/tools/editorAssets.js +5 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
- package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
- package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
- package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
- package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
- package/tools/editorAssets.js +0 -4
- package/tools/url.js +0 -10
- package/viewCommon.js +0 -109
|
@@ -1,32 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
1
3
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
2
4
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
5
|
import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
4
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
5
8
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
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
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
7
10
|
import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
8
|
-
import { WebviewEditor } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
9
|
-
import { WebviewInput } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
11
|
+
import { WebviewEditor } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
10
13
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
11
14
|
|
|
12
|
-
const webviewActiveContextKeyExpr = (
|
|
13
|
-
(ContextKeyExpr.equals('activeEditor', WebviewEditor.ID)),
|
|
14
|
-
(EditorContextKeys.focus.toNegated())
|
|
15
|
-
)));
|
|
15
|
+
const webviewActiveContextKeyExpr = ( ContextKeyExpr.and(( ContextKeyExpr.equals('activeEditor', WebviewEditor.ID)), ( EditorContextKeys.focus.toNegated() )));
|
|
16
16
|
class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
17
17
|
static { this.ID = 'editor.action.webvieweditor.showFind'; }
|
|
18
|
-
static { this.LABEL = ( localize(
|
|
18
|
+
static { this.LABEL = ( localize(10710, "Show find")); }
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: ShowWebViewEditorFindWidgetAction.ID,
|
|
22
22
|
title: ShowWebViewEditorFindWidgetAction.LABEL,
|
|
23
23
|
keybinding: {
|
|
24
|
-
when: (
|
|
24
|
+
when: ( ContextKeyExpr.and(
|
|
25
25
|
webviewActiveContextKeyExpr,
|
|
26
26
|
KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED
|
|
27
|
-
))
|
|
28
|
-
primary:
|
|
29
|
-
weight:
|
|
27
|
+
)),
|
|
28
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyF,
|
|
29
|
+
weight: KeybindingWeight.EditorContrib
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -36,18 +36,18 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
36
36
|
}
|
|
37
37
|
class HideWebViewEditorFindCommand extends Action2 {
|
|
38
38
|
static { this.ID = 'editor.action.webvieweditor.hideFind'; }
|
|
39
|
-
static { this.LABEL = ( localize(
|
|
39
|
+
static { this.LABEL = ( localize(10711, "Stop find")); }
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: HideWebViewEditorFindCommand.ID,
|
|
43
43
|
title: HideWebViewEditorFindCommand.LABEL,
|
|
44
44
|
keybinding: {
|
|
45
|
-
when: (
|
|
45
|
+
when: ( ContextKeyExpr.and(
|
|
46
46
|
webviewActiveContextKeyExpr,
|
|
47
47
|
KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE
|
|
48
|
-
))
|
|
49
|
-
primary:
|
|
50
|
-
weight:
|
|
48
|
+
)),
|
|
49
|
+
primary: KeyCode.Escape,
|
|
50
|
+
weight: KeybindingWeight.EditorContrib
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -57,18 +57,18 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
class WebViewEditorFindNextCommand extends Action2 {
|
|
59
59
|
static { this.ID = 'editor.action.webvieweditor.findNext'; }
|
|
60
|
-
static { this.LABEL = ( localize(
|
|
60
|
+
static { this.LABEL = ( localize(10712, 'Find next')); }
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: WebViewEditorFindNextCommand.ID,
|
|
64
64
|
title: WebViewEditorFindNextCommand.LABEL,
|
|
65
65
|
keybinding: {
|
|
66
|
-
when: (
|
|
66
|
+
when: ( ContextKeyExpr.and(
|
|
67
67
|
webviewActiveContextKeyExpr,
|
|
68
68
|
KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED
|
|
69
|
-
))
|
|
70
|
-
primary:
|
|
71
|
-
weight:
|
|
69
|
+
)),
|
|
70
|
+
primary: KeyCode.Enter,
|
|
71
|
+
weight: KeybindingWeight.EditorContrib
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -78,18 +78,18 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
78
78
|
}
|
|
79
79
|
class WebViewEditorFindPreviousCommand extends Action2 {
|
|
80
80
|
static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
|
|
81
|
-
static { this.LABEL = ( localize(
|
|
81
|
+
static { this.LABEL = ( localize(10713, 'Find previous')); }
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: WebViewEditorFindPreviousCommand.ID,
|
|
85
85
|
title: WebViewEditorFindPreviousCommand.LABEL,
|
|
86
86
|
keybinding: {
|
|
87
|
-
when: (
|
|
87
|
+
when: ( ContextKeyExpr.and(
|
|
88
88
|
webviewActiveContextKeyExpr,
|
|
89
89
|
KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED
|
|
90
|
-
))
|
|
91
|
-
primary:
|
|
92
|
-
weight:
|
|
90
|
+
)),
|
|
91
|
+
primary: KeyMod.Shift | KeyCode.Enter,
|
|
92
|
+
weight: KeybindingWeight.EditorContrib
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -99,7 +99,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
99
99
|
}
|
|
100
100
|
class ReloadWebviewAction extends Action2 {
|
|
101
101
|
static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
|
|
102
|
-
static { this.LABEL = ( localize2(
|
|
102
|
+
static { this.LABEL = ( localize2(10714, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { IEditorSerializer } from "vscode/vscode/vs/workbench/common/editor";
|
|
4
|
+
import { WebviewContentOptions, WebviewExtensionDescription, WebviewOptions } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
|
+
import { WebviewIcons } from "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewIconManager";
|
|
6
|
+
import { WebviewInput } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
7
|
+
import { IWebviewWorkbenchService } from "vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
8
|
+
export type SerializedWebviewOptions = WebviewOptions & WebviewContentOptions;
|
|
9
|
+
interface SerializedIconPath {
|
|
10
|
+
light: string | UriComponents;
|
|
11
|
+
dark: string | UriComponents;
|
|
12
|
+
}
|
|
13
|
+
export interface SerializedWebview {
|
|
14
|
+
readonly origin: string | undefined;
|
|
15
|
+
readonly viewType: string;
|
|
16
|
+
readonly providedId: string | undefined;
|
|
17
|
+
readonly title: string;
|
|
18
|
+
readonly options: SerializedWebviewOptions;
|
|
19
|
+
readonly extensionLocation: UriComponents | undefined;
|
|
20
|
+
readonly extensionId: string | undefined;
|
|
21
|
+
readonly state: any;
|
|
22
|
+
readonly iconPath: SerializedIconPath | undefined;
|
|
23
|
+
readonly group?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DeserializedWebview {
|
|
26
|
+
readonly origin: string | undefined;
|
|
27
|
+
readonly viewType: string;
|
|
28
|
+
readonly providedId: string | undefined;
|
|
29
|
+
readonly title: string;
|
|
30
|
+
readonly webviewOptions: WebviewOptions;
|
|
31
|
+
readonly contentOptions: WebviewContentOptions;
|
|
32
|
+
readonly extension: WebviewExtensionDescription | undefined;
|
|
33
|
+
readonly state: any;
|
|
34
|
+
readonly iconPath: WebviewIcons | undefined;
|
|
35
|
+
readonly group?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare class WebviewEditorInputSerializer implements IEditorSerializer {
|
|
38
|
+
private readonly _webviewWorkbenchService;
|
|
39
|
+
static readonly ID: string;
|
|
40
|
+
constructor(_webviewWorkbenchService: IWebviewWorkbenchService);
|
|
41
|
+
canSerialize(input: WebviewInput): boolean;
|
|
42
|
+
serialize(input: WebviewInput): string | undefined;
|
|
43
|
+
deserialize(_instantiationService: IInstantiationService, serializedEditorInput: string): WebviewInput;
|
|
44
|
+
protected fromJson(data: SerializedWebview): DeserializedWebview;
|
|
45
|
+
protected toJson(input: WebviewInput): SerializedWebview;
|
|
46
|
+
}
|
|
47
|
+
export declare function reviveWebviewExtensionDescription(extensionId: string | undefined, extensionLocation: UriComponents | undefined): WebviewExtensionDescription | undefined;
|
|
48
|
+
export declare function restoreWebviewOptions(options: SerializedWebviewOptions): WebviewOptions;
|
|
49
|
+
export declare function restoreWebviewContentOptions(options: SerializedWebviewOptions): WebviewContentOptions;
|
|
50
|
+
export {};
|
package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
4
|
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
4
|
-
import { WebviewInput } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
5
|
+
import { WebviewInput } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
5
6
|
import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
6
7
|
|
|
7
8
|
let WebviewEditorInputSerializer = class WebviewEditorInputSerializer {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
5
|
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
6
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
7
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
6
8
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
|
-
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
8
|
-
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
|
|
10
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
11
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
10
12
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
11
13
|
import { ShowWebViewEditorFindWidgetAction, HideWebViewEditorFindCommand, WebViewEditorFindNextCommand, WebViewEditorFindPreviousCommand, ReloadWebviewAction } from './webviewCommands.js';
|
|
12
|
-
import { WebviewEditor } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
13
|
-
import { WebviewInput } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
14
|
+
import { WebviewEditor } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
15
|
+
import { WebviewInput } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
14
16
|
import { WebviewEditorInputSerializer } from './webviewEditorInputSerializer.js';
|
|
15
|
-
import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
|
|
17
|
+
import '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
|
|
16
18
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
19
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
18
20
|
|
|
19
|
-
((
|
|
21
|
+
(( Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(10716, "webview editor"))), [( new SyncDescriptor(WebviewInput))]);
|
|
20
22
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
21
23
|
static { this.ID = 'workbench.contrib.webviewPanel'; }
|
|
22
24
|
constructor(editorService, editorGroupService) {
|
|
@@ -50,12 +52,12 @@ let WebviewPanelContribution = class WebviewPanelContribution extends Disposable
|
|
|
50
52
|
previousGroup.closeEditor(editor);
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
|
-
WebviewPanelContribution = (
|
|
54
|
-
(
|
|
55
|
-
(
|
|
56
|
-
], WebviewPanelContribution))
|
|
57
|
-
registerWorkbenchContribution2(WebviewPanelContribution.ID, WebviewPanelContribution,
|
|
58
|
-
(
|
|
55
|
+
WebviewPanelContribution = ( __decorate([
|
|
56
|
+
( __param(0, IEditorService)),
|
|
57
|
+
( __param(1, IEditorGroupsService))
|
|
58
|
+
], WebviewPanelContribution));
|
|
59
|
+
registerWorkbenchContribution2(WebviewPanelContribution.ID, WebviewPanelContribution, WorkbenchPhase.BlockStartup);
|
|
60
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(WebviewEditorInputSerializer.ID, WebviewEditorInputSerializer);
|
|
59
61
|
registerAction2(ShowWebViewEditorFindWidgetAction);
|
|
60
62
|
registerAction2(HideWebViewEditorFindCommand);
|
|
61
63
|
registerAction2(WebViewEditorFindNextCommand);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
2
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
3
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
4
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
6
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
7
|
+
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
8
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
9
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
10
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
11
|
+
import { ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
12
|
+
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
13
|
+
import { IViewBadge } from "vscode/vscode/vs/workbench/common/views";
|
|
14
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
15
|
+
import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
16
|
+
import { IWebviewService } from "vscode/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
17
|
+
import { IWebviewViewService } from "vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service";
|
|
18
|
+
import { IActivityService } from "vscode/vscode/vs/workbench/services/activity/common/activity.service";
|
|
19
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
20
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
21
|
+
export declare class WebviewViewPane extends ViewPane {
|
|
22
|
+
private readonly activityService;
|
|
23
|
+
private readonly extensionService;
|
|
24
|
+
private readonly progressService;
|
|
25
|
+
private readonly storageService;
|
|
26
|
+
private readonly viewService;
|
|
27
|
+
private readonly webviewService;
|
|
28
|
+
private readonly webviewViewService;
|
|
29
|
+
private static _originStore?;
|
|
30
|
+
private static getOriginStore;
|
|
31
|
+
private readonly _webview;
|
|
32
|
+
private readonly _webviewDisposables;
|
|
33
|
+
private _activated;
|
|
34
|
+
private _container?;
|
|
35
|
+
private _rootContainer?;
|
|
36
|
+
private _resizeObserver?;
|
|
37
|
+
private readonly defaultTitle;
|
|
38
|
+
private setTitle;
|
|
39
|
+
private badge;
|
|
40
|
+
private readonly activity;
|
|
41
|
+
private readonly memento;
|
|
42
|
+
private readonly viewState;
|
|
43
|
+
private readonly extensionId?;
|
|
44
|
+
private _repositionTimeout?;
|
|
45
|
+
constructor(options: IViewletViewOptions, configurationService: IConfigurationService, contextKeyService: IContextKeyService, contextMenuService: IContextMenuService, instantiationService: IInstantiationService, keybindingService: IKeybindingService, openerService: IOpenerService, telemetryService: ITelemetryService, hoverService: IHoverService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, activityService: IActivityService, extensionService: IExtensionService, progressService: IProgressService, storageService: IStorageService, viewService: IViewsService, webviewService: IWebviewService, webviewViewService: IWebviewViewService);
|
|
46
|
+
private readonly _onDidChangeVisibility;
|
|
47
|
+
readonly onDidChangeVisibility: import("vscode/vscode/vs/base/common/event").Event<boolean>;
|
|
48
|
+
private readonly _onDispose;
|
|
49
|
+
readonly onDispose: import("vscode/vscode/vs/base/common/event").Event<void>;
|
|
50
|
+
dispose(): void;
|
|
51
|
+
focus(): void;
|
|
52
|
+
protected renderBody(container: HTMLElement): void;
|
|
53
|
+
saveState(): void;
|
|
54
|
+
protected layoutBody(height: number, width: number): void;
|
|
55
|
+
private updateTreeVisibility;
|
|
56
|
+
private activate;
|
|
57
|
+
protected updateTitle(value: string | undefined): void;
|
|
58
|
+
protected updateBadge(badge: IViewBadge | undefined): void;
|
|
59
|
+
private withProgress;
|
|
60
|
+
onDidScrollRoot(): void;
|
|
61
|
+
private doLayoutWebview;
|
|
62
|
+
private layoutWebview;
|
|
63
|
+
private findRootContainer;
|
|
64
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Dimension, getWindow, EventType, addDisposableListener, findParentWithClass } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
4
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
5
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
@@ -11,18 +12,19 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
|
|
|
11
12
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
12
13
|
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
13
14
|
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
15
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
14
16
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
15
17
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
16
18
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
17
|
-
import { ViewPane, ViewPaneShowActions } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
18
|
-
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
19
|
+
import { ViewPane, ViewPaneShowActions } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
20
|
+
import { Memento } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/common/memento';
|
|
19
21
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
20
22
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
21
|
-
import { ExtensionKeyedWebviewOriginStore } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
23
|
+
import { ExtensionKeyedWebviewOriginStore, WebviewContentPurpose } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
22
24
|
import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
23
|
-
import { WebviewWindowDragMonitor } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor';
|
|
25
|
+
import { WebviewWindowDragMonitor } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor';
|
|
24
26
|
import { IWebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service';
|
|
25
|
-
import { NumberBadge } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
27
|
+
import { NumberBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity';
|
|
26
28
|
import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
|
|
27
29
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
28
30
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
@@ -57,7 +59,7 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
|
|
|
57
59
|
this.extensionId = options.fromExtensionId;
|
|
58
60
|
this.defaultTitle = this.title;
|
|
59
61
|
this.memento = ( new Memento(`webviewView.${this.id}`, storageService));
|
|
60
|
-
this.viewState = this.memento.getMemento(
|
|
62
|
+
this.viewState = this.memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
61
63
|
this._register(this.onDidChangeBodyVisibility(() => this.updateTreeVisibility()));
|
|
62
64
|
this._register(this.webviewViewService.onNewResolverRegistered(e => {
|
|
63
65
|
if (e.viewType === this.id) {
|
|
@@ -121,7 +123,7 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
|
|
|
121
123
|
origin,
|
|
122
124
|
providedViewType: this.id,
|
|
123
125
|
title: this.title,
|
|
124
|
-
options: { purpose:
|
|
126
|
+
options: { purpose: WebviewContentPurpose.WebviewView },
|
|
125
127
|
contentOptions: {},
|
|
126
128
|
extension: this.extensionId ? { id: this.extensionId } : undefined
|
|
127
129
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
3
|
+
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { IViewBadge } from "vscode/vscode/vs/workbench/common/views";
|
|
5
|
+
import { IOverlayWebview } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
6
|
+
import { IWebviewViewService } from "vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service";
|
|
7
|
+
export interface WebviewView {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
badge?: IViewBadge;
|
|
11
|
+
readonly webview: IOverlayWebview;
|
|
12
|
+
readonly onDidChangeVisibility: Event<boolean>;
|
|
13
|
+
readonly onDispose: Event<void>;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
show(preserveFocus: boolean): void;
|
|
16
|
+
}
|
|
17
|
+
export interface IWebviewViewResolver {
|
|
18
|
+
resolve(webviewView: WebviewView, cancellation: CancellationToken): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export declare class WebviewViewService extends Disposable implements IWebviewViewService {
|
|
21
|
+
readonly _serviceBrand: undefined;
|
|
22
|
+
private readonly _resolvers;
|
|
23
|
+
private readonly _awaitingRevival;
|
|
24
|
+
private readonly _onNewResolverRegistered;
|
|
25
|
+
readonly onNewResolverRegistered: Event<{
|
|
26
|
+
readonly viewType: string;
|
|
27
|
+
}>;
|
|
28
|
+
register(viewType: string, resolver: IWebviewViewResolver): IDisposable;
|
|
29
|
+
resolve(viewType: string, webview: WebviewView, cancellation: CancellationToken): Promise<void>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IEditorPaneService } from "vscode/vscode/vs/workbench/services/editor/common/editorPaneService.service";
|
|
2
|
+
export declare class EditorPaneService implements IEditorPaneService {
|
|
3
|
+
readonly _serviceBrand: undefined;
|
|
4
|
+
readonly onWillInstantiateEditorPane: import("vscode/vscode/vs/base/common/event").Event<import("vscode/vscode/vs/workbench/common/editor").IWillInstantiateEditorPaneEvent>;
|
|
5
|
+
didInstantiateEditorPane(typeId: string): boolean;
|
|
6
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
3
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
|
|
4
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
3
5
|
|
|
4
6
|
class EditorPaneService {
|
|
5
7
|
constructor() {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as glob from "vscode/vscode/vs/base/common/glob";
|
|
2
|
+
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { IUntypedEditorInput } from "vscode/vscode/vs/workbench/common/editor";
|
|
6
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
|
+
import { RegisteredEditorInfo, RegisteredEditorOptions, EditorAssociations, ResolvedEditor, EditorInputFactoryObject } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService";
|
|
8
|
+
import { IEditorResolverService } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
9
|
+
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
10
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
11
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
12
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
13
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
14
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
15
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
16
|
+
import { PreferredGroup } from "vscode/vscode/vs/workbench/services/editor/common/editorService";
|
|
17
|
+
export declare class EditorResolverService extends Disposable implements IEditorResolverService {
|
|
18
|
+
private readonly editorGroupService;
|
|
19
|
+
private readonly instantiationService;
|
|
20
|
+
private readonly configurationService;
|
|
21
|
+
private readonly quickInputService;
|
|
22
|
+
private readonly notificationService;
|
|
23
|
+
private readonly telemetryService;
|
|
24
|
+
private readonly storageService;
|
|
25
|
+
private readonly extensionService;
|
|
26
|
+
private readonly logService;
|
|
27
|
+
readonly _serviceBrand: undefined;
|
|
28
|
+
private readonly _onDidChangeEditorRegistrations;
|
|
29
|
+
readonly onDidChangeEditorRegistrations: import("vscode/vscode/vs/base/common/event").Event<void>;
|
|
30
|
+
private static readonly configureDefaultID;
|
|
31
|
+
private static readonly cacheStorageID;
|
|
32
|
+
private static readonly conflictingDefaultsStorageID;
|
|
33
|
+
private _editors;
|
|
34
|
+
private _flattenedEditors;
|
|
35
|
+
private _shouldReFlattenEditors;
|
|
36
|
+
private cache;
|
|
37
|
+
constructor(editorGroupService: IEditorGroupsService, instantiationService: IInstantiationService, configurationService: IConfigurationService, quickInputService: IQuickInputService, notificationService: INotificationService, telemetryService: ITelemetryService, storageService: IStorageService, extensionService: IExtensionService, logService: ILogService);
|
|
38
|
+
private resolveUntypedInputAndGroup;
|
|
39
|
+
resolveEditor(editor: IUntypedEditorInput, preferredGroup: PreferredGroup | undefined): Promise<ResolvedEditor>;
|
|
40
|
+
private doResolveSideBySideEditor;
|
|
41
|
+
bufferChangeEvents(callback: Function): void;
|
|
42
|
+
registerEditor(globPattern: string | glob.IRelativePattern, editorInfo: RegisteredEditorInfo, options: RegisteredEditorOptions, editorFactoryObject: EditorInputFactoryObject): IDisposable;
|
|
43
|
+
getAssociationsForResource(resource: URI): EditorAssociations;
|
|
44
|
+
getAllUserAssociations(): EditorAssociations;
|
|
45
|
+
private _flattenEditorsMap;
|
|
46
|
+
private get _registeredEditors();
|
|
47
|
+
updateUserAssociations(globPattern: string, editorID: string): void;
|
|
48
|
+
private findMatchingEditors;
|
|
49
|
+
getEditors(resource?: URI): RegisteredEditorInfo[];
|
|
50
|
+
private getEditor;
|
|
51
|
+
private doResolveEditor;
|
|
52
|
+
private moveExistingEditorForResource;
|
|
53
|
+
private findExistingEditorsForResource;
|
|
54
|
+
private doHandleConflictingDefaults;
|
|
55
|
+
private mapEditorsToQuickPickEntry;
|
|
56
|
+
private doPickEditor;
|
|
57
|
+
private sendEditorResolutionTelemetry;
|
|
58
|
+
private cacheEditors;
|
|
59
|
+
private resourceMatchesCache;
|
|
60
|
+
}
|