@codingame/monaco-vscode-view-common-service-override 15.0.2 → 16.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/assets/{index-no-csp.html → webview/index-no-csp.html} +1 -1
- package/assets/{index.html → webview/index.html} +2 -2
- package/index.js +5 -5
- package/package.json +42 -40
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +60 -60
- 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 +162 -159
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -9
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +7 -7
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css +47 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css +3 -0
- 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/externalUriOpener/common/externalUriOpener.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +8 -8
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css +90 -0
- 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 +6 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +46 -0
- 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/media/mergeEditor.css +235 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +18 -25
- 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/media/typeHierarchy.css +47 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +7 -7
- 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/{assets → vscode/src/vs/workbench/contrib/webview/browser/pre}/service-worker.js +34 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +1 -4
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +13 -22
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +0 -1
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +29 -30
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css +15 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +29 -42
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
- /package/{assets → vscode/src/vs/workbench/contrib/webview/browser/pre}/fake.html +0 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
.monaco-workbench .merge-editor .code-view > .header {
|
|
2
|
+
padding: 0 10px;
|
|
3
|
+
height: 30px;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-content: center;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
.monaco-workbench .merge-editor .code-view > .header > span {
|
|
9
|
+
align-self: center;
|
|
10
|
+
text-overflow: ellipsis;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
padding-right: 6px;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
.monaco-workbench .merge-editor .code-view > .header > span.title {
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
.monaco-workbench .merge-editor .code-view > .header > span.description {
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
align-items: center;
|
|
23
|
+
color: var(--vscode-descriptionForeground);
|
|
24
|
+
}
|
|
25
|
+
.monaco-workbench .merge-editor .code-view.result > .header > .description {
|
|
26
|
+
display: inline;
|
|
27
|
+
flex-shrink: 1;
|
|
28
|
+
}
|
|
29
|
+
.monaco-workbench .merge-editor .code-view.result > .header > .detail {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
}
|
|
32
|
+
.monaco-workbench .merge-editor .code-view.result > .header > .toolbar {
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
.monaco-workbench .merge-editor .code-view > .header > span.description .codicon {
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
color: var(--vscode-descriptionForeground);
|
|
38
|
+
}
|
|
39
|
+
.monaco-workbench .merge-editor .code-view > .header > span.detail {
|
|
40
|
+
margin-left: auto;
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
color: var(--vscode-descriptionForeground);
|
|
43
|
+
}
|
|
44
|
+
.monaco-workbench .merge-editor .code-view > .header > span.detail .codicon {
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
}
|
|
47
|
+
.monaco-workbench .merge-editor .code-view.input > .header > span.detail::before {
|
|
48
|
+
content: '•';
|
|
49
|
+
opacity: .5;
|
|
50
|
+
padding-right: 3px;
|
|
51
|
+
}
|
|
52
|
+
.monaco-workbench .merge-editor .code-view.input > .header > span.detail {
|
|
53
|
+
margin-left: 0;
|
|
54
|
+
}
|
|
55
|
+
.monaco-workbench .merge-editor .code-view.input > .header > span.toolbar {
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
}
|
|
59
|
+
.monaco-workbench .merge-editor .code-view > .container {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
}
|
|
63
|
+
.monaco-workbench .merge-editor .code-view > .container > .gutter {
|
|
64
|
+
width: 24px;
|
|
65
|
+
position: relative;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
flex-grow: 0;
|
|
69
|
+
}
|
|
70
|
+
.monaco-workbench .merge-editor .merge-editor-diff {
|
|
71
|
+
background-color: var(--vscode-mergeEditor-change-background);
|
|
72
|
+
}
|
|
73
|
+
.monaco-workbench .merge-editor .merge-editor-diff-word {
|
|
74
|
+
background-color: var(--vscode-mergeEditor-change-word-background);
|
|
75
|
+
}
|
|
76
|
+
.monaco-workbench .merge-editor .merge-editor-block:not(.handled):not(.focused) {
|
|
77
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
78
|
+
}
|
|
79
|
+
.monaco-workbench .merge-editor .merge-editor-block:not(.handled).focused {
|
|
80
|
+
border: 2px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
81
|
+
}
|
|
82
|
+
.monaco-workbench .merge-editor .merge-editor-block.handled:not(.focused) {
|
|
83
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-handledUnfocused-border);
|
|
84
|
+
}
|
|
85
|
+
.monaco-workbench .merge-editor .merge-editor-block.handled.focused {
|
|
86
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-handledFocused-border);
|
|
87
|
+
}
|
|
88
|
+
.monaco-workbench .merge-editor .merge-editor-simplified.input.i1, .merge-editor-block.use-simplified-decorations.input.i1 {
|
|
89
|
+
background-color: var(--vscode-mergeEditor-conflict-input1-background);
|
|
90
|
+
}
|
|
91
|
+
.monaco-workbench .merge-editor .merge-editor-simplified.input.i2, .merge-editor-block.use-simplified-decorations.input.i2 {
|
|
92
|
+
background-color: var(--vscode-mergeEditor-conflict-input2-background);
|
|
93
|
+
}
|
|
94
|
+
.gutter.monaco-editor > div {
|
|
95
|
+
position: absolute;
|
|
96
|
+
}
|
|
97
|
+
.merge-accept-gutter-marker {
|
|
98
|
+
width: 28px;
|
|
99
|
+
margin-left: 4px;
|
|
100
|
+
}
|
|
101
|
+
.merge-accept-gutter-marker .background {
|
|
102
|
+
height: 100%;
|
|
103
|
+
width: 50%;
|
|
104
|
+
position: absolute;
|
|
105
|
+
}
|
|
106
|
+
.merge-accept-gutter-marker.multi-line.focused .background {
|
|
107
|
+
border: 2px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
108
|
+
border-right: 0;
|
|
109
|
+
}
|
|
110
|
+
.merge-accept-gutter-marker.multi-line .background {
|
|
111
|
+
border: 2px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
112
|
+
border-right: 0;
|
|
113
|
+
border-top-left-radius: 3px;
|
|
114
|
+
border-bottom-left-radius: 3px;
|
|
115
|
+
}
|
|
116
|
+
.merge-accept-gutter-marker.multi-line.handled.focused .background {
|
|
117
|
+
border: 2px solid var(--vscode-mergeEditor-conflict-handledFocused-border);
|
|
118
|
+
border-right: 0;
|
|
119
|
+
}
|
|
120
|
+
.merge-accept-gutter-marker.multi-line.handled .background {
|
|
121
|
+
border: 2px solid var(--vscode-checkbox-border);
|
|
122
|
+
border-right: 0;
|
|
123
|
+
}
|
|
124
|
+
.focused .accept-conflict-group.monaco-custom-toggle {
|
|
125
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
126
|
+
}
|
|
127
|
+
.accept-conflict-group.monaco-custom-toggle {
|
|
128
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
129
|
+
}
|
|
130
|
+
.handled.focused .accept-conflict-group.monaco-custom-toggle {
|
|
131
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-handledFocused-border);
|
|
132
|
+
}
|
|
133
|
+
.handled .accept-conflict-group.monaco-custom-toggle {
|
|
134
|
+
border: 1px solid var(--vscode-checkbox-border);
|
|
135
|
+
}
|
|
136
|
+
.merge-accept-gutter-marker.multi-line .background {
|
|
137
|
+
left: 8px;
|
|
138
|
+
width: 10px;
|
|
139
|
+
}
|
|
140
|
+
.merge-accept-gutter-marker .checkbox {
|
|
141
|
+
width: 100%;
|
|
142
|
+
position: absolute;
|
|
143
|
+
}
|
|
144
|
+
.accept-conflict-group.monaco-custom-toggle {
|
|
145
|
+
height: 18px;
|
|
146
|
+
width: 18px;
|
|
147
|
+
border-radius: 3px;
|
|
148
|
+
margin-right: 0px;
|
|
149
|
+
margin-left: 0px;
|
|
150
|
+
padding: 0px;
|
|
151
|
+
opacity: 1;
|
|
152
|
+
background-size: 16px !important;
|
|
153
|
+
background-color: var(--vscode-checkbox-border);
|
|
154
|
+
}
|
|
155
|
+
.merge-accept-gutter-marker .checkbox-background {
|
|
156
|
+
display: flex;
|
|
157
|
+
background: var(--vscode-editor-background);
|
|
158
|
+
}
|
|
159
|
+
.conflict-zone-root {
|
|
160
|
+
background-color: var(--vscode-mergeEditor-change-background);
|
|
161
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
162
|
+
height: 90%;
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
align-content: center;
|
|
166
|
+
}
|
|
167
|
+
.conflict-zone-root .dots {
|
|
168
|
+
margin: 0 10px;
|
|
169
|
+
}
|
|
170
|
+
.conflict-zone-root pre {
|
|
171
|
+
display: 'inline';
|
|
172
|
+
font-family: var(--monaco-monospace-font);
|
|
173
|
+
}
|
|
174
|
+
.conflict-zone-root .text {
|
|
175
|
+
background: var(--vscode-mergeEditor-conflictingLines-background);
|
|
176
|
+
margin-left: auto;
|
|
177
|
+
padding: 0 8px;
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
height: 100%;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
}
|
|
184
|
+
.focused.conflict-zone .conflict-zone-root {
|
|
185
|
+
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
186
|
+
}
|
|
187
|
+
.merge-editor-conflict-actions {
|
|
188
|
+
margin: 0px 3px;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
display: inline-block;
|
|
191
|
+
text-overflow: ellipsis;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
color: var(--vscode-editorCodeLens-foreground)
|
|
194
|
+
}
|
|
195
|
+
.merge-editor-conflict-actions > span,
|
|
196
|
+
.merge-editor-conflict-actions > a {
|
|
197
|
+
user-select: none;
|
|
198
|
+
-webkit-user-select: none;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
}
|
|
201
|
+
.merge-editor-conflict-actions > a {
|
|
202
|
+
text-decoration: none;
|
|
203
|
+
}
|
|
204
|
+
.merge-editor-conflict-actions > a:hover {
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
color: var(--vscode-editorLink-activeForeground) !important;
|
|
207
|
+
}
|
|
208
|
+
.merge-editor-conflict-actions > a:hover .codicon {
|
|
209
|
+
color: var(--vscode-editorLink-activeForeground) !important;
|
|
210
|
+
}
|
|
211
|
+
.merge-editor-conflict-actions .codicon {
|
|
212
|
+
vertical-align: middle;
|
|
213
|
+
color: currentColor !important;
|
|
214
|
+
color: var(--vscode-editorCodeLens-foreground);
|
|
215
|
+
}
|
|
216
|
+
.merge-editor-conflict-actions > a:hover .codicon::before {
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
}
|
|
219
|
+
.fixed-zone-widget {
|
|
220
|
+
width: 100%;
|
|
221
|
+
}
|
|
222
|
+
.merge-editor-diff-empty-word.base {
|
|
223
|
+
margin-left: 3px;
|
|
224
|
+
border-left: solid var(--vscode-mergeEditor-changeBase-word-background) 3px;
|
|
225
|
+
}
|
|
226
|
+
.merge-editor-diff-empty-word.input {
|
|
227
|
+
margin-left: 3px;
|
|
228
|
+
border-left: solid var(--vscode-mergeEditor-change-word-background) 3px;
|
|
229
|
+
}
|
|
230
|
+
.merge-editor-diff-word.base {
|
|
231
|
+
background-color: var(--vscode-mergeEditor-changeBase-word-background);
|
|
232
|
+
}
|
|
233
|
+
.merge-editor-diff.base {
|
|
234
|
+
background-color: var(--vscode-mergeEditor-changeBase-background);
|
|
235
|
+
}
|
|
@@ -9,7 +9,6 @@ import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/edito
|
|
|
9
9
|
import { IEditorOptions as ICodeEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions";
|
|
10
10
|
import { ICodeEditorViewState } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon";
|
|
11
11
|
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
12
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
13
12
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
13
|
import { IEditorOptions, ITextEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
15
14
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
@@ -30,9 +29,7 @@ import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
30
29
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
31
30
|
export declare class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
|
|
32
31
|
private readonly contextKeyService;
|
|
33
|
-
private readonly _configurationService;
|
|
34
32
|
private readonly _codeEditorService;
|
|
35
|
-
private readonly configurationService;
|
|
36
33
|
static readonly ID = "mergeEditor";
|
|
37
34
|
private readonly _sessionDisposables;
|
|
38
35
|
private readonly _viewModel;
|
|
@@ -56,11 +53,9 @@ export declare class MergeEditor extends AbstractTextEditor<IMergeEditorViewStat
|
|
|
56
53
|
private readonly _inputModel;
|
|
57
54
|
get inputModel(): IObservable<IMergeEditorInputModel | undefined>;
|
|
58
55
|
get model(): MergeEditorModel | undefined;
|
|
59
|
-
private get inputsWritable();
|
|
60
56
|
private readonly viewZoneComputer;
|
|
61
|
-
protected readonly codeLensesVisible: IObservable<boolean>;
|
|
62
57
|
private readonly scrollSynchronizer;
|
|
63
|
-
constructor(group: IEditorGroup, instantiation: IInstantiationService, contextKeyService: IContextKeyService, telemetryService: ITelemetryService, storageService: IStorageService, themeService: IThemeService, textResourceConfigurationService: ITextResourceConfigurationService,
|
|
58
|
+
constructor(group: IEditorGroup, instantiation: IInstantiationService, contextKeyService: IContextKeyService, telemetryService: ITelemetryService, storageService: IStorageService, themeService: IThemeService, textResourceConfigurationService: ITextResourceConfigurationService, editorService: IEditorService, editorGroupService: IEditorGroupsService, fileService: IFileService, _codeEditorService: ICodeEditorService);
|
|
64
59
|
dispose(): void;
|
|
65
60
|
private readonly _onDidChangeSizeConstraints;
|
|
66
61
|
readonly onDidChangeSizeConstraints: Event<void>;
|
|
@@ -6,16 +6,15 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/splitview/splitvi
|
|
|
6
6
|
import { Color } from '@codingame/monaco-vscode-api/vscode/vs/base/common/color';
|
|
7
7
|
import { BugIndicatingError, onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
8
8
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
9
|
-
import { DisposableStore, MutableDisposable, toDisposable, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { DisposableStore, MutableDisposable, toDisposable, thenIfNotDisposed, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
11
11
|
import { isEqual, basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
12
12
|
import { isDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
13
|
-
import './media/mergeEditor.css
|
|
13
|
+
import './media/mergeEditor.css';
|
|
14
14
|
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service';
|
|
15
15
|
import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
|
|
16
16
|
import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service';
|
|
17
17
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
18
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
18
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
20
19
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
21
20
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -28,8 +27,7 @@ import { DEFAULT_EDITOR_ASSOCIATION } from '@codingame/monaco-vscode-api/vscode/
|
|
|
28
27
|
import { applyTextEditorOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorOptions';
|
|
29
28
|
import { readTransientState, writeTransientState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/toggleWordWrap';
|
|
30
29
|
import { MergeEditorInput } from '@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
|
|
31
|
-
import { PersistentStore, deepMerge
|
|
32
|
-
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
30
|
+
import { PersistentStore, deepMerge } from '@codingame/monaco-vscode-210e86a9-a91b-5273-b05d-390c776dde1f-common/vscode/vs/workbench/contrib/mergeEditor/browser/utils';
|
|
33
31
|
import { BaseCodeEditorView } from './editors/baseCodeEditorView.js';
|
|
34
32
|
import { ScrollSynchronizer } from './scrollSynchronizer.js';
|
|
35
33
|
import { MergeEditorViewModel } from './viewModel.js';
|
|
@@ -60,15 +58,10 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
60
58
|
get model() {
|
|
61
59
|
return this.inputModel.get()?.model;
|
|
62
60
|
}
|
|
63
|
-
|
|
64
|
-
return !!this._configurationService.getValue('mergeEditor.writableInputs');
|
|
65
|
-
}
|
|
66
|
-
constructor(group, instantiation, contextKeyService, telemetryService, storageService, themeService, textResourceConfigurationService, _configurationService, editorService, editorGroupService, fileService, _codeEditorService, configurationService) {
|
|
61
|
+
constructor(group, instantiation, contextKeyService, telemetryService, storageService, themeService, textResourceConfigurationService, editorService, editorGroupService, fileService, _codeEditorService) {
|
|
67
62
|
super(MergeEditor_1.ID, group, telemetryService, instantiation, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService, fileService);
|
|
68
63
|
this.contextKeyService = contextKeyService;
|
|
69
|
-
this._configurationService = _configurationService;
|
|
70
64
|
this._codeEditorService = _codeEditorService;
|
|
71
|
-
this.configurationService = configurationService;
|
|
72
65
|
this._sessionDisposables = ( new DisposableStore());
|
|
73
66
|
this._viewModel = observableValue(this, undefined);
|
|
74
67
|
this._grid = this._register(( new MutableDisposable()));
|
|
@@ -92,7 +85,6 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
92
85
|
this.input2View.editor,
|
|
93
86
|
this.inputResultView.editor
|
|
94
87
|
));
|
|
95
|
-
this.codeLensesVisible = observableConfigValue('mergeEditor.showCodeLenses', true, this.configurationService);
|
|
96
88
|
this.scrollSynchronizer = this._register(( new ScrollSynchronizer(
|
|
97
89
|
this._viewModel,
|
|
98
90
|
this.input1View,
|
|
@@ -123,7 +115,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
123
115
|
if (this.input) {
|
|
124
116
|
return this.input.getName();
|
|
125
117
|
}
|
|
126
|
-
return localize(
|
|
118
|
+
return localize(7798, "Text Merge Editor");
|
|
127
119
|
}
|
|
128
120
|
createEditorControl(parent, initialOptions) {
|
|
129
121
|
this.rootHtmlElement = parent;
|
|
@@ -138,13 +130,16 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
138
130
|
const inputOptions = deepMerge(options, {
|
|
139
131
|
minimap: { enabled: false },
|
|
140
132
|
glyphMargin: false,
|
|
141
|
-
lineNumbersMinChars: 2
|
|
142
|
-
|
|
133
|
+
lineNumbersMinChars: 2
|
|
134
|
+
});
|
|
135
|
+
const readOnlyInputOptions = deepMerge(inputOptions, {
|
|
136
|
+
readOnly: true,
|
|
137
|
+
readOnlyMessage: undefined
|
|
143
138
|
});
|
|
144
|
-
this.input1View.updateOptions(
|
|
145
|
-
this.input2View.updateOptions(
|
|
139
|
+
this.input1View.updateOptions(readOnlyInputOptions);
|
|
140
|
+
this.input2View.updateOptions(readOnlyInputOptions);
|
|
146
141
|
this.baseViewOptions.set({ ...this.input2View.editor.getRawOptions() }, undefined);
|
|
147
|
-
this.inputResultView.updateOptions(
|
|
142
|
+
this.inputResultView.updateOptions(inputOptions);
|
|
148
143
|
}
|
|
149
144
|
getMainControl() {
|
|
150
145
|
return this.inputResultView.editor;
|
|
@@ -266,7 +261,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
266
261
|
const baseViewZoneIds = [];
|
|
267
262
|
const resultViewZoneIds = [];
|
|
268
263
|
const viewZones = this.viewZoneComputer.computeViewZones(reader, viewModel, {
|
|
269
|
-
codeLensesVisible:
|
|
264
|
+
codeLensesVisible: true,
|
|
270
265
|
showNonConflictingChanges: this.showNonConflictingChanges.read(reader),
|
|
271
266
|
shouldAlignBase,
|
|
272
267
|
shouldAlignResult,
|
|
@@ -517,12 +512,10 @@ MergeEditor = MergeEditor_1 = ( __decorate([
|
|
|
517
512
|
( __param(4, IStorageService)),
|
|
518
513
|
( __param(5, IThemeService)),
|
|
519
514
|
( __param(6, ITextResourceConfigurationService)),
|
|
520
|
-
( __param(7,
|
|
521
|
-
( __param(8,
|
|
522
|
-
( __param(9,
|
|
523
|
-
( __param(10,
|
|
524
|
-
( __param(11, ICodeEditorService)),
|
|
525
|
-
( __param(12, IConfigurationService))
|
|
515
|
+
( __param(7, IEditorService)),
|
|
516
|
+
( __param(8, IEditorGroupsService)),
|
|
517
|
+
( __param(9, IFileService)),
|
|
518
|
+
( __param(10, ICodeEditorService))
|
|
526
519
|
], MergeEditor));
|
|
527
520
|
let MergeEditorLayoutStore = class MergeEditorLayoutStore {
|
|
528
521
|
static { MergeEditorLayoutStore_1 = this; }
|
|
@@ -205,7 +205,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
|
205
205
|
toggleActiveConflict(inputNumber) {
|
|
206
206
|
const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
|
|
207
207
|
if (!activeModifiedBaseRange) {
|
|
208
|
-
this.notificationService.error(( localize(
|
|
208
|
+
this.notificationService.error(( localize(7799, "There is currently no conflict focused that can be toggled.")));
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
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(8476, "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(8477, "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(8477, "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(8477, "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
|
+
8478,
|
|
71
71
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
72
72
|
))}`,
|
|
73
73
|
`// ${( localize(
|
|
74
|
-
|
|
74
|
+
8479,
|
|
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(8480, "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(8481, "Keyboard Layouts ({0})", platform)) });
|
|
116
116
|
}
|
|
117
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
117
|
+
const configureKeyboardLayout = { label: ( localize(8482, "Configure Keyboard Layout")) };
|
|
118
118
|
picks.unshift(configureKeyboardLayout);
|
|
119
119
|
const autoDetectMode = {
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(8483, "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(8484, "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(8485, "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
|
+
8968,
|
|
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
|
+
8969,
|
|
34
34
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
35
35
|
))
|
|
36
36
|
},
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.monaco-workbench .type-hierarchy .results,
|
|
2
|
+
.monaco-workbench .type-hierarchy .message {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
.monaco-workbench .type-hierarchy[data-state="data"] .results {
|
|
6
|
+
display: inherit;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
.monaco-workbench .type-hierarchy[data-state="message"] .message {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
.monaco-workbench .type-hierarchy .editor,
|
|
16
|
+
.monaco-workbench .type-hierarchy .tree {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
.monaco-editor .type-hierarchy .tree {
|
|
20
|
+
background-color: var(--vscode-peekViewResult-background);
|
|
21
|
+
color: var(--vscode-peekViewResult-fileForeground);
|
|
22
|
+
}
|
|
23
|
+
.monaco-editor .type-hierarchy .tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) {
|
|
24
|
+
background-color: var(--vscode-peekViewResult-selectionBackground);
|
|
25
|
+
color: var(--vscode-peekViewResult-selectionForeground) !important;
|
|
26
|
+
}
|
|
27
|
+
.monaco-workbench .type-hierarchy .tree .typehierarchy-element {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex: 1;
|
|
30
|
+
flex-flow: row nowrap;
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
33
|
+
.monaco-workbench .type-hierarchy .tree .typehierarchy-element .monaco-icon-label {
|
|
34
|
+
padding-left: 4px;
|
|
35
|
+
}
|
|
36
|
+
.monaco-editor .type-hierarchy .type-decoration {
|
|
37
|
+
background-color: var(--vscode-peekViewEditor-matchHighlightBackground);
|
|
38
|
+
border: 2px solid var(--vscode-peekViewEditor-matchHighlightBorder);
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
.monaco-editor .type-hierarchy .editor .monaco-editor .monaco-editor-background,
|
|
42
|
+
.monaco-editor .type-hierarchy .editor .monaco-editor .inputarea.ime-input {
|
|
43
|
+
background-color: var(--vscode-peekViewEditor-background);
|
|
44
|
+
}
|
|
45
|
+
.monaco-editor .type-hierarchy .editor .monaco-editor .margin {
|
|
46
|
+
background-color: var(--vscode-peekViewEditorGutter-background);
|
|
47
|
+
}
|
|
@@ -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(11051, 'Whether a type hierarchy provider is available'))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(11052, '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(11053, '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(11054, "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(11055, "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(11056, '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(11057, '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(11058, '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(11059, '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(11060, 'Close')),
|
|
231
231
|
icon: Codicon.close,
|
|
232
232
|
precondition: _ctxTypeHierarchyVisible,
|
|
233
233
|
keybinding: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import './media/typeHierarchy.css
|
|
3
|
+
import './media/typeHierarchy.css';
|
|
4
4
|
import { Dimension, isKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { SplitView, Sizing } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/splitview/splitview';
|
|
6
6
|
import { TreeMouseEventTarget } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree';
|
|
@@ -77,7 +77,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
77
77
|
this.create();
|
|
78
78
|
this._peekViewService.addExclusiveWidget(editor, this);
|
|
79
79
|
this._applyTheme(themeService.getColorTheme());
|
|
80
|
-
this._disposables.add(themeService.onDidColorThemeChange(
|
|
80
|
+
this._disposables.add(themeService.onDidColorThemeChange(this._applyTheme, this));
|
|
81
81
|
this._disposables.add(this._previewDisposable);
|
|
82
82
|
}
|
|
83
83
|
dispose() {
|
|
@@ -263,13 +263,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
263
263
|
}
|
|
264
264
|
this._previewDisposable.add(value);
|
|
265
265
|
const title = this._direction === TypeHierarchyDirection.Supertypes
|
|
266
|
-
? ( localize(
|
|
267
|
-
: ( localize(
|
|
266
|
+
? ( localize(11061, "Supertypes of '{0}'", element.model.root.name))
|
|
267
|
+
: ( localize(11062, "Subtypes of '{0}'", element.model.root.name));
|
|
268
268
|
this.setTitle(title);
|
|
269
269
|
}
|
|
270
270
|
showLoading() {
|
|
271
271
|
this._parent.dataset['state'] = State.Loading;
|
|
272
|
-
this.setTitle(( localize(
|
|
272
|
+
this.setTitle(( localize(11063, "Loading...")));
|
|
273
273
|
this._show();
|
|
274
274
|
}
|
|
275
275
|
showMessage(message) {
|
|
@@ -288,8 +288,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
288
288
|
await this._tree.expand(root.element);
|
|
289
289
|
if (root.children.length === 0) {
|
|
290
290
|
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
|
|
291
|
-
? ( localize(
|
|
292
|
-
: ( localize(
|
|
291
|
+
? ( localize(11064, "No supertypes of '{0}'", model.root.name))
|
|
292
|
+
: ( localize(11065, "No subtypes of '{0}'", model.root.name)));
|
|
293
293
|
}
|
|
294
294
|
else {
|
|
295
295
|
this._parent.dataset['state'] = State.Data;
|