@codingame/monaco-vscode-view-common-service-override 13.0.0 → 13.1.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/package.json +43 -55
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +58 -58
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +159 -159
- 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.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- 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 +27 -27
- 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/view/colors.js +13 -13
- 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.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +1 -1
|
@@ -14,13 +14,13 @@ import { MergeEditor } from '../view/mergeEditor.js';
|
|
|
14
14
|
import { ctxIsMergeEditor } from '@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
|
|
15
15
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
16
|
|
|
17
|
-
const MERGE_EDITOR_CATEGORY = ( localize2(
|
|
17
|
+
const MERGE_EDITOR_CATEGORY = ( localize2(7186, 'Merge Editor (Dev)'));
|
|
18
18
|
class MergeEditorCopyContentsToJSON extends Action2 {
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: 'merge.dev.copyContentsJson',
|
|
22
22
|
category: MERGE_EDITOR_CATEGORY,
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(7187, "Copy Merge Editor State as JSON")),
|
|
24
24
|
icon: Codicon.layoutCentered,
|
|
25
25
|
f1: true,
|
|
26
26
|
precondition: ctxIsMergeEditor,
|
|
@@ -32,8 +32,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
32
32
|
const notificationService = accessor.get(INotificationService);
|
|
33
33
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
34
34
|
notificationService.info({
|
|
35
|
-
name: ( localize(
|
|
36
|
-
message: ( localize(
|
|
35
|
+
name: ( localize(7188, 'Merge Editor')),
|
|
36
|
+
message: ( localize(7189, "No active merge editor"))
|
|
37
37
|
});
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
@@ -52,8 +52,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
52
52
|
const jsonStr = JSON.stringify(contents, undefined, 4);
|
|
53
53
|
clipboardService.writeText(jsonStr);
|
|
54
54
|
notificationService.info({
|
|
55
|
-
name: ( localize(
|
|
56
|
-
message: ( localize(
|
|
55
|
+
name: ( localize(7188, 'Merge Editor')),
|
|
56
|
+
message: ( localize(7190, "Successfully copied merge editor state")),
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -62,7 +62,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
62
62
|
super({
|
|
63
63
|
id: 'merge.dev.saveContentsToFolder',
|
|
64
64
|
category: MERGE_EDITOR_CATEGORY,
|
|
65
|
-
title: ( localize2(
|
|
65
|
+
title: ( localize2(7191, "Save Merge Editor State to Folder")),
|
|
66
66
|
icon: Codicon.layoutCentered,
|
|
67
67
|
f1: true,
|
|
68
68
|
precondition: ctxIsMergeEditor,
|
|
@@ -76,8 +76,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
76
76
|
const languageService = accessor.get(ILanguageService);
|
|
77
77
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
78
78
|
notificationService.info({
|
|
79
|
-
name: ( localize(
|
|
80
|
-
message: ( localize(
|
|
79
|
+
name: ( localize(7188, 'Merge Editor')),
|
|
80
|
+
message: ( localize(7189, "No active merge editor"))
|
|
81
81
|
});
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
@@ -89,7 +89,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
89
89
|
canSelectFiles: false,
|
|
90
90
|
canSelectFolders: true,
|
|
91
91
|
canSelectMany: false,
|
|
92
|
-
title: ( localize(
|
|
92
|
+
title: ( localize(7192, 'Select folder to save to'))
|
|
93
93
|
});
|
|
94
94
|
if (!result) {
|
|
95
95
|
return;
|
|
@@ -107,8 +107,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
107
107
|
write('initialResult', model.getInitialResultValue()),
|
|
108
108
|
]);
|
|
109
109
|
notificationService.info({
|
|
110
|
-
name: ( localize(
|
|
111
|
-
message: ( localize(
|
|
110
|
+
name: ( localize(7188, 'Merge Editor')),
|
|
111
|
+
message: ( localize(7193, "Successfully saved merge editor state to folder")),
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -117,7 +117,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
117
117
|
super({
|
|
118
118
|
id: 'merge.dev.loadContentsFromFolder',
|
|
119
119
|
category: MERGE_EDITOR_CATEGORY,
|
|
120
|
-
title: ( localize2(
|
|
120
|
+
title: ( localize2(7194, "Load Merge Editor State from Folder")),
|
|
121
121
|
icon: Codicon.layoutCentered,
|
|
122
122
|
f1: true
|
|
123
123
|
});
|
|
@@ -136,7 +136,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
136
136
|
canSelectFiles: false,
|
|
137
137
|
canSelectFolders: true,
|
|
138
138
|
canSelectMany: false,
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(7192, 'Select folder to save to'))
|
|
140
140
|
});
|
|
141
141
|
if (!result) {
|
|
142
142
|
return;
|
|
@@ -14,7 +14,7 @@ import { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverCon
|
|
|
14
14
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
15
15
|
import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
16
16
|
|
|
17
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(
|
|
17
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(7195, "Merge Editor"))), [
|
|
18
18
|
( new SyncDescriptor(MergeEditorInput))
|
|
19
19
|
]);
|
|
20
20
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
@@ -25,8 +25,8 @@ import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
|
25
25
|
enum: ['legacy', 'advanced'],
|
|
26
26
|
default: 'advanced',
|
|
27
27
|
markdownEnumDescriptions: [
|
|
28
|
-
( localize(
|
|
29
|
-
( localize(
|
|
28
|
+
( localize(7196, "Uses the legacy diffing algorithm.")),
|
|
29
|
+
( localize(7197, "Uses the advanced diffing algorithm.")),
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
'mergeEditor.showDeletionMarkers': {
|
|
@@ -12,19 +12,19 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
12
12
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
13
13
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
14
14
|
|
|
15
|
-
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(
|
|
16
|
-
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(
|
|
17
|
-
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(
|
|
18
|
-
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(
|
|
19
|
-
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(
|
|
20
|
-
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(
|
|
21
|
-
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(
|
|
22
|
-
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(
|
|
23
|
-
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(
|
|
24
|
-
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(
|
|
25
|
-
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(
|
|
15
|
+
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(7230, 'The background color for changes.')));
|
|
16
|
+
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(7231, 'The background color for word changes.')));
|
|
17
|
+
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(7232, 'The background color for changes in base.')));
|
|
18
|
+
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(7233, 'The background color for word changes in base.')));
|
|
19
|
+
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(7234, 'The border color of unhandled unfocused conflicts.')));
|
|
20
|
+
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(7235, 'The border color of unhandled focused conflicts.')));
|
|
21
|
+
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(7236, 'The border color of handled unfocused conflicts.')));
|
|
22
|
+
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(7237, 'The border color of handled focused conflicts.')));
|
|
23
|
+
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(7238, 'The foreground color for changes in input 1.')));
|
|
24
|
+
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(7239, 'The foreground color for changes in input 1.')));
|
|
25
|
+
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(7240, 'The background of the "Conflicting Lines" text.')));
|
|
26
26
|
const contentTransparency = 0.4;
|
|
27
|
-
registerColor('mergeEditor.conflict.input1.background', ( transparent(mergeCurrentHeaderBackground, contentTransparency)), ( localize(
|
|
28
|
-
registerColor('mergeEditor.conflict.input2.background', ( transparent(mergeIncomingHeaderBackground, contentTransparency)), ( localize(
|
|
27
|
+
registerColor('mergeEditor.conflict.input1.background', ( transparent(mergeCurrentHeaderBackground, contentTransparency)), ( localize(7241, 'The background color of decorations in input 1.')));
|
|
28
|
+
registerColor('mergeEditor.conflict.input2.background', ( transparent(mergeIncomingHeaderBackground, contentTransparency)), ( localize(7242, 'The background color of decorations in input 2.')));
|
|
29
29
|
|
|
30
30
|
export { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverViewRulerColor };
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js
CHANGED
|
@@ -118,16 +118,16 @@ let BaseCodeEditorView = class BaseCodeEditorView extends CodeEditorView {
|
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
this.editor.setModel(vm.model.base);
|
|
121
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
121
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(7261, 'Base'))));
|
|
122
122
|
const baseShowDiffAgainst = vm.baseShowDiffAgainst.read(reader);
|
|
123
123
|
let node = undefined;
|
|
124
124
|
if (baseShowDiffAgainst) {
|
|
125
125
|
const label = ( localize(
|
|
126
|
-
|
|
126
|
+
7262,
|
|
127
127
|
'Comparing with {0}',
|
|
128
128
|
baseShowDiffAgainst === 1 ? vm.model.input1.title : vm.model.input2.title
|
|
129
129
|
));
|
|
130
|
-
const tooltip = ( localize(
|
|
130
|
+
const tooltip = ( localize(7263, 'Differences are highlighted with a background color.'));
|
|
131
131
|
node = h('span', { title: tooltip }, [label]).root;
|
|
132
132
|
}
|
|
133
133
|
reset(this.htmlElements.description, ...(node ? [node] : []));
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js
CHANGED
|
@@ -157,8 +157,8 @@ let InputCodeEditorView = class InputCodeEditorView extends CodeEditorView {
|
|
|
157
157
|
}
|
|
158
158
|
this.editor.setModel(this.inputNumber === 1 ? vm.model.input1.textModel : vm.model.input2.textModel);
|
|
159
159
|
const title = this.inputNumber === 1
|
|
160
|
-
? vm.model.input1.title || ( localize(
|
|
161
|
-
: vm.model.input2.title || ( localize(
|
|
160
|
+
? vm.model.input1.title || ( localize(7264, 'Input 1'))
|
|
161
|
+
: vm.model.input2.title || ( localize(7265, 'Input 2'));
|
|
162
162
|
const description = this.inputNumber === 1
|
|
163
163
|
? vm.model.input1.description
|
|
164
164
|
: vm.model.input2.description;
|
|
@@ -240,19 +240,19 @@ class ModifiedBaseRangeGutterItemModel {
|
|
|
240
240
|
const both = state.includesInput1 && state.includesInput2;
|
|
241
241
|
return [
|
|
242
242
|
this.baseRange.input1Diffs.length > 0
|
|
243
|
-
? action('mergeEditor.acceptInput1', ( localize(
|
|
243
|
+
? action('mergeEditor.acceptInput1', ( localize(7266, 'Accept {0}', this.model.input1.title)), state.toggle(1), state.includesInput1)
|
|
244
244
|
: undefined,
|
|
245
245
|
this.baseRange.input2Diffs.length > 0
|
|
246
|
-
? action('mergeEditor.acceptInput2', ( localize(
|
|
246
|
+
? action('mergeEditor.acceptInput2', ( localize(7266, 'Accept {0}', this.model.input2.title)), state.toggle(2), state.includesInput2)
|
|
247
247
|
: undefined,
|
|
248
248
|
this.baseRange.isConflicting
|
|
249
|
-
? setFields(action('mergeEditor.acceptBoth', ( localize(
|
|
249
|
+
? setFields(action('mergeEditor.acceptBoth', ( localize(7267, 'Accept Both')), state.withInputValue(1, !both).withInputValue(2, !both), both), { enabled: this.baseRange.canBeCombined })
|
|
250
250
|
: undefined,
|
|
251
251
|
( new Separator()),
|
|
252
252
|
this.baseRange.isConflicting
|
|
253
|
-
? setFields(action('mergeEditor.swap', ( localize(
|
|
253
|
+
? setFields(action('mergeEditor.swap', ( localize(7268, 'Swap')), state.swap(), false), { enabled: !state.kind && (!both || this.baseRange.isOrderRelevant) })
|
|
254
254
|
: undefined,
|
|
255
|
-
setFields(( new Action('mergeEditor.markAsHandled', ( localize(
|
|
255
|
+
setFields(( new Action('mergeEditor.markAsHandled', ( localize(7269, 'Mark as Handled')), undefined, true, () => {
|
|
256
256
|
transaction((tx) => {
|
|
257
257
|
this.model.setHandled(this.baseRange, !handled, tx);
|
|
258
258
|
});
|
|
@@ -295,10 +295,10 @@ class MergeConflictGutterItemView extends Disposable {
|
|
|
295
295
|
const item = this.item.read(reader);
|
|
296
296
|
const value = item.toggleState.read(reader);
|
|
297
297
|
const iconMap = {
|
|
298
|
-
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(
|
|
299
|
-
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(
|
|
300
|
-
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(
|
|
301
|
-
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(
|
|
298
|
+
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(7270, "Accept")) },
|
|
299
|
+
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(7271, "Accept (result is dirty)")) },
|
|
300
|
+
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(7272, "Undo accept")) },
|
|
301
|
+
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(7273, "Undo accept (currently second)")) },
|
|
302
302
|
};
|
|
303
303
|
const state = iconMap[value];
|
|
304
304
|
checkBox.setIcon(state.icon);
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js
CHANGED
|
@@ -133,7 +133,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
135
|
this.editor.setModel(vm.model.resultTextModel);
|
|
136
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
136
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(7274, 'Result'))));
|
|
137
137
|
reset(this.htmlElements.description, ...renderLabelWithIcons(this._labelService.getUriLabel(vm.model.resultTextModel.uri, { relative: true })));
|
|
138
138
|
}));
|
|
139
139
|
const remainingConflictsActionBar = this._register(( new ActionBar(this.htmlElements.detail)));
|
|
@@ -148,8 +148,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
148
148
|
}
|
|
149
149
|
const count = model.unhandledConflictsCount.read(reader);
|
|
150
150
|
const text = count === 1
|
|
151
|
-
? ( localize(
|
|
152
|
-
: ( localize(
|
|
151
|
+
? ( localize(7275, '{0} Conflict Remaining', count))
|
|
152
|
+
: ( localize(7276, '{0} Conflicts Remaining ', count));
|
|
153
153
|
remainingConflictsActionBar.clear();
|
|
154
154
|
remainingConflictsActionBar.push({
|
|
155
155
|
class: undefined,
|
|
@@ -161,8 +161,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
161
161
|
vm.goToNextModifiedBaseRange(m => !model.isHandled(m).get());
|
|
162
162
|
},
|
|
163
163
|
tooltip: count > 0
|
|
164
|
-
? ( localize(
|
|
165
|
-
: ( localize(
|
|
164
|
+
? ( localize(7277, 'Go to next conflict'))
|
|
165
|
+
: ( localize(7278, 'All conflicts handled, the merge can be completed now.')),
|
|
166
166
|
});
|
|
167
167
|
}));
|
|
168
168
|
this._register(applyObservableDecorations(this.editor, this.decorations));
|
|
@@ -126,7 +126,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
126
126
|
if (this.input) {
|
|
127
127
|
return this.input.getName();
|
|
128
128
|
}
|
|
129
|
-
return localize(
|
|
129
|
+
return localize(7279, "Text Merge Editor");
|
|
130
130
|
}
|
|
131
131
|
createEditorControl(parent, initialOptions) {
|
|
132
132
|
this.rootHtmlElement = parent;
|
|
@@ -208,7 +208,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
|
208
208
|
toggleActiveConflict(inputNumber) {
|
|
209
209
|
const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
|
|
210
210
|
if (!activeModifiedBaseRange) {
|
|
211
|
-
this.notificationService.error(( localize(
|
|
211
|
+
this.notificationService.error(( localize(7280, "There is currently no conflict focused that can be toggled.")));
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
214
|
transaction(tx => {
|
|
@@ -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(7933, "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(7934, "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(7934, "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(7934, "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
|
+
7935,
|
|
71
71
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
72
72
|
))}`,
|
|
73
73
|
`// ${( localize(
|
|
74
|
-
|
|
74
|
+
7936,
|
|
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(7937, "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(7938, "Keyboard Layouts ({0})", platform)) });
|
|
116
116
|
}
|
|
117
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
117
|
+
const configureKeyboardLayout = { label: ( localize(7939, "Configure Keyboard Layout")) };
|
|
118
118
|
picks.unshift(configureKeyboardLayout);
|
|
119
119
|
const autoDetectMode = {
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(7940, "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(7941, "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(7942, "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
|
+
8421,
|
|
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
|
+
8422,
|
|
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(10412, 'Whether a type hierarchy provider is available'))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(10413, '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(10414, '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(10415, "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(10416, "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(10417, '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(10418, '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(10419, '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(10420, '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(10421, 'Close')),
|
|
231
231
|
icon: Codicon.close,
|
|
232
232
|
precondition: _ctxTypeHierarchyVisible,
|
|
233
233
|
keybinding: {
|
|
@@ -262,13 +262,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
262
262
|
}
|
|
263
263
|
this._previewDisposable.add(value);
|
|
264
264
|
const title = this._direction === TypeHierarchyDirection.Supertypes
|
|
265
|
-
? ( localize(
|
|
266
|
-
: ( localize(
|
|
265
|
+
? ( localize(10422, "Supertypes of '{0}'", element.model.root.name))
|
|
266
|
+
: ( localize(10423, "Subtypes of '{0}'", element.model.root.name));
|
|
267
267
|
this.setTitle(title);
|
|
268
268
|
}
|
|
269
269
|
showLoading() {
|
|
270
270
|
this._parent.dataset['state'] = State.Loading;
|
|
271
|
-
this.setTitle(( localize(
|
|
271
|
+
this.setTitle(( localize(10424, "Loading...")));
|
|
272
272
|
this._show();
|
|
273
273
|
}
|
|
274
274
|
showMessage(message) {
|
|
@@ -287,8 +287,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
287
287
|
await this._tree.expand(root.element);
|
|
288
288
|
if (root.children.length === 0) {
|
|
289
289
|
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
|
|
290
|
-
? ( localize(
|
|
291
|
-
: ( localize(
|
|
290
|
+
? ( localize(10425, "No supertypes of '{0}'", model.root.name))
|
|
291
|
+
: ( localize(10426, "No subtypes of '{0}'", model.root.name)));
|
|
292
292
|
}
|
|
293
293
|
else {
|
|
294
294
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -105,14 +105,14 @@ class AccessibilityProvider {
|
|
|
105
105
|
this.getDirection = getDirection;
|
|
106
106
|
}
|
|
107
107
|
getWidgetAriaLabel() {
|
|
108
|
-
return localize(
|
|
108
|
+
return localize(10427, "Type Hierarchy");
|
|
109
109
|
}
|
|
110
110
|
getAriaLabel(element) {
|
|
111
111
|
if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
|
|
112
|
-
return localize(
|
|
112
|
+
return localize(10428, "supertypes of {0}", element.item.name);
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
|
-
return localize(
|
|
115
|
+
return localize(10429, "subtypes of {0}", element.item.name);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -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-972e8507-3a64-566d-8bc0-b78993998562-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;
|
|
@@ -7,7 +7,7 @@ import { Disposable, MutableDisposable, DisposableStore } from '@codingame/monac
|
|
|
7
7
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
8
8
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
9
9
|
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-
|
|
10
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
11
11
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
12
12
|
|
|
13
13
|
let OverlayWebview = class OverlayWebview extends Disposable {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
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
|
-
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-
|
|
5
|
-
import { WebviewStyles } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
|
|
5
|
+
import { WebviewStyles } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-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 '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
17
17
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
18
18
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
19
19
|
import { ColorScheme } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/theme';
|
|
20
|
-
import { IWorkbenchThemeService } from '@codingame/monaco-vscode-
|
|
20
|
+
import { IWorkbenchThemeService } from '@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
|
|
21
21
|
|
|
22
22
|
let WebviewThemeDataProvider = class WebviewThemeDataProvider extends Disposable {
|
|
23
23
|
constructor(_themeService, _configurationService) {
|
|
@@ -16,7 +16,7 @@ import { IRemoteAuthorityResolverService } from "@codingame/monaco-vscode-api/vs
|
|
|
16
16
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
17
17
|
import { ITunnelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service";
|
|
18
18
|
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
19
|
-
import { IWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-
|
|
19
|
+
import { IWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
20
20
|
import { WebviewFindDelegate, WebviewFindWidget } from "./webviewFindWidget.js";
|
|
21
21
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
22
22
|
import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
|
|
@@ -25,7 +25,7 @@ import { ITunnelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
25
25
|
import { WebviewPortMappingManager } from '../../../../platform/webview/common/webviewPortMapping.js';
|
|
26
26
|
import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
|
|
27
27
|
import { loadLocalResource, WebviewResourceResponse } from './resourceLoading.js';
|
|
28
|
-
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-
|
|
28
|
+
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
29
29
|
import { WebviewFindWidget } from './webviewFindWidget.js';
|
|
30
30
|
import { decodeAuthority, webviewRootResourceAuthority, webviewGenericCspSource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/common/webview';
|
|
31
31
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
@@ -159,7 +159,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
159
159
|
this._hasFindResult.fire(didFind);
|
|
160
160
|
}));
|
|
161
161
|
this._register(this.on('fatal-error', (e) => {
|
|
162
|
-
notificationService.error(( localize(
|
|
162
|
+
notificationService.error(( localize(10727, "Error loading webview: {0}", e.message)));
|
|
163
163
|
this._onFatalError.fire({ message: e.message });
|
|
164
164
|
}));
|
|
165
165
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -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-55ed5668-e8ca-5335-a587-790bcf1200c0-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-972e8507-3a64-566d-8bc0-b78993998562-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-972e8507-3a64-566d-8bc0-b78993998562-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;
|