@codingame/monaco-vscode-view-common-service-override 19.1.4 → 20.0.1
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.js +4 -4
- package/package.json +41 -42
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +481 -329
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +11 -5
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +58 -58
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +176 -169
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +30 -30
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +12 -12
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +8 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +15 -9
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +7 -7
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -10
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +10 -10
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +9 -9
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +2 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +2 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
|
@@ -23,7 +23,7 @@ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode
|
|
|
23
23
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
24
24
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
25
25
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
26
|
-
import { AbstractTextEditor } from '@codingame/monaco-vscode-
|
|
26
|
+
import { AbstractTextEditor } from '@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/browser/parts/editor/textEditor';
|
|
27
27
|
import { DEFAULT_EDITOR_ASSOCIATION } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
28
28
|
import { applyTextEditorOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorOptions';
|
|
29
29
|
import { readTransientState, writeTransientState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/toggleWordWrap';
|
|
@@ -118,7 +118,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
118
118
|
if (this.input) {
|
|
119
119
|
return this.input.getName();
|
|
120
120
|
}
|
|
121
|
-
return localize(
|
|
121
|
+
return localize(8500, "Text Merge Editor");
|
|
122
122
|
}
|
|
123
123
|
createEditorControl(parent, initialOptions) {
|
|
124
124
|
this.rootHtmlElement = parent;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
4
4
|
import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
|
|
5
|
-
import { DocumentLineRangeMap } from '@codingame/monaco-vscode-
|
|
5
|
+
import { DocumentLineRangeMap } from '@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/mapping';
|
|
6
6
|
import { ReentrancyBarrier } from '@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common/vscode/vs/base/common/controlFlow';
|
|
7
7
|
import { BugIndicatingError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
8
8
|
import { isDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
@@ -4,7 +4,7 @@ import { Range } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core
|
|
|
4
4
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
5
|
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
6
6
|
import { MergeEditorModel } from "@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel";
|
|
7
|
-
import { InputNumber, ModifiedBaseRange, ModifiedBaseRangeState } from "@codingame/monaco-vscode-
|
|
7
|
+
import { InputNumber, ModifiedBaseRange, ModifiedBaseRangeState } from "@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange";
|
|
8
8
|
import { BaseCodeEditorView } from "./editors/baseCodeEditorView.js";
|
|
9
9
|
import { CodeEditorView } from "./editors/codeEditorView.js";
|
|
10
10
|
import { InputCodeEditorView } from "./editors/inputCodeEditorView.js";
|
|
@@ -8,7 +8,7 @@ import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common
|
|
|
8
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
9
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
10
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
11
|
-
import { MergeEditorLineRange } from '@codingame/monaco-vscode-
|
|
11
|
+
import { MergeEditorLineRange } from '@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
|
|
12
12
|
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
13
13
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
14
14
|
import { derivedObservableWithWritableCache } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/utils';
|
|
@@ -222,7 +222,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
|
222
222
|
toggleActiveConflict(inputNumber) {
|
|
223
223
|
const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
|
|
224
224
|
if (!activeModifiedBaseRange) {
|
|
225
|
-
this.notificationService.error(( localize(
|
|
225
|
+
this.notificationService.error(( localize(8501, "There is currently no conflict focused that can be toggled.")));
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
228
|
transaction(tx => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
3
|
import { CompareResult } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
4
|
-
import { MergeEditorLineRange } from '@codingame/monaco-vscode-
|
|
4
|
+
import { MergeEditorLineRange } from '@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
|
|
5
5
|
import { join } from '@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common/vscode/vs/workbench/contrib/mergeEditor/browser/utils';
|
|
6
|
-
import { ConflictActionsFactory, ActionsSource } from '@codingame/monaco-vscode-
|
|
6
|
+
import { ConflictActionsFactory, ActionsSource } from '@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common/vscode/vs/workbench/contrib/mergeEditor/browser/view/conflictActions';
|
|
7
7
|
import { getAlignments } from './lineAlignment.js';
|
|
8
8
|
|
|
9
9
|
class ViewZoneComputer {
|
|
@@ -24,11 +24,11 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
24
24
|
this.keyboardLayoutService = keyboardLayoutService;
|
|
25
25
|
this.statusbarService = statusbarService;
|
|
26
26
|
this.pickerElement = this._register(( new MutableDisposable()));
|
|
27
|
-
const name = ( localize(
|
|
27
|
+
const name = ( localize(9186, "Keyboard Layout"));
|
|
28
28
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
29
29
|
if (layout) {
|
|
30
30
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
31
|
-
const text = ( localize(
|
|
31
|
+
const text = ( localize(9187, "Layout: {0}", layoutInfo.label));
|
|
32
32
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
33
33
|
name,
|
|
34
34
|
text,
|
|
@@ -40,7 +40,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
40
40
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
41
41
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
42
42
|
if (this.pickerElement.value) {
|
|
43
|
-
const text = ( localize(
|
|
43
|
+
const text = ( localize(9187, "Layout: {0}", layoutInfo.label));
|
|
44
44
|
this.pickerElement.value.update({
|
|
45
45
|
name,
|
|
46
46
|
text,
|
|
@@ -49,7 +49,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
|
-
const text = ( localize(
|
|
52
|
+
const text = ( localize(9187, "Layout: {0}", layoutInfo.label));
|
|
53
53
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
54
54
|
name,
|
|
55
55
|
text,
|
|
@@ -67,11 +67,11 @@ KeyboardLayoutPickerContribution = ( __decorate([
|
|
|
67
67
|
registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, WorkbenchPhase.BlockStartup);
|
|
68
68
|
const DEFAULT_CONTENT = [
|
|
69
69
|
`// ${( localize(
|
|
70
|
-
|
|
70
|
+
9188,
|
|
71
71
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
72
72
|
))}`,
|
|
73
73
|
`// ${( localize(
|
|
74
|
-
|
|
74
|
+
9189,
|
|
75
75
|
'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
|
|
76
76
|
))}`,
|
|
77
77
|
``,
|
|
@@ -82,7 +82,7 @@ registerAction2(class extends Action2 {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
85
|
-
title: ( localize2(
|
|
85
|
+
title: ( localize2(9190, "Change Keyboard Layout")),
|
|
86
86
|
f1: true
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -112,17 +112,17 @@ registerAction2(class extends Action2 {
|
|
|
112
112
|
});
|
|
113
113
|
if (picks.length > 0) {
|
|
114
114
|
const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
|
|
115
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
115
|
+
picks.unshift({ type: 'separator', label: ( localize(9191, "Keyboard Layouts ({0})", platform)) });
|
|
116
116
|
}
|
|
117
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
117
|
+
const configureKeyboardLayout = { label: ( localize(9192, "Configure Keyboard Layout")) };
|
|
118
118
|
picks.unshift(configureKeyboardLayout);
|
|
119
119
|
const autoDetectMode = {
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(9193, "Auto Detect")),
|
|
121
121
|
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
122
122
|
picked: isAutoDetect ? true : undefined
|
|
123
123
|
};
|
|
124
124
|
picks.unshift(autoDetectMode);
|
|
125
|
-
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
125
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(9194, "Select Keyboard Layout")), matchOnDescription: true });
|
|
126
126
|
if (!pick) {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -144,7 +144,7 @@ registerAction2(class extends Action2 {
|
|
|
144
144
|
options: { pinned: true }
|
|
145
145
|
});
|
|
146
146
|
}, (error) => {
|
|
147
|
-
throw ( new Error(( localize(
|
|
147
|
+
throw ( new Error(( localize(9195, "Unable to create '{0}' ({1}).", (file.toString()), error))));
|
|
148
148
|
});
|
|
149
149
|
return Promise.resolve();
|
|
150
150
|
}
|
|
@@ -20,7 +20,7 @@ import { isIOS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platfo
|
|
|
20
20
|
minimum: 1,
|
|
21
21
|
maximum: 20,
|
|
22
22
|
description: ( localize(
|
|
23
|
-
|
|
23
|
+
9718,
|
|
24
24
|
"Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
|
|
25
25
|
))
|
|
26
26
|
},
|
|
@@ -30,7 +30,7 @@ import { isIOS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platfo
|
|
|
30
30
|
minimum: 0,
|
|
31
31
|
maximum: 2000,
|
|
32
32
|
description: ( localize(
|
|
33
|
-
|
|
33
|
+
9719,
|
|
34
34
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
35
35
|
))
|
|
36
36
|
},
|
|
@@ -22,12 +22,12 @@ import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
|
|
|
22
22
|
import { TypeHierarchyDirection, TypeHierarchyProviderRegistry, TypeHierarchyModel } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
|
23
23
|
|
|
24
24
|
var TypeHierarchyController_1;
|
|
25
|
-
const _ctxHasTypeHierarchyProvider = ( new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(
|
|
26
|
-
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(
|
|
25
|
+
const _ctxHasTypeHierarchyProvider = ( new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(11962, 'Whether a type hierarchy provider is available'))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(11963, 'Whether type hierarchy peek is currently showing'))));
|
|
27
27
|
const _ctxTypeHierarchyDirection = ( new RawContextKey(
|
|
28
28
|
'typeHierarchyDirection',
|
|
29
29
|
undefined,
|
|
30
|
-
{ type: 'string', description: ( localize(
|
|
30
|
+
{ type: 'string', description: ( localize(11964, 'whether type hierarchy shows super types or subtypes')) }
|
|
31
31
|
));
|
|
32
32
|
function sanitizedDirection(candidate) {
|
|
33
33
|
return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes
|
|
@@ -96,14 +96,14 @@ let TypeHierarchyController = class TypeHierarchyController {
|
|
|
96
96
|
this._widget.showModel(model);
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
this._widget.showMessage(( localize(
|
|
99
|
+
this._widget.showMessage(( localize(11965, "No results")));
|
|
100
100
|
}
|
|
101
101
|
}).catch(err => {
|
|
102
102
|
if (isCancellationError(err)) {
|
|
103
103
|
this.endTypeHierarchy();
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
this._widget.showMessage(( localize(
|
|
106
|
+
this._widget.showMessage(( localize(11966, "Failed to show type hierarchy")));
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
async startTypeHierarchyFromTypeHierarchy() {
|
|
@@ -148,7 +148,7 @@ registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: 'editor.showTypeHierarchy',
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(11967, 'Peek Type Hierarchy')),
|
|
152
152
|
menu: {
|
|
153
153
|
id: MenuId.EditorContextPeek,
|
|
154
154
|
group: 'navigation',
|
|
@@ -167,7 +167,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
167
167
|
constructor() {
|
|
168
168
|
super({
|
|
169
169
|
id: 'editor.showSupertypes',
|
|
170
|
-
title: ( localize2(
|
|
170
|
+
title: ( localize2(11968, 'Show Supertypes')),
|
|
171
171
|
icon: Codicon.typeHierarchySuper,
|
|
172
172
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes)))),
|
|
173
173
|
keybinding: {
|
|
@@ -189,7 +189,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
189
189
|
constructor() {
|
|
190
190
|
super({
|
|
191
191
|
id: 'editor.showSubtypes',
|
|
192
|
-
title: ( localize2(
|
|
192
|
+
title: ( localize2(11969, 'Show Subtypes')),
|
|
193
193
|
icon: Codicon.typeHierarchySub,
|
|
194
194
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes)))),
|
|
195
195
|
keybinding: {
|
|
@@ -211,7 +211,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
211
211
|
constructor() {
|
|
212
212
|
super({
|
|
213
213
|
id: 'editor.refocusTypeHierarchy',
|
|
214
|
-
title: ( localize2(
|
|
214
|
+
title: ( localize2(11970, 'Refocus Type Hierarchy')),
|
|
215
215
|
precondition: _ctxTypeHierarchyVisible,
|
|
216
216
|
keybinding: {
|
|
217
217
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -227,7 +227,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
227
227
|
constructor() {
|
|
228
228
|
super({
|
|
229
229
|
id: 'editor.closeTypeHierarchy',
|
|
230
|
-
title: ( localize(
|
|
230
|
+
title: ( localize(11971, 'Close')),
|
|
231
231
|
icon: Codicon.close,
|
|
232
232
|
precondition: _ctxTypeHierarchyVisible,
|
|
233
233
|
keybinding: {
|
|
@@ -265,13 +265,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
265
265
|
}
|
|
266
266
|
this._previewDisposable.add(value);
|
|
267
267
|
const title = this._direction === TypeHierarchyDirection.Supertypes
|
|
268
|
-
? ( localize(
|
|
269
|
-
: ( localize(
|
|
268
|
+
? ( localize(11972, "Supertypes of '{0}'", element.model.root.name))
|
|
269
|
+
: ( localize(11973, "Subtypes of '{0}'", element.model.root.name));
|
|
270
270
|
this.setTitle(title);
|
|
271
271
|
}
|
|
272
272
|
showLoading() {
|
|
273
273
|
this._parent.dataset['state'] = State.Loading;
|
|
274
|
-
this.setTitle(( localize(
|
|
274
|
+
this.setTitle(( localize(11974, "Loading...")));
|
|
275
275
|
this._show();
|
|
276
276
|
}
|
|
277
277
|
showMessage(message) {
|
|
@@ -290,8 +290,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
290
290
|
await this._tree.expand(root.element);
|
|
291
291
|
if (root.children.length === 0) {
|
|
292
292
|
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
|
|
293
|
-
? ( localize(
|
|
294
|
-
: ( localize(
|
|
293
|
+
? ( localize(11975, "No supertypes of '{0}'", model.root.name))
|
|
294
|
+
: ( localize(11976, "No subtypes of '{0}'", model.root.name)));
|
|
295
295
|
}
|
|
296
296
|
else {
|
|
297
297
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -106,14 +106,14 @@ class AccessibilityProvider {
|
|
|
106
106
|
this.getDirection = getDirection;
|
|
107
107
|
}
|
|
108
108
|
getWidgetAriaLabel() {
|
|
109
|
-
return localize(
|
|
109
|
+
return localize(11977, "Type Hierarchy");
|
|
110
110
|
}
|
|
111
111
|
getAriaLabel(element) {
|
|
112
112
|
if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
|
|
113
|
-
return localize(
|
|
113
|
+
return localize(11978, "supertypes of {0}", element.item.name);
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
return localize(
|
|
116
|
+
return localize(11979, "subtypes of {0}", element.item.name);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -6,7 +6,7 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
6
6
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
7
7
|
import { ExtensionIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions";
|
|
8
8
|
import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
9
|
-
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent, WebviewOptions } from "@codingame/monaco-vscode-
|
|
9
|
+
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent, WebviewOptions } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
10
10
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
11
11
|
export declare class OverlayWebview extends Disposable implements IOverlayWebview {
|
|
12
12
|
private readonly _layoutService;
|
|
@@ -64,8 +64,6 @@ export declare class OverlayWebview extends Disposable implements IOverlayWebvie
|
|
|
64
64
|
readonly onDidBlur: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
65
65
|
private readonly _onDidClickLink;
|
|
66
66
|
readonly onDidClickLink: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<string>;
|
|
67
|
-
private readonly _onDidReload;
|
|
68
|
-
readonly onDidReload: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
69
67
|
private readonly _onDidScroll;
|
|
70
68
|
readonly onDidScroll: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<{
|
|
71
69
|
readonly scrollYPercentage: number;
|
|
@@ -82,6 +80,10 @@ export declare class OverlayWebview extends Disposable implements IOverlayWebvie
|
|
|
82
80
|
onFatalError: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<{
|
|
83
81
|
readonly message: string;
|
|
84
82
|
}>;
|
|
83
|
+
readonly intrinsicContentSize: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<{
|
|
84
|
+
readonly width: number;
|
|
85
|
+
readonly height: number;
|
|
86
|
+
} | undefined, void>;
|
|
85
87
|
postMessage(message: any, transfer?: readonly ArrayBuffer[]): Promise<boolean>;
|
|
86
88
|
focus(): void;
|
|
87
89
|
reload(): void;
|
|
@@ -4,11 +4,14 @@ import { getWindowById, createElement } from '@codingame/monaco-vscode-api/vscod
|
|
|
4
4
|
import { FastDomNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/fastDomNode';
|
|
5
5
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { Disposable, MutableDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
8
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
8
9
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
9
10
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
10
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED } from '@codingame/monaco-vscode-
|
|
11
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED } from '@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
11
12
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
13
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
14
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
12
15
|
|
|
13
16
|
let OverlayWebview = class OverlayWebview extends Disposable {
|
|
14
17
|
get window() { return getWindowById(this._windowId, true).window; }
|
|
@@ -37,8 +40,6 @@ let OverlayWebview = class OverlayWebview extends Disposable {
|
|
|
37
40
|
this.onDidBlur = this._onDidBlur.event;
|
|
38
41
|
this._onDidClickLink = this._register(( new Emitter()));
|
|
39
42
|
this.onDidClickLink = this._onDidClickLink.event;
|
|
40
|
-
this._onDidReload = this._register(( new Emitter()));
|
|
41
|
-
this.onDidReload = this._onDidReload.event;
|
|
42
43
|
this._onDidScroll = this._register(( new Emitter()));
|
|
43
44
|
this.onDidScroll = this._onDidScroll.event;
|
|
44
45
|
this._onDidUpdateState = this._register(( new Emitter()));
|
|
@@ -51,6 +52,7 @@ let OverlayWebview = class OverlayWebview extends Disposable {
|
|
|
51
52
|
this.onDidWheel = this._onDidWheel.event;
|
|
52
53
|
this._onFatalError = this._register(( new Emitter()));
|
|
53
54
|
this.onFatalError = this._onFatalError.event;
|
|
55
|
+
this.intrinsicContentSize = observableValue('WebviewIntrinsicContentSize', undefined);
|
|
54
56
|
this.providedViewType = initInfo.providedViewType;
|
|
55
57
|
this.origin = initInfo.origin ?? generateUuid();
|
|
56
58
|
this._title = initInfo.title;
|
|
@@ -195,8 +197,10 @@ let OverlayWebview = class OverlayWebview extends Disposable {
|
|
|
195
197
|
this._webviewEvents.add(webview.onMessage(x => { this._onMessage.fire(x); }));
|
|
196
198
|
this._webviewEvents.add(webview.onMissingCsp(x => { this._onMissingCsp.fire(x); }));
|
|
197
199
|
this._webviewEvents.add(webview.onDidWheel(x => { this._onDidWheel.fire(x); }));
|
|
198
|
-
this._webviewEvents.add(webview.onDidReload(() => { this._onDidReload.fire(); }));
|
|
199
200
|
this._webviewEvents.add(webview.onFatalError(x => { this._onFatalError.fire(x); }));
|
|
201
|
+
this._webviewEvents.add(autorun(reader => {
|
|
202
|
+
this.intrinsicContentSize.set(reader.readObservable(webview.intrinsicContentSize), undefined, undefined);
|
|
203
|
+
}));
|
|
200
204
|
this._webviewEvents.add(webview.onDidScroll(x => {
|
|
201
205
|
this._initialScrollProgress = x.scrollYPercentage;
|
|
202
206
|
this._onDidScroll.fire(x);
|
|
@@ -2,7 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
3
|
import { IWorkbenchColorTheme } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
|
|
4
4
|
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
|
|
5
|
-
import { WebviewStyles } from "@codingame/monaco-vscode-
|
|
5
|
+
import { WebviewStyles } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
6
6
|
interface WebviewThemeData {
|
|
7
7
|
readonly activeTheme: string;
|
|
8
8
|
readonly themeLabel: string;
|
|
@@ -17,7 +17,7 @@ import { IRemoteAuthorityResolverService } from "@codingame/monaco-vscode-api/vs
|
|
|
17
17
|
import { ITunnelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service";
|
|
18
18
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
19
19
|
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
20
|
-
import { IWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-
|
|
20
|
+
import { IWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
21
21
|
import { WebviewFindDelegate, WebviewFindWidget } from "./webviewFindWidget.js";
|
|
22
22
|
export declare class WebviewElement extends Disposable implements IWebview, WebviewFindDelegate {
|
|
23
23
|
protected readonly webviewThemeDataProvider: WebviewThemeDataProvider;
|
|
@@ -53,6 +53,10 @@ export declare class WebviewElement extends Disposable implements IWebview, Webv
|
|
|
53
53
|
private readonly _messageHandlers;
|
|
54
54
|
protected readonly _webviewFindWidget: WebviewFindWidget | undefined;
|
|
55
55
|
readonly checkImeCompletionState = true;
|
|
56
|
+
readonly intrinsicContentSize: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<{
|
|
57
|
+
readonly width: number;
|
|
58
|
+
readonly height: number;
|
|
59
|
+
} | undefined, void>;
|
|
56
60
|
private _disposed;
|
|
57
61
|
extension: WebviewExtensionDescription | undefined;
|
|
58
62
|
private readonly _options;
|
|
@@ -63,8 +67,6 @@ export declare class WebviewElement extends Disposable implements IWebview, Webv
|
|
|
63
67
|
readonly onMissingCsp: Event<ExtensionIdentifier>;
|
|
64
68
|
private readonly _onDidClickLink;
|
|
65
69
|
readonly onDidClickLink: Event<string>;
|
|
66
|
-
private readonly _onDidReload;
|
|
67
|
-
readonly onDidReload: Event<void>;
|
|
68
70
|
private readonly _onMessage;
|
|
69
71
|
readonly onMessage: Event<WebviewMessageReceivedEvent>;
|
|
70
72
|
private readonly _onDidScroll;
|
|
@@ -99,6 +101,7 @@ export declare class WebviewElement extends Disposable implements IWebview, Webv
|
|
|
99
101
|
private _hasAlertedAboutMissingCsp;
|
|
100
102
|
private handleNoCspFound;
|
|
101
103
|
reload(): void;
|
|
104
|
+
reinitializeAfterDismount(): void;
|
|
102
105
|
setHtml(html: string): void;
|
|
103
106
|
setTitle(title: string): void;
|
|
104
107
|
set contentOptions(options: WebviewContentOptions);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { isFirefox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
4
|
-
import { getWindowById, createElement, EventType, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { getWindowById, createElement, EventType, addDisposableListener, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
|
|
6
6
|
import { ThrottledDelayer, promiseWithResolvers } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
7
7
|
import { streamToBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
8
8
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
9
9
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
10
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
11
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
11
12
|
import { FileAccess, COI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
12
13
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
13
14
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
@@ -26,8 +27,9 @@ import { WebviewPortMappingManager } from '../../../../platform/webview/common/w
|
|
|
26
27
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
27
28
|
import { decodeAuthority, webviewRootResourceAuthority, webviewGenericCspSource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/common/webview';
|
|
28
29
|
import { loadLocalResource, WebviewResourceResponse } from './resourceLoading.js';
|
|
29
|
-
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-
|
|
30
|
+
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
30
31
|
import { WebviewFindWidget } from './webviewFindWidget.js';
|
|
32
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
31
33
|
|
|
32
34
|
var WebviewState;
|
|
33
35
|
(function (WebviewState) {
|
|
@@ -81,13 +83,12 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
81
83
|
this.onDidHtmlChange = this._onDidHtmlChange.event;
|
|
82
84
|
this._messageHandlers = ( new Map());
|
|
83
85
|
this.checkImeCompletionState = true;
|
|
86
|
+
this.intrinsicContentSize = observableValue('WebviewIntrinsicContentSize', undefined);
|
|
84
87
|
this._disposed = false;
|
|
85
88
|
this._onMissingCsp = this._register(( new Emitter()));
|
|
86
89
|
this.onMissingCsp = this._onMissingCsp.event;
|
|
87
90
|
this._onDidClickLink = this._register(( new Emitter()));
|
|
88
91
|
this.onDidClickLink = this._onDidClickLink.event;
|
|
89
|
-
this._onDidReload = this._register(( new Emitter()));
|
|
90
|
-
this.onDidReload = this._onDidReload.event;
|
|
91
92
|
this._onMessage = this._register(( new Emitter()));
|
|
92
93
|
this.onMessage = this._onMessage.event;
|
|
93
94
|
this._onDidScroll = this._register(( new Emitter()));
|
|
@@ -157,7 +158,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
157
158
|
this._hasFindResult.fire(didFind);
|
|
158
159
|
}));
|
|
159
160
|
this._register(this.on('fatal-error', (e) => {
|
|
160
|
-
notificationService.error(( localize(
|
|
161
|
+
notificationService.error(( localize(12279, "Error loading webview: {0}", e.message)));
|
|
161
162
|
this._onFatalError.fire({ message: e.message });
|
|
162
163
|
}));
|
|
163
164
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -229,6 +230,9 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
229
230
|
this._register(this.on('drag', (event) => {
|
|
230
231
|
this.handleDragEvent('drag', event);
|
|
231
232
|
}));
|
|
233
|
+
this._register(this.on('updated-intrinsic-content-size', (event) => {
|
|
234
|
+
this.intrinsicContentSize.set({ width: event.width, height: event.height }, undefined, undefined);
|
|
235
|
+
}));
|
|
232
236
|
if (initInfo.options.enableFindWidget) {
|
|
233
237
|
this._webviewFindWidget = this._register(instantiationService.createInstance(WebviewFindWidget, this));
|
|
234
238
|
}
|
|
@@ -420,10 +424,12 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
420
424
|
}
|
|
421
425
|
reload() {
|
|
422
426
|
this.doUpdateContent(this._content);
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
+
}
|
|
428
|
+
reinitializeAfterDismount() {
|
|
429
|
+
this._state = new WebviewState.Initializing([]);
|
|
430
|
+
this._messagePort = undefined;
|
|
431
|
+
this.mountTo(this.element.parentElement, getWindow(this.element));
|
|
432
|
+
this.reload();
|
|
427
433
|
}
|
|
428
434
|
setHtml(html) {
|
|
429
435
|
this.doUpdateContent({ ...this._content, html });
|
|
@@ -5,7 +5,7 @@ import { IContextViewService } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
5
5
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
6
6
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
7
7
|
import { SimpleFindWidget } from '@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common/vscode/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget';
|
|
8
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-
|
|
8
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
9
9
|
|
|
10
10
|
let WebviewFindWidget = class WebviewFindWidget extends SimpleFindWidget {
|
|
11
11
|
async _getResultCount(dataChanged) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
4
|
-
import { IOverlayWebview, IWebview, IWebviewElement, WebviewInitInfo } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IOverlayWebview, IWebview, IWebviewElement, WebviewInitInfo } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
5
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
6
6
|
export declare class WebviewService extends Disposable implements IWebviewService {
|
|
7
7
|
protected readonly _instantiationService: IInstantiationService;
|
|
@@ -6,16 +6,16 @@ import { Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
6
6
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
8
8
|
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
9
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-
|
|
9
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
10
10
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
11
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-
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
13
13
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
14
14
|
|
|
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(12280, "Show find")); }
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: ShowWebViewEditorFindWidgetAction.ID,
|
|
@@ -36,7 +36,7 @@ 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(12281, "Stop find")); }
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: HideWebViewEditorFindCommand.ID,
|
|
@@ -57,7 +57,7 @@ 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(12282, 'Find next')); }
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: WebViewEditorFindNextCommand.ID,
|
|
@@ -78,7 +78,7 @@ 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(12283, 'Find previous')); }
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: WebViewEditorFindPreviousCommand.ID,
|
|
@@ -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(12284, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { IEditorSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
4
|
-
import { WebviewContentOptions, WebviewExtensionDescription, WebviewOptions } from "@codingame/monaco-vscode-
|
|
4
|
+
import { WebviewContentOptions, WebviewExtensionDescription, WebviewOptions } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
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-
|
|
6
|
+
import { WebviewInput } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
7
7
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
8
8
|
export type SerializedWebviewOptions = WebviewOptions & WebviewContentOptions;
|
|
9
9
|
interface SerializedIconPath {
|
package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
4
4
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
5
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
5
|
+
import { WebviewInput } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
6
6
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
7
7
|
|
|
8
8
|
let WebviewEditorInputSerializer = class WebviewEditorInputSerializer {
|