@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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { DEFAULT_FONT_FAMILY } from 'vscode/vscode/vs/base/browser/fonts';
|
|
3
4
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -16,7 +17,7 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
|
16
17
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
17
18
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
18
19
|
import { ColorScheme } from 'vscode/vscode/vs/platform/theme/common/theme';
|
|
19
|
-
import { IWorkbenchThemeService } from 'vscode/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
|
|
20
|
+
import { IWorkbenchThemeService } from '@codingame/monaco-vscode-3dd5b442-bfbc-5b1d-8f4a-7567530c75f5-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
|
|
20
21
|
|
|
21
22
|
let WebviewThemeDataProvider = class WebviewThemeDataProvider extends Disposable {
|
|
22
23
|
constructor(_themeService, _configurationService) {
|
|
@@ -79,13 +80,13 @@ WebviewThemeDataProvider = ( __decorate([
|
|
|
79
80
|
( __param(1, IConfigurationService))
|
|
80
81
|
], WebviewThemeDataProvider));
|
|
81
82
|
var ApiThemeClassName;
|
|
82
|
-
( (
|
|
83
|
+
(function (ApiThemeClassName) {
|
|
83
84
|
ApiThemeClassName["light"] = "vscode-light";
|
|
84
85
|
ApiThemeClassName["dark"] = "vscode-dark";
|
|
85
86
|
ApiThemeClassName["highContrast"] = "vscode-high-contrast";
|
|
86
87
|
ApiThemeClassName["highContrastLight"] = "vscode-high-contrast-light";
|
|
87
|
-
})(ApiThemeClassName || (ApiThemeClassName = {}))
|
|
88
|
-
( (
|
|
88
|
+
})(ApiThemeClassName || (ApiThemeClassName = {}));
|
|
89
|
+
(function (ApiThemeClassName) {
|
|
89
90
|
function fromTheme(theme) {
|
|
90
91
|
switch (theme.type) {
|
|
91
92
|
case ColorScheme.LIGHT: return ApiThemeClassName.light;
|
|
@@ -95,6 +96,6 @@ var ApiThemeClassName;
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
ApiThemeClassName.fromTheme = fromTheme;
|
|
98
|
-
})(ApiThemeClassName || (ApiThemeClassName = {}))
|
|
99
|
+
})(ApiThemeClassName || (ApiThemeClassName = {}));
|
|
99
100
|
|
|
100
101
|
export { WebviewThemeDataProvider };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { IMouseWheelEvent } from "vscode/vscode/vs/base/browser/mouseEvent";
|
|
2
|
+
import { VSBufferReadableStream } from "vscode/vscode/vs/base/common/buffer";
|
|
3
|
+
import { Emitter, Event } from "vscode/vscode/vs/base/common/event";
|
|
4
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
5
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
6
|
+
import { IAccessibilityService } from "vscode/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
7
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
8
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
9
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
10
|
+
import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
|
|
11
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
12
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
14
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
15
|
+
import { IRemoteAuthorityResolverService } from "vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service";
|
|
16
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
17
|
+
import { ITunnelService } from "vscode/vscode/vs/platform/tunnel/common/tunnel.service";
|
|
18
|
+
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
19
|
+
import { IWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
20
|
+
import { WebviewFindDelegate, WebviewFindWidget } from "./webviewFindWidget.js";
|
|
21
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
22
|
+
import { CodeWindow } from "vscode/vscode/vs/base/browser/window";
|
|
23
|
+
export declare class WebviewElement extends Disposable implements IWebview, WebviewFindDelegate {
|
|
24
|
+
protected readonly webviewThemeDataProvider: WebviewThemeDataProvider;
|
|
25
|
+
private readonly _environmentService;
|
|
26
|
+
private readonly _fileService;
|
|
27
|
+
private readonly _logService;
|
|
28
|
+
private readonly _remoteAuthorityResolverService;
|
|
29
|
+
private readonly _telemetryService;
|
|
30
|
+
private readonly _tunnelService;
|
|
31
|
+
private readonly _accessibilityService;
|
|
32
|
+
protected readonly id: string;
|
|
33
|
+
readonly providedViewType?: string;
|
|
34
|
+
readonly origin: string;
|
|
35
|
+
private _windowId;
|
|
36
|
+
private get window();
|
|
37
|
+
private _encodedWebviewOriginPromise?;
|
|
38
|
+
private _encodedWebviewOrigin;
|
|
39
|
+
protected get platform(): string;
|
|
40
|
+
private readonly _expectedServiceWorkerVersion;
|
|
41
|
+
private _element;
|
|
42
|
+
protected get element(): HTMLIFrameElement | undefined;
|
|
43
|
+
private _focused;
|
|
44
|
+
get isFocused(): boolean;
|
|
45
|
+
private _state;
|
|
46
|
+
private _content;
|
|
47
|
+
private readonly _portMappingManager;
|
|
48
|
+
private readonly _resourceLoadingCts;
|
|
49
|
+
private _contextKeyService;
|
|
50
|
+
private _confirmBeforeClose;
|
|
51
|
+
private readonly _focusDelayer;
|
|
52
|
+
private readonly _onDidHtmlChange;
|
|
53
|
+
protected readonly onDidHtmlChange: Event<string>;
|
|
54
|
+
private _messagePort?;
|
|
55
|
+
private readonly _messageHandlers;
|
|
56
|
+
protected readonly _webviewFindWidget: WebviewFindWidget | undefined;
|
|
57
|
+
readonly checkImeCompletionState = true;
|
|
58
|
+
private _disposed;
|
|
59
|
+
extension: WebviewExtensionDescription | undefined;
|
|
60
|
+
private readonly _options;
|
|
61
|
+
constructor(initInfo: WebviewInitInfo, webviewThemeDataProvider: WebviewThemeDataProvider, configurationService: IConfigurationService, contextMenuService: IContextMenuService, notificationService: INotificationService, _environmentService: IWorkbenchEnvironmentService, _fileService: IFileService, _logService: ILogService, _remoteAuthorityResolverService: IRemoteAuthorityResolverService, _telemetryService: ITelemetryService, _tunnelService: ITunnelService, instantiationService: IInstantiationService, _accessibilityService: IAccessibilityService);
|
|
62
|
+
dispose(): void;
|
|
63
|
+
setContextKeyService(contextKeyService: IContextKeyService): void;
|
|
64
|
+
private readonly _onMissingCsp;
|
|
65
|
+
readonly onMissingCsp: Event<ExtensionIdentifier>;
|
|
66
|
+
private readonly _onDidClickLink;
|
|
67
|
+
readonly onDidClickLink: Event<string>;
|
|
68
|
+
private readonly _onDidReload;
|
|
69
|
+
readonly onDidReload: Event<void>;
|
|
70
|
+
private readonly _onMessage;
|
|
71
|
+
readonly onMessage: Event<WebviewMessageReceivedEvent>;
|
|
72
|
+
private readonly _onDidScroll;
|
|
73
|
+
readonly onDidScroll: Event<{
|
|
74
|
+
readonly scrollYPercentage: number;
|
|
75
|
+
}>;
|
|
76
|
+
private readonly _onDidWheel;
|
|
77
|
+
readonly onDidWheel: Event<IMouseWheelEvent>;
|
|
78
|
+
private readonly _onDidUpdateState;
|
|
79
|
+
readonly onDidUpdateState: Event<string | undefined>;
|
|
80
|
+
private readonly _onDidFocus;
|
|
81
|
+
readonly onDidFocus: Event<void>;
|
|
82
|
+
private readonly _onDidBlur;
|
|
83
|
+
readonly onDidBlur: Event<void>;
|
|
84
|
+
private readonly _onFatalError;
|
|
85
|
+
readonly onFatalError: Event<{
|
|
86
|
+
readonly message: string;
|
|
87
|
+
}>;
|
|
88
|
+
private readonly _onDidDispose;
|
|
89
|
+
readonly onDidDispose: Event<void>;
|
|
90
|
+
postMessage(message: any, transfer?: ArrayBuffer[]): Promise<boolean>;
|
|
91
|
+
private _send;
|
|
92
|
+
private _createElement;
|
|
93
|
+
private _initElement;
|
|
94
|
+
mountTo(element: HTMLElement, targetWindow: CodeWindow): void;
|
|
95
|
+
private _registerMessageHandler;
|
|
96
|
+
private _startBlockingIframeDragEvents;
|
|
97
|
+
private _stopBlockingIframeDragEvents;
|
|
98
|
+
protected webviewContentEndpoint(encodedWebviewOrigin: string): string;
|
|
99
|
+
private doPostMessage;
|
|
100
|
+
private on;
|
|
101
|
+
private _hasAlertedAboutMissingCsp;
|
|
102
|
+
private handleNoCspFound;
|
|
103
|
+
reload(): void;
|
|
104
|
+
setHtml(html: string): void;
|
|
105
|
+
setTitle(title: string): void;
|
|
106
|
+
set contentOptions(options: WebviewContentOptions);
|
|
107
|
+
set localResourcesRoot(resources: readonly URI[]);
|
|
108
|
+
set state(state: string | undefined);
|
|
109
|
+
set initialScrollProgress(value: number);
|
|
110
|
+
private doUpdateContent;
|
|
111
|
+
protected style(): void;
|
|
112
|
+
protected handleFocusChange(isFocused: boolean): void;
|
|
113
|
+
private handleKeyEvent;
|
|
114
|
+
private handleDragEvent;
|
|
115
|
+
windowDidDragStart(): void;
|
|
116
|
+
windowDidDragEnd(): void;
|
|
117
|
+
selectAll(): void;
|
|
118
|
+
copy(): void;
|
|
119
|
+
paste(): void;
|
|
120
|
+
cut(): void;
|
|
121
|
+
undo(): void;
|
|
122
|
+
redo(): void;
|
|
123
|
+
private execCommand;
|
|
124
|
+
private loadResource;
|
|
125
|
+
protected streamToBuffer(stream: VSBufferReadableStream): Promise<ArrayBufferLike>;
|
|
126
|
+
private localLocalhost;
|
|
127
|
+
focus(): void;
|
|
128
|
+
private _doFocus;
|
|
129
|
+
protected readonly _hasFindResult: Emitter<boolean>;
|
|
130
|
+
readonly hasFindResult: Event<boolean>;
|
|
131
|
+
protected readonly _onDidStopFind: Emitter<void>;
|
|
132
|
+
readonly onDidStopFind: Event<void>;
|
|
133
|
+
find(value: string, previous: boolean): void;
|
|
134
|
+
updateFind(value: string): void;
|
|
135
|
+
stopFind(keepSelection?: boolean): void;
|
|
136
|
+
showFind(animated?: boolean): void;
|
|
137
|
+
hideFind(animated?: boolean): void;
|
|
138
|
+
runFindAction(previous: boolean): void;
|
|
139
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { isFirefox } from 'vscode/vscode/vs/base/browser/browser';
|
|
3
4
|
import { getWindowById, EventType, addDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
5
|
import { ThrottledDelayer, promiseWithResolvers } from 'vscode/vscode/vs/base/common/async';
|
|
@@ -24,26 +25,27 @@ import { ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel.s
|
|
|
24
25
|
import { WebviewPortMappingManager } from '../../../../platform/webview/common/webviewPortMapping.js';
|
|
25
26
|
import { parentOriginHash } from 'vscode/vscode/vs/base/browser/iframe';
|
|
26
27
|
import { loadLocalResource, WebviewResourceResponse } from './resourceLoading.js';
|
|
27
|
-
import { areWebviewContentOptionsEqual } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
28
|
+
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
28
29
|
import { WebviewFindWidget } from './webviewFindWidget.js';
|
|
29
30
|
import { decodeAuthority, webviewRootResourceAuthority, webviewGenericCspSource } from 'vscode/vscode/vs/workbench/contrib/webview/common/webview';
|
|
30
31
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
31
32
|
|
|
32
33
|
var WebviewState;
|
|
33
|
-
( (
|
|
34
|
-
|
|
34
|
+
(function (WebviewState) {
|
|
35
|
+
let Type;
|
|
36
|
+
(function (Type) {
|
|
35
37
|
Type[Type["Initializing"] = 0] = "Initializing";
|
|
36
38
|
Type[Type["Ready"] = 1] = "Ready";
|
|
37
|
-
})(WebviewState.Type || (WebviewState.Type = {}))
|
|
39
|
+
})(Type = WebviewState.Type || (WebviewState.Type = {}));
|
|
38
40
|
class Initializing {
|
|
39
41
|
constructor(pendingMessages) {
|
|
40
42
|
this.pendingMessages = pendingMessages;
|
|
41
|
-
this.type =
|
|
43
|
+
this.type = Type.Initializing;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
WebviewState.Initializing = Initializing;
|
|
45
|
-
WebviewState.Ready = { type:
|
|
46
|
-
})(WebviewState || (WebviewState = {}))
|
|
47
|
+
WebviewState.Ready = { type: Type.Ready };
|
|
48
|
+
})(WebviewState || (WebviewState = {}));
|
|
47
49
|
const webviewIdContext = 'webviewId';
|
|
48
50
|
let WebviewElement = class WebviewElement extends Disposable {
|
|
49
51
|
get window() { return typeof this._windowId === 'number' ? getWindowById(this._windowId)?.window : undefined; }
|
|
@@ -75,39 +77,39 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
75
77
|
this._windowId = undefined;
|
|
76
78
|
this._expectedServiceWorkerVersion = 4;
|
|
77
79
|
this._state = new WebviewState.Initializing([]);
|
|
78
|
-
this._resourceLoadingCts = this._register((
|
|
79
|
-
this._focusDelayer = this._register((
|
|
80
|
-
this._onDidHtmlChange = this._register((
|
|
80
|
+
this._resourceLoadingCts = this._register(( new CancellationTokenSource()));
|
|
81
|
+
this._focusDelayer = this._register(( new ThrottledDelayer(50)));
|
|
82
|
+
this._onDidHtmlChange = this._register(( new Emitter()));
|
|
81
83
|
this.onDidHtmlChange = this._onDidHtmlChange.event;
|
|
82
|
-
this._messageHandlers = (
|
|
84
|
+
this._messageHandlers = ( new Map());
|
|
83
85
|
this.checkImeCompletionState = true;
|
|
84
86
|
this._disposed = false;
|
|
85
|
-
this._onMissingCsp = this._register((
|
|
87
|
+
this._onMissingCsp = this._register(( new Emitter()));
|
|
86
88
|
this.onMissingCsp = this._onMissingCsp.event;
|
|
87
|
-
this._onDidClickLink = this._register((
|
|
89
|
+
this._onDidClickLink = this._register(( new Emitter()));
|
|
88
90
|
this.onDidClickLink = this._onDidClickLink.event;
|
|
89
|
-
this._onDidReload = this._register((
|
|
91
|
+
this._onDidReload = this._register(( new Emitter()));
|
|
90
92
|
this.onDidReload = this._onDidReload.event;
|
|
91
|
-
this._onMessage = this._register((
|
|
93
|
+
this._onMessage = this._register(( new Emitter()));
|
|
92
94
|
this.onMessage = this._onMessage.event;
|
|
93
|
-
this._onDidScroll = this._register((
|
|
95
|
+
this._onDidScroll = this._register(( new Emitter()));
|
|
94
96
|
this.onDidScroll = this._onDidScroll.event;
|
|
95
|
-
this._onDidWheel = this._register((
|
|
97
|
+
this._onDidWheel = this._register(( new Emitter()));
|
|
96
98
|
this.onDidWheel = this._onDidWheel.event;
|
|
97
|
-
this._onDidUpdateState = this._register((
|
|
99
|
+
this._onDidUpdateState = this._register(( new Emitter()));
|
|
98
100
|
this.onDidUpdateState = this._onDidUpdateState.event;
|
|
99
|
-
this._onDidFocus = this._register((
|
|
101
|
+
this._onDidFocus = this._register(( new Emitter()));
|
|
100
102
|
this.onDidFocus = this._onDidFocus.event;
|
|
101
|
-
this._onDidBlur = this._register((
|
|
103
|
+
this._onDidBlur = this._register(( new Emitter()));
|
|
102
104
|
this.onDidBlur = this._onDidBlur.event;
|
|
103
|
-
this._onFatalError = this._register((
|
|
105
|
+
this._onFatalError = this._register(( new Emitter()));
|
|
104
106
|
this.onFatalError = this._onFatalError.event;
|
|
105
|
-
this._onDidDispose = this._register((
|
|
107
|
+
this._onDidDispose = this._register(( new Emitter()));
|
|
106
108
|
this.onDidDispose = this._onDidDispose.event;
|
|
107
109
|
this._hasAlertedAboutMissingCsp = false;
|
|
108
|
-
this._hasFindResult = this._register((
|
|
110
|
+
this._hasFindResult = this._register(( new Emitter()));
|
|
109
111
|
this.hasFindResult = this._hasFindResult.event;
|
|
110
|
-
this._onDidStopFind = this._register((
|
|
112
|
+
this._onDidStopFind = this._register(( new Emitter()));
|
|
111
113
|
this.onDidStopFind = this._onDidStopFind.event;
|
|
112
114
|
this.providedViewType = initInfo.providedViewType;
|
|
113
115
|
this.origin = initInfo.origin ?? this.id;
|
|
@@ -119,11 +121,11 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
119
121
|
options: initInfo.contentOptions,
|
|
120
122
|
state: undefined
|
|
121
123
|
};
|
|
122
|
-
this._portMappingManager = this._register((
|
|
124
|
+
this._portMappingManager = this._register(( new WebviewPortMappingManager(
|
|
123
125
|
() => this.extension?.location,
|
|
124
126
|
() => this._content.options.portMapping || [],
|
|
125
127
|
this._tunnelService
|
|
126
|
-
)))
|
|
128
|
+
)));
|
|
127
129
|
this._element = this._createElement(initInfo.options, initInfo.contentOptions);
|
|
128
130
|
this._register(this.on('no-csp-found', () => {
|
|
129
131
|
this.handleNoCspFound();
|
|
@@ -157,7 +159,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
157
159
|
this._hasFindResult.fire(didFind);
|
|
158
160
|
}));
|
|
159
161
|
this._register(this.on('fatal-error', (e) => {
|
|
160
|
-
notificationService.error(( localize(
|
|
162
|
+
notificationService.error(( localize(10709, "Error loading webview: {0}", e.message)));
|
|
161
163
|
this._onFatalError.fire({ message: e.message });
|
|
162
164
|
}));
|
|
163
165
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -193,12 +195,12 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
193
195
|
this._register(this.on('load-resource', async (entry) => {
|
|
194
196
|
try {
|
|
195
197
|
const authority = decodeAuthority(entry.authority);
|
|
196
|
-
const uri = (
|
|
198
|
+
const uri = ( URI.from({
|
|
197
199
|
scheme: entry.scheme,
|
|
198
200
|
authority: authority,
|
|
199
201
|
path: decodeURIComponent(entry.path),
|
|
200
202
|
query: entry.query ? decodeURIComponent(entry.query) : entry.query,
|
|
201
|
-
}))
|
|
203
|
+
}));
|
|
202
204
|
this.loadResource(entry.id, uri, entry.ifNoneMatch);
|
|
203
205
|
}
|
|
204
206
|
catch (e) {
|
|
@@ -238,7 +240,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
238
240
|
this.element?.remove();
|
|
239
241
|
this._element = undefined;
|
|
240
242
|
this._messagePort = undefined;
|
|
241
|
-
if (this._state.type ===
|
|
243
|
+
if (this._state.type === WebviewState.Type.Initializing) {
|
|
242
244
|
for (const message of this._state.pendingMessages) {
|
|
243
245
|
message.resolve(false);
|
|
244
246
|
}
|
|
@@ -255,7 +257,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
255
257
|
return this._send('message', { message, transfer });
|
|
256
258
|
}
|
|
257
259
|
async _send(channel, data, _createElement = []) {
|
|
258
|
-
if (this._state.type ===
|
|
260
|
+
if (this._state.type === WebviewState.Type.Initializing) {
|
|
259
261
|
const { promise, resolve } = promiseWithResolvers();
|
|
260
262
|
this._state.pendingMessages.push({ channel, data, transferable: _createElement, resolve });
|
|
261
263
|
return promise;
|
|
@@ -301,13 +303,13 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
301
303
|
if (options.purpose) {
|
|
302
304
|
params.purpose = options.purpose;
|
|
303
305
|
}
|
|
304
|
-
params.serviceWorkerUri = ( (
|
|
305
|
-
params.fakeHtmlUri = ( (
|
|
306
|
+
params.serviceWorkerUri = ( ( FileAccess.asBrowserUri('vs/workbench/contrib/webview/browser/pre/service-worker.js')).toString(true));
|
|
307
|
+
params.fakeHtmlUri = ( ( FileAccess.asBrowserUri('vs/workbench/contrib/webview/browser/pre/fake.html')).toString(true));
|
|
306
308
|
COI.addSearchParam(params, true, true);
|
|
307
|
-
const queryString = ( (
|
|
309
|
+
const queryString = ( ( new URLSearchParams(params)).toString());
|
|
308
310
|
const fileName = isFirefox ? 'index-no-csp.html' : 'index.html';
|
|
309
|
-
const relativeIframeSrc = (
|
|
310
|
-
this.element.setAttribute('src', `${(
|
|
311
|
+
const relativeIframeSrc = ( FileAccess.asBrowserUri(`vs/workbench/contrib/webview/browser/pre/${fileName}`));
|
|
312
|
+
this.element.setAttribute('src', `${( relativeIframeSrc.toString(true))}?${queryString}`);
|
|
311
313
|
}
|
|
312
314
|
mountTo(element, targetWindow) {
|
|
313
315
|
if (!this.element) {
|
|
@@ -357,7 +359,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
357
359
|
handlers?.forEach(handler => handler(e.data.data, e));
|
|
358
360
|
};
|
|
359
361
|
this.element?.classList.add('ready');
|
|
360
|
-
if (this._state.type ===
|
|
362
|
+
if (this._state.type === WebviewState.Type.Initializing) {
|
|
361
363
|
this._state.pendingMessages.forEach(({ channel, data, resolve }) => resolve(this.doPostMessage(channel, data)));
|
|
362
364
|
}
|
|
363
365
|
this._state = WebviewState.Ready;
|
|
@@ -378,9 +380,9 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
378
380
|
webviewContentEndpoint(encodedWebviewOrigin) {
|
|
379
381
|
const webviewExternalEndpoint = this._environmentService.webviewExternalEndpoint;
|
|
380
382
|
if (!webviewExternalEndpoint) {
|
|
381
|
-
throw (
|
|
383
|
+
throw ( new Error(
|
|
382
384
|
`'webviewExternalEndpoint' has not been configured. Webviews will not work!`
|
|
383
|
-
))
|
|
385
|
+
));
|
|
384
386
|
}
|
|
385
387
|
const endpoint = webviewExternalEndpoint.replace('{{uuid}}', encodedWebviewOrigin);
|
|
386
388
|
if (endpoint[endpoint.length - 1] === '/') {
|
|
@@ -398,7 +400,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
398
400
|
on(channel, handler) {
|
|
399
401
|
let handlers = this._messageHandlers.get(channel);
|
|
400
402
|
if (!handlers) {
|
|
401
|
-
handlers = (
|
|
403
|
+
handlers = ( new Set());
|
|
402
404
|
this._messageHandlers.set(channel, handlers);
|
|
403
405
|
}
|
|
404
406
|
handlers.add(handler);
|
|
@@ -492,14 +494,14 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
496
|
handleKeyEvent(type, event) {
|
|
495
|
-
const emulatedKeyboardEvent = (
|
|
497
|
+
const emulatedKeyboardEvent = ( new KeyboardEvent(type, event));
|
|
496
498
|
Object.defineProperty(emulatedKeyboardEvent, 'target', {
|
|
497
499
|
get: () => this.element,
|
|
498
500
|
});
|
|
499
501
|
this.window?.dispatchEvent(emulatedKeyboardEvent);
|
|
500
502
|
}
|
|
501
503
|
handleDragEvent(type, event) {
|
|
502
|
-
const emulatedDragEvent = (
|
|
504
|
+
const emulatedDragEvent = ( new DragEvent(type, event));
|
|
503
505
|
Object.defineProperty(emulatedDragEvent, 'target', {
|
|
504
506
|
get: () => this.element,
|
|
505
507
|
});
|
|
@@ -646,18 +648,18 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
646
648
|
this._webviewFindWidget?.find(previous);
|
|
647
649
|
}
|
|
648
650
|
};
|
|
649
|
-
WebviewElement = (
|
|
650
|
-
(
|
|
651
|
-
(
|
|
652
|
-
(
|
|
653
|
-
(
|
|
654
|
-
(
|
|
655
|
-
(
|
|
656
|
-
(
|
|
657
|
-
(
|
|
658
|
-
(
|
|
659
|
-
(
|
|
660
|
-
(
|
|
661
|
-
], WebviewElement))
|
|
651
|
+
WebviewElement = ( __decorate([
|
|
652
|
+
( __param(2, IConfigurationService)),
|
|
653
|
+
( __param(3, IContextMenuService)),
|
|
654
|
+
( __param(4, INotificationService)),
|
|
655
|
+
( __param(5, IWorkbenchEnvironmentService)),
|
|
656
|
+
( __param(6, IFileService)),
|
|
657
|
+
( __param(7, ILogService)),
|
|
658
|
+
( __param(8, IRemoteAuthorityResolverService)),
|
|
659
|
+
( __param(9, ITelemetryService)),
|
|
660
|
+
( __param(10, ITunnelService)),
|
|
661
|
+
( __param(11, IInstantiationService)),
|
|
662
|
+
( __param(12, IAccessibilityService))
|
|
663
|
+
], WebviewElement));
|
|
662
664
|
|
|
663
665
|
export { WebviewElement };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
+
import { IContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
3
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IContextViewService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
5
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
6
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
|
+
import { SimpleFindWidget } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget";
|
|
8
|
+
export interface WebviewFindDelegate {
|
|
9
|
+
readonly hasFindResult: Event<boolean>;
|
|
10
|
+
readonly onDidStopFind: Event<void>;
|
|
11
|
+
readonly checkImeCompletionState: boolean;
|
|
12
|
+
find(value: string, previous: boolean): void;
|
|
13
|
+
updateFind(value: string): void;
|
|
14
|
+
stopFind(keepSelection?: boolean): void;
|
|
15
|
+
focus(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class WebviewFindWidget extends SimpleFindWidget {
|
|
18
|
+
private readonly _delegate;
|
|
19
|
+
protected _getResultCount(dataChanged?: boolean): Promise<{
|
|
20
|
+
resultIndex: number;
|
|
21
|
+
resultCount: number;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
protected readonly _findWidgetFocused: IContextKey<boolean>;
|
|
24
|
+
constructor(_delegate: WebviewFindDelegate, contextViewService: IContextViewService, contextKeyService: IContextKeyService, hoverService: IHoverService, keybindingService: IKeybindingService);
|
|
25
|
+
find(previous: boolean): void;
|
|
26
|
+
hide(animated?: boolean): void;
|
|
27
|
+
protected _onInputChanged(): boolean;
|
|
28
|
+
protected _onFocusTrackerFocus(): void;
|
|
29
|
+
protected _onFocusTrackerBlur(): void;
|
|
30
|
+
protected _onFindInputFocusTrackerFocus(): void;
|
|
31
|
+
protected _onFindInputFocusTrackerBlur(): void;
|
|
32
|
+
findFirst(): void;
|
|
33
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
3
4
|
import { IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
4
5
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
5
6
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
6
|
-
import { SimpleFindWidget } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget';
|
|
7
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
7
|
+
import { SimpleFindWidget } from '@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget';
|
|
8
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
8
9
|
|
|
9
10
|
let WebviewFindWidget = class WebviewFindWidget extends SimpleFindWidget {
|
|
10
11
|
async _getResultCount(dataChanged) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
4
|
+
import { IOverlayWebview, IWebview, IWebviewElement, WebviewInitInfo } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
|
+
import { IWebviewService } from "vscode/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
6
|
+
export declare class WebviewService extends Disposable implements IWebviewService {
|
|
7
|
+
protected readonly _instantiationService: IInstantiationService;
|
|
8
|
+
readonly _serviceBrand: undefined;
|
|
9
|
+
protected readonly _webviewThemeDataProvider: WebviewThemeDataProvider;
|
|
10
|
+
constructor(_instantiationService: IInstantiationService);
|
|
11
|
+
private _activeWebview?;
|
|
12
|
+
get activeWebview(): IWebview | undefined;
|
|
13
|
+
private _updateActiveWebview;
|
|
14
|
+
private _webviews;
|
|
15
|
+
get webviews(): Iterable<IWebview>;
|
|
16
|
+
private readonly _onDidChangeActiveWebview;
|
|
17
|
+
readonly onDidChangeActiveWebview: import("vscode/vscode/vs/base/common/event").Event<IWebview | undefined>;
|
|
18
|
+
createWebviewElement(initInfo: WebviewInitInfo): IWebviewElement;
|
|
19
|
+
createWebviewOverlay(initInfo: WebviewInitInfo): IOverlayWebview;
|
|
20
|
+
protected registerNewWebview(webview: IWebview): void;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as nls from "vscode/vscode/vs/nls";
|
|
2
|
+
import { Action2 } from "vscode/vscode/vs/platform/actions/common/actions";
|
|
3
|
+
import { ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
export declare class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
5
|
+
static readonly ID = "editor.action.webvieweditor.showFind";
|
|
6
|
+
static readonly LABEL: string;
|
|
7
|
+
constructor();
|
|
8
|
+
run(accessor: ServicesAccessor): void;
|
|
9
|
+
}
|
|
10
|
+
export declare class HideWebViewEditorFindCommand extends Action2 {
|
|
11
|
+
static readonly ID = "editor.action.webvieweditor.hideFind";
|
|
12
|
+
static readonly LABEL: string;
|
|
13
|
+
constructor();
|
|
14
|
+
run(accessor: ServicesAccessor): void;
|
|
15
|
+
}
|
|
16
|
+
export declare class WebViewEditorFindNextCommand extends Action2 {
|
|
17
|
+
static readonly ID = "editor.action.webvieweditor.findNext";
|
|
18
|
+
static readonly LABEL: string;
|
|
19
|
+
constructor();
|
|
20
|
+
run(accessor: ServicesAccessor): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class WebViewEditorFindPreviousCommand extends Action2 {
|
|
23
|
+
static readonly ID = "editor.action.webvieweditor.findPrevious";
|
|
24
|
+
static readonly LABEL: string;
|
|
25
|
+
constructor();
|
|
26
|
+
run(accessor: ServicesAccessor): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class ReloadWebviewAction extends Action2 {
|
|
29
|
+
static readonly ID = "workbench.action.webview.reloadWebviewAction";
|
|
30
|
+
static readonly LABEL: nls.ILocalizedString;
|
|
31
|
+
constructor();
|
|
32
|
+
run(accessor: ServicesAccessor): Promise<void>;
|
|
33
|
+
}
|