@codingame/monaco-vscode-view-common-service-override 20.1.0 → 20.2.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/package.json +41 -41
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css +15 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css +5 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css +31 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css +63 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css +15 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +25 -0
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css +5 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +33 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,46 +15,46 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "20.
|
|
19
|
-
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "20.
|
|
20
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "20.
|
|
21
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "20.
|
|
22
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "20.
|
|
23
|
-
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "20.
|
|
24
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "20.
|
|
25
|
-
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "20.
|
|
26
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.
|
|
27
|
-
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "20.
|
|
28
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.
|
|
29
|
-
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "20.
|
|
30
|
-
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.
|
|
31
|
-
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "20.
|
|
32
|
-
"@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "20.
|
|
33
|
-
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "20.
|
|
34
|
-
"@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "20.
|
|
35
|
-
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "20.
|
|
36
|
-
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "20.
|
|
37
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "20.
|
|
38
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "20.
|
|
39
|
-
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "20.
|
|
40
|
-
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "20.
|
|
41
|
-
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "20.
|
|
42
|
-
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.
|
|
43
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.
|
|
44
|
-
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "20.
|
|
45
|
-
"@codingame/monaco-vscode-api": "20.
|
|
46
|
-
"@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "20.
|
|
47
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "20.
|
|
48
|
-
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.
|
|
49
|
-
"@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "20.
|
|
50
|
-
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "20.
|
|
51
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.
|
|
52
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.
|
|
53
|
-
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "20.
|
|
54
|
-
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "20.
|
|
55
|
-
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "20.
|
|
56
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.
|
|
57
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "20.
|
|
18
|
+
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "20.2.0",
|
|
19
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "20.2.0",
|
|
20
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "20.2.0",
|
|
21
|
+
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "20.2.0",
|
|
22
|
+
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "20.2.0",
|
|
23
|
+
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "20.2.0",
|
|
24
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "20.2.0",
|
|
25
|
+
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "20.2.0",
|
|
26
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.2.0",
|
|
27
|
+
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "20.2.0",
|
|
28
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.2.0",
|
|
29
|
+
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "20.2.0",
|
|
30
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.2.0",
|
|
31
|
+
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "20.2.0",
|
|
32
|
+
"@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "20.2.0",
|
|
33
|
+
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "20.2.0",
|
|
34
|
+
"@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "20.2.0",
|
|
35
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "20.2.0",
|
|
36
|
+
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "20.2.0",
|
|
37
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "20.2.0",
|
|
38
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "20.2.0",
|
|
39
|
+
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "20.2.0",
|
|
40
|
+
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "20.2.0",
|
|
41
|
+
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "20.2.0",
|
|
42
|
+
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.2.0",
|
|
43
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.2.0",
|
|
44
|
+
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "20.2.0",
|
|
45
|
+
"@codingame/monaco-vscode-api": "20.2.0",
|
|
46
|
+
"@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "20.2.0",
|
|
47
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "20.2.0",
|
|
48
|
+
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.2.0",
|
|
49
|
+
"@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "20.2.0",
|
|
50
|
+
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "20.2.0",
|
|
51
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.2.0",
|
|
52
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.2.0",
|
|
53
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "20.2.0",
|
|
54
|
+
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "20.2.0",
|
|
55
|
+
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "20.2.0",
|
|
56
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.2.0",
|
|
57
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "20.2.0"
|
|
58
58
|
},
|
|
59
59
|
"main": "index.js",
|
|
60
60
|
"module": "index.js",
|
|
@@ -6,6 +6,9 @@ export interface IWebviewPortMapping {
|
|
|
6
6
|
readonly webviewPort: number;
|
|
7
7
|
readonly extensionHostPort: number;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Manages port mappings for a single webview.
|
|
11
|
+
*/
|
|
9
12
|
export declare class WebviewPortMappingManager implements IDisposable {
|
|
10
13
|
private readonly _getExtensionLocation;
|
|
11
14
|
private readonly _getMappings;
|
|
@@ -1,47 +1,62 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
1
6
|
.monaco-workbench .call-hierarchy .results,
|
|
2
7
|
.monaco-workbench .call-hierarchy .message {
|
|
3
8
|
display: none;
|
|
4
9
|
}
|
|
10
|
+
|
|
5
11
|
.monaco-workbench .call-hierarchy[data-state="data"] .results {
|
|
6
12
|
display: inherit;
|
|
7
13
|
height: 100%;
|
|
8
14
|
}
|
|
15
|
+
|
|
9
16
|
.monaco-workbench .call-hierarchy[data-state="message"] .message {
|
|
10
17
|
display: flex;
|
|
11
18
|
align-items: center;
|
|
12
19
|
justify-content: center;
|
|
13
20
|
height: 100%;
|
|
14
21
|
}
|
|
22
|
+
|
|
15
23
|
.monaco-workbench .call-hierarchy .editor,
|
|
16
24
|
.monaco-workbench .call-hierarchy .tree {
|
|
17
25
|
height: 100%;
|
|
18
26
|
}
|
|
27
|
+
|
|
19
28
|
.monaco-editor .call-hierarchy .tree {
|
|
20
29
|
background-color: var(--vscode-peekViewResult-background);
|
|
21
30
|
color: var(--vscode-peekViewResult-fileForeground);
|
|
22
31
|
}
|
|
32
|
+
|
|
23
33
|
.monaco-workbench .call-hierarchy .tree .callhierarchy-element {
|
|
24
34
|
display: flex;
|
|
25
35
|
flex: 1;
|
|
26
36
|
flex-flow: row nowrap;
|
|
27
37
|
align-items: center;
|
|
28
38
|
}
|
|
39
|
+
|
|
29
40
|
.monaco-workbench .call-hierarchy .tree .callhierarchy-element .monaco-icon-label {
|
|
30
41
|
padding-left: 4px;
|
|
31
42
|
}
|
|
43
|
+
|
|
32
44
|
.monaco-editor .call-hierarchy .tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) {
|
|
33
45
|
background-color: var(--vscode-peekViewResult-selectionBackground);
|
|
34
46
|
color: var(--vscode-peekViewResult-selectionForeground) !important;
|
|
35
47
|
}
|
|
48
|
+
|
|
36
49
|
.monaco-editor .call-hierarchy .call-decoration {
|
|
37
50
|
background-color: var(--vscode-peekViewEditor-matchHighlightBackground);
|
|
38
51
|
border: 2px solid var(--vscode-peekViewEditor-matchHighlightBorder);
|
|
39
52
|
box-sizing: border-box;
|
|
40
53
|
}
|
|
54
|
+
|
|
41
55
|
.monaco-editor .call-hierarchy .editor .monaco-editor .monaco-editor-background,
|
|
42
56
|
.monaco-editor .call-hierarchy .editor .monaco-editor .inputarea.ime-input {
|
|
43
57
|
background-color: var(--vscode-peekViewEditor-background);
|
|
44
58
|
}
|
|
59
|
+
|
|
45
60
|
.monaco-editor .call-hierarchy .editor .monaco-editor .margin {
|
|
46
61
|
background-color: var(--vscode-peekViewEditorGutter-background);
|
|
47
62
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
1
6
|
.webview.modified {
|
|
2
7
|
box-shadow: -6px 0 5px -5px var(--vscode-scrollbar-shadow);
|
|
3
8
|
}
|
|
@@ -60,6 +60,16 @@ export declare class CustomEditorInfoCollection {
|
|
|
60
60
|
readonly allEditors: readonly CustomEditorInfo[];
|
|
61
61
|
constructor(editors: readonly CustomEditorInfo[]);
|
|
62
62
|
get length(): number;
|
|
63
|
+
/**
|
|
64
|
+
* Find the single default editor to use (if any) by looking at the editor's priority and the
|
|
65
|
+
* other contributed editors.
|
|
66
|
+
*/
|
|
63
67
|
get defaultEditor(): CustomEditorInfo | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Find the best available editor to use.
|
|
70
|
+
*
|
|
71
|
+
* Unlike the `defaultEditor`, a bestAvailableEditor can exist even if there are other editors with
|
|
72
|
+
* the same priority.
|
|
73
|
+
*/
|
|
64
74
|
get bestAvailableEditor(): CustomEditorInfo | undefined;
|
|
65
75
|
}
|
|
@@ -1,75 +1,102 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/* status bar animation */
|
|
7
|
+
|
|
1
8
|
@keyframes wiggle {
|
|
2
9
|
0% {
|
|
3
10
|
transform: rotate(0) scale(1);
|
|
4
11
|
}
|
|
12
|
+
|
|
5
13
|
15%,
|
|
6
14
|
45% {
|
|
7
15
|
transform: rotate(.04turn) scale(1.1);
|
|
8
16
|
}
|
|
17
|
+
|
|
9
18
|
30%,
|
|
10
19
|
60% {
|
|
11
20
|
transform: rotate(-.04turn) scale(1.2);
|
|
12
21
|
}
|
|
22
|
+
|
|
13
23
|
100% {
|
|
14
24
|
transform: rotate(0) scale(1);
|
|
15
25
|
}
|
|
16
26
|
}
|
|
27
|
+
|
|
17
28
|
.monaco-workbench .statusbar DIV#status\.languageStatus A > SPAN.codicon.wiggle {
|
|
18
29
|
animation-duration: .8s;
|
|
19
30
|
animation-iteration-count: 1;
|
|
20
31
|
animation-name: wiggle;
|
|
21
32
|
}
|
|
33
|
+
|
|
22
34
|
@keyframes flash {
|
|
23
35
|
0% {
|
|
24
36
|
background-color: initial;
|
|
25
37
|
}
|
|
38
|
+
|
|
26
39
|
50% {
|
|
27
40
|
background-color: var(--vscode-statusBarItem-prominentBackground);
|
|
28
41
|
}
|
|
42
|
+
|
|
29
43
|
100% {
|
|
30
44
|
background-color: initial;
|
|
31
45
|
}
|
|
32
46
|
}
|
|
47
|
+
|
|
33
48
|
.monaco-workbench .statusbar DIV#status\.languageStatus.flash A {
|
|
34
49
|
animation-duration: .8s;
|
|
35
50
|
animation-iteration-count: 1;
|
|
36
51
|
animation-name: flash;
|
|
37
52
|
}
|
|
53
|
+
|
|
54
|
+
/* --- hover */
|
|
55
|
+
|
|
38
56
|
.monaco-workbench .hover-language-status {
|
|
39
57
|
display: flex;
|
|
40
58
|
}
|
|
59
|
+
|
|
41
60
|
.monaco-workbench .hover-language-status:not(:last-child) {
|
|
42
61
|
border-bottom: 1px solid var(--vscode-notifications-border);
|
|
43
62
|
}
|
|
63
|
+
|
|
44
64
|
.monaco-workbench .hover-language-status > .severity {
|
|
45
65
|
padding-right: 8px;
|
|
46
66
|
flex: 1;
|
|
47
67
|
margin: auto;
|
|
48
68
|
display: none;
|
|
49
69
|
}
|
|
70
|
+
|
|
50
71
|
.monaco-workbench .hover-language-status > .severity.sev3 {
|
|
51
72
|
color: var(--vscode-notificationsErrorIcon-foreground)
|
|
52
73
|
}
|
|
74
|
+
|
|
53
75
|
.monaco-workbench .hover-language-status > .severity.sev2 {
|
|
54
76
|
color: var(--vscode-notificationsInfoIcon-foreground)
|
|
55
77
|
}
|
|
78
|
+
|
|
56
79
|
.monaco-workbench .hover-language-status > .severity.show {
|
|
57
80
|
display: inherit;
|
|
58
81
|
}
|
|
82
|
+
|
|
59
83
|
.monaco-workbench .hover-language-status > .element {
|
|
60
84
|
display: flex;
|
|
61
85
|
justify-content: space-between;
|
|
62
86
|
vertical-align: middle;
|
|
63
87
|
flex-grow: 100;
|
|
64
88
|
}
|
|
89
|
+
|
|
65
90
|
.monaco-workbench .hover-language-status > .element > .left > .separator::before {
|
|
66
91
|
content: '\2013';
|
|
67
92
|
padding: 0 2px;
|
|
68
93
|
opacity: 0.6;
|
|
69
94
|
}
|
|
95
|
+
|
|
70
96
|
.monaco-workbench .hover-language-status > .element > .left:empty {
|
|
71
97
|
display: none;
|
|
72
98
|
}
|
|
99
|
+
|
|
73
100
|
.monaco-workbench .hover-language-status > .element .left {
|
|
74
101
|
margin: auto 0;
|
|
75
102
|
display: flex;
|
|
@@ -77,18 +104,22 @@
|
|
|
77
104
|
gap: 3px;
|
|
78
105
|
white-space: nowrap;
|
|
79
106
|
}
|
|
107
|
+
|
|
80
108
|
.monaco-workbench .hover-language-status > .element .right {
|
|
81
109
|
margin: auto 0;
|
|
82
110
|
display: flex;
|
|
83
111
|
}
|
|
112
|
+
|
|
84
113
|
.monaco-workbench .hover-language-status > .element .right:not(:empty) {
|
|
85
114
|
padding-left: 16px;
|
|
86
115
|
}
|
|
116
|
+
|
|
87
117
|
.monaco-workbench .hover-language-status > .element .right .monaco-link {
|
|
88
118
|
margin: auto 0;
|
|
89
119
|
white-space: nowrap;
|
|
90
120
|
text-decoration: var(--text-link-decoration);
|
|
91
121
|
}
|
|
122
|
+
|
|
92
123
|
.monaco-workbench .hover-language-status > .element .right .monaco-action-bar:not(:first-child) {
|
|
93
124
|
padding-left: 8px;
|
|
94
125
|
}
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
3
3
|
import { ILanguageStatusService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/languageStatus/common/languageStatusService.service";
|
|
4
4
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
5
5
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
6
|
+
/**
|
|
7
|
+
* Uses that language status indicator to show information which language features have been limited for performance reasons.
|
|
8
|
+
* Currently this is used for folding ranges and for color decorators.
|
|
9
|
+
*/
|
|
6
10
|
export declare class LimitIndicatorContribution extends Disposable implements IWorkbenchContribution {
|
|
7
11
|
constructor(editorService: IEditorService, languageStatusService: ILanguageStatusService);
|
|
8
12
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
1
6
|
.monaco-workbench .merge-editor .code-view > .header {
|
|
2
7
|
padding: 0 10px;
|
|
3
8
|
height: 30px;
|
|
@@ -5,6 +10,7 @@
|
|
|
5
10
|
align-content: center;
|
|
6
11
|
overflow: hidden;
|
|
7
12
|
}
|
|
13
|
+
|
|
8
14
|
.monaco-workbench .merge-editor .code-view > .header > span {
|
|
9
15
|
align-self: center;
|
|
10
16
|
text-overflow: ellipsis;
|
|
@@ -12,9 +18,11 @@
|
|
|
12
18
|
padding-right: 6px;
|
|
13
19
|
white-space: nowrap;
|
|
14
20
|
}
|
|
21
|
+
|
|
15
22
|
.monaco-workbench .merge-editor .code-view > .header > span.title {
|
|
16
23
|
flex-shrink: 0;
|
|
17
24
|
}
|
|
25
|
+
|
|
18
26
|
.monaco-workbench .merge-editor .code-view > .header > span.description {
|
|
19
27
|
flex-shrink: 0;
|
|
20
28
|
display: flex;
|
|
@@ -22,6 +30,7 @@
|
|
|
22
30
|
align-items: center;
|
|
23
31
|
color: var(--vscode-descriptionForeground);
|
|
24
32
|
}
|
|
33
|
+
|
|
25
34
|
.monaco-workbench .merge-editor .code-view.result > .header > .description {
|
|
26
35
|
display: inline;
|
|
27
36
|
flex-shrink: 1;
|
|
@@ -32,18 +41,23 @@
|
|
|
32
41
|
.monaco-workbench .merge-editor .code-view.result > .header > .toolbar {
|
|
33
42
|
flex-shrink: 0;
|
|
34
43
|
}
|
|
44
|
+
|
|
35
45
|
.monaco-workbench .merge-editor .code-view > .header > span.description .codicon {
|
|
36
46
|
font-size: 14px;
|
|
37
47
|
color: var(--vscode-descriptionForeground);
|
|
38
48
|
}
|
|
49
|
+
|
|
39
50
|
.monaco-workbench .merge-editor .code-view > .header > span.detail {
|
|
40
51
|
margin-left: auto;
|
|
41
52
|
font-size: 12px;
|
|
42
53
|
color: var(--vscode-descriptionForeground);
|
|
43
54
|
}
|
|
55
|
+
|
|
44
56
|
.monaco-workbench .merge-editor .code-view > .header > span.detail .codicon {
|
|
45
57
|
font-size: 13px;
|
|
46
58
|
}
|
|
59
|
+
|
|
60
|
+
/* for input1|2 -> align details to the left */
|
|
47
61
|
.monaco-workbench .merge-editor .code-view.input > .header > span.detail::before {
|
|
48
62
|
content: '•';
|
|
49
63
|
opacity: .5;
|
|
@@ -56,10 +70,13 @@
|
|
|
56
70
|
flex-shrink: 0;
|
|
57
71
|
margin-left: auto;
|
|
58
72
|
}
|
|
73
|
+
|
|
74
|
+
|
|
59
75
|
.monaco-workbench .merge-editor .code-view > .container {
|
|
60
76
|
display: flex;
|
|
61
77
|
flex-direction: row;
|
|
62
78
|
}
|
|
79
|
+
|
|
63
80
|
.monaco-workbench .merge-editor .code-view > .container > .gutter {
|
|
64
81
|
width: 24px;
|
|
65
82
|
position: relative;
|
|
@@ -67,80 +84,107 @@
|
|
|
67
84
|
flex-shrink: 0;
|
|
68
85
|
flex-grow: 0;
|
|
69
86
|
}
|
|
87
|
+
|
|
70
88
|
.monaco-workbench .merge-editor .merge-editor-diff {
|
|
71
89
|
background-color: var(--vscode-mergeEditor-change-background);
|
|
72
90
|
}
|
|
91
|
+
|
|
73
92
|
.monaco-workbench .merge-editor .merge-editor-diff-word {
|
|
74
93
|
background-color: var(--vscode-mergeEditor-change-word-background);
|
|
75
94
|
}
|
|
95
|
+
|
|
96
|
+
/* BEGIN: .merge-editor-block */
|
|
97
|
+
|
|
76
98
|
.monaco-workbench .merge-editor .merge-editor-block:not(.handled):not(.focused) {
|
|
77
99
|
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
78
100
|
}
|
|
101
|
+
|
|
79
102
|
.monaco-workbench .merge-editor .merge-editor-block:not(.handled).focused {
|
|
80
103
|
border: 2px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
81
104
|
}
|
|
105
|
+
|
|
82
106
|
.monaco-workbench .merge-editor .merge-editor-block.handled:not(.focused) {
|
|
83
107
|
border: 1px solid var(--vscode-mergeEditor-conflict-handledUnfocused-border);
|
|
84
108
|
}
|
|
109
|
+
|
|
85
110
|
.monaco-workbench .merge-editor .merge-editor-block.handled.focused {
|
|
86
111
|
border: 1px solid var(--vscode-mergeEditor-conflict-handledFocused-border);
|
|
87
112
|
}
|
|
113
|
+
|
|
88
114
|
.monaco-workbench .merge-editor .merge-editor-simplified.input.i1, .merge-editor-block.use-simplified-decorations.input.i1 {
|
|
89
115
|
background-color: var(--vscode-mergeEditor-conflict-input1-background);
|
|
90
116
|
}
|
|
117
|
+
|
|
91
118
|
.monaco-workbench .merge-editor .merge-editor-simplified.input.i2, .merge-editor-block.use-simplified-decorations.input.i2 {
|
|
92
119
|
background-color: var(--vscode-mergeEditor-conflict-input2-background);
|
|
93
120
|
}
|
|
121
|
+
|
|
122
|
+
/* END: .merge-editor-block */
|
|
123
|
+
|
|
94
124
|
.gutter.monaco-editor > div {
|
|
95
125
|
position: absolute;
|
|
96
126
|
}
|
|
127
|
+
|
|
97
128
|
.merge-accept-gutter-marker {
|
|
98
129
|
width: 28px;
|
|
99
130
|
margin-left: 4px;
|
|
100
131
|
}
|
|
132
|
+
|
|
101
133
|
.merge-accept-gutter-marker .background {
|
|
102
134
|
height: 100%;
|
|
103
135
|
width: 50%;
|
|
104
136
|
position: absolute;
|
|
105
137
|
}
|
|
138
|
+
|
|
106
139
|
.merge-accept-gutter-marker.multi-line.focused .background {
|
|
107
140
|
border: 2px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
108
141
|
border-right: 0;
|
|
109
142
|
}
|
|
143
|
+
|
|
110
144
|
.merge-accept-gutter-marker.multi-line .background {
|
|
111
145
|
border: 2px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
112
146
|
border-right: 0;
|
|
113
147
|
border-top-left-radius: 3px;
|
|
114
148
|
border-bottom-left-radius: 3px;
|
|
115
149
|
}
|
|
150
|
+
|
|
116
151
|
.merge-accept-gutter-marker.multi-line.handled.focused .background {
|
|
117
152
|
border: 2px solid var(--vscode-mergeEditor-conflict-handledFocused-border);
|
|
118
153
|
border-right: 0;
|
|
119
154
|
}
|
|
155
|
+
|
|
120
156
|
.merge-accept-gutter-marker.multi-line.handled .background {
|
|
121
157
|
border: 2px solid var(--vscode-checkbox-border);
|
|
122
158
|
border-right: 0;
|
|
123
159
|
}
|
|
160
|
+
|
|
161
|
+
|
|
124
162
|
.focused .accept-conflict-group.monaco-custom-toggle {
|
|
125
163
|
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
126
164
|
}
|
|
165
|
+
|
|
127
166
|
.accept-conflict-group.monaco-custom-toggle {
|
|
128
167
|
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
129
168
|
}
|
|
169
|
+
|
|
130
170
|
.handled.focused .accept-conflict-group.monaco-custom-toggle {
|
|
131
171
|
border: 1px solid var(--vscode-mergeEditor-conflict-handledFocused-border);
|
|
132
172
|
}
|
|
173
|
+
|
|
133
174
|
.handled .accept-conflict-group.monaco-custom-toggle {
|
|
134
175
|
border: 1px solid var(--vscode-checkbox-border);
|
|
135
176
|
}
|
|
177
|
+
|
|
136
178
|
.merge-accept-gutter-marker.multi-line .background {
|
|
137
179
|
left: 8px;
|
|
138
180
|
width: 10px;
|
|
139
181
|
}
|
|
182
|
+
|
|
140
183
|
.merge-accept-gutter-marker .checkbox {
|
|
141
184
|
width: 100%;
|
|
142
185
|
position: absolute;
|
|
143
186
|
}
|
|
187
|
+
|
|
144
188
|
.accept-conflict-group.monaco-custom-toggle {
|
|
145
189
|
height: 18px;
|
|
146
190
|
width: 18px;
|
|
@@ -152,10 +196,12 @@
|
|
|
152
196
|
background-size: 16px !important;
|
|
153
197
|
background-color: var(--vscode-checkbox-border);
|
|
154
198
|
}
|
|
199
|
+
|
|
155
200
|
.merge-accept-gutter-marker .checkbox-background {
|
|
156
201
|
display: flex;
|
|
157
202
|
background: var(--vscode-editor-background);
|
|
158
203
|
}
|
|
204
|
+
|
|
159
205
|
.conflict-zone-root {
|
|
160
206
|
background-color: var(--vscode-mergeEditor-change-background);
|
|
161
207
|
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledUnfocused-border);
|
|
@@ -164,13 +210,16 @@
|
|
|
164
210
|
align-items: center;
|
|
165
211
|
align-content: center;
|
|
166
212
|
}
|
|
213
|
+
|
|
167
214
|
.conflict-zone-root .dots {
|
|
168
215
|
margin: 0 10px;
|
|
169
216
|
}
|
|
217
|
+
|
|
170
218
|
.conflict-zone-root pre {
|
|
171
219
|
display: 'inline';
|
|
172
220
|
font-family: var(--monaco-monospace-font);
|
|
173
221
|
}
|
|
222
|
+
|
|
174
223
|
.conflict-zone-root .text {
|
|
175
224
|
background: var(--vscode-mergeEditor-conflictingLines-background);
|
|
176
225
|
margin-left: auto;
|
|
@@ -181,9 +230,12 @@
|
|
|
181
230
|
white-space: nowrap;
|
|
182
231
|
overflow: hidden;
|
|
183
232
|
}
|
|
233
|
+
|
|
234
|
+
|
|
184
235
|
.focused.conflict-zone .conflict-zone-root {
|
|
185
236
|
border: 1px solid var(--vscode-mergeEditor-conflict-unhandledFocused-border);
|
|
186
237
|
}
|
|
238
|
+
|
|
187
239
|
.merge-editor-conflict-actions {
|
|
188
240
|
margin: 0px 3px;
|
|
189
241
|
overflow: hidden;
|
|
@@ -192,44 +244,55 @@
|
|
|
192
244
|
white-space: nowrap;
|
|
193
245
|
color: var(--vscode-editorCodeLens-foreground)
|
|
194
246
|
}
|
|
247
|
+
|
|
195
248
|
.merge-editor-conflict-actions > span,
|
|
196
249
|
.merge-editor-conflict-actions > a {
|
|
197
250
|
user-select: none;
|
|
198
251
|
-webkit-user-select: none;
|
|
199
252
|
white-space: nowrap;
|
|
200
253
|
}
|
|
254
|
+
|
|
201
255
|
.merge-editor-conflict-actions > a {
|
|
202
256
|
text-decoration: none;
|
|
203
257
|
}
|
|
258
|
+
|
|
204
259
|
.merge-editor-conflict-actions > a:hover {
|
|
205
260
|
cursor: pointer;
|
|
206
261
|
color: var(--vscode-editorLink-activeForeground) !important;
|
|
207
262
|
}
|
|
263
|
+
|
|
208
264
|
.merge-editor-conflict-actions > a:hover .codicon {
|
|
209
265
|
color: var(--vscode-editorLink-activeForeground) !important;
|
|
210
266
|
}
|
|
267
|
+
|
|
211
268
|
.merge-editor-conflict-actions .codicon {
|
|
212
269
|
vertical-align: middle;
|
|
213
270
|
color: currentColor !important;
|
|
214
271
|
color: var(--vscode-editorCodeLens-foreground);
|
|
215
272
|
}
|
|
273
|
+
|
|
216
274
|
.merge-editor-conflict-actions > a:hover .codicon::before {
|
|
217
275
|
cursor: pointer;
|
|
218
276
|
}
|
|
277
|
+
|
|
219
278
|
.fixed-zone-widget {
|
|
220
279
|
width: 100%;
|
|
221
280
|
}
|
|
281
|
+
|
|
222
282
|
.merge-editor-diff-empty-word.base {
|
|
223
283
|
margin-left: 3px;
|
|
224
284
|
border-left: solid var(--vscode-mergeEditor-changeBase-word-background) 3px;
|
|
225
285
|
}
|
|
286
|
+
|
|
226
287
|
.merge-editor-diff-empty-word.input {
|
|
227
288
|
margin-left: 3px;
|
|
228
289
|
border-left: solid var(--vscode-mergeEditor-change-word-background) 3px;
|
|
229
290
|
}
|
|
291
|
+
|
|
230
292
|
.merge-editor-diff-word.base {
|
|
231
293
|
background-color: var(--vscode-mergeEditor-changeBase-word-background);
|
|
232
294
|
}
|
|
295
|
+
|
|
233
296
|
.merge-editor-diff.base {
|
|
234
297
|
background-color: var(--vscode-mergeEditor-changeBase-background);
|
|
235
298
|
}
|
|
@@ -25,6 +25,9 @@ export declare class MergeEditorViewModel extends Disposable {
|
|
|
25
25
|
private counter;
|
|
26
26
|
private readonly lastFocusedEditor;
|
|
27
27
|
readonly baseShowDiffAgainst: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservableWithChange<1 | 2 | undefined, void>;
|
|
28
|
+
/**
|
|
29
|
+
* Returns an observable that tracks which editor type is currently focused
|
|
30
|
+
*/
|
|
28
31
|
readonly focusedEditorType: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservableWithChange<MergeEditorType | undefined, void>;
|
|
29
32
|
readonly selectionInBase: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservableWithChange<{
|
|
30
33
|
rangesInBase: Range[];
|
|
@@ -24,6 +24,9 @@ export declare class MergeEditorViewZones {
|
|
|
24
24
|
readonly resultViewZones: readonly MergeEditorViewZone[];
|
|
25
25
|
constructor(input1ViewZones: readonly MergeEditorViewZone[], input2ViewZones: readonly MergeEditorViewZone[], baseViewZones: readonly MergeEditorViewZone[], resultViewZones: readonly MergeEditorViewZone[]);
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* This is an abstract class to create various editor view zones.
|
|
29
|
+
*/
|
|
27
30
|
export declare abstract class MergeEditorViewZone {
|
|
28
31
|
abstract create(viewZoneChangeAccessor: IViewZoneChangeAccessor, viewZoneIdsToCleanUp: string[], disposableStore: DisposableStore): void;
|
|
29
32
|
}
|
|
@@ -1,47 +1,62 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
1
6
|
.monaco-workbench .type-hierarchy .results,
|
|
2
7
|
.monaco-workbench .type-hierarchy .message {
|
|
3
8
|
display: none;
|
|
4
9
|
}
|
|
10
|
+
|
|
5
11
|
.monaco-workbench .type-hierarchy[data-state="data"] .results {
|
|
6
12
|
display: inherit;
|
|
7
13
|
height: 100%;
|
|
8
14
|
}
|
|
15
|
+
|
|
9
16
|
.monaco-workbench .type-hierarchy[data-state="message"] .message {
|
|
10
17
|
display: flex;
|
|
11
18
|
align-items: center;
|
|
12
19
|
justify-content: center;
|
|
13
20
|
height: 100%;
|
|
14
21
|
}
|
|
22
|
+
|
|
15
23
|
.monaco-workbench .type-hierarchy .editor,
|
|
16
24
|
.monaco-workbench .type-hierarchy .tree {
|
|
17
25
|
height: 100%;
|
|
18
26
|
}
|
|
27
|
+
|
|
19
28
|
.monaco-editor .type-hierarchy .tree {
|
|
20
29
|
background-color: var(--vscode-peekViewResult-background);
|
|
21
30
|
color: var(--vscode-peekViewResult-fileForeground);
|
|
22
31
|
}
|
|
32
|
+
|
|
23
33
|
.monaco-editor .type-hierarchy .tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) {
|
|
24
34
|
background-color: var(--vscode-peekViewResult-selectionBackground);
|
|
25
35
|
color: var(--vscode-peekViewResult-selectionForeground) !important;
|
|
26
36
|
}
|
|
37
|
+
|
|
27
38
|
.monaco-workbench .type-hierarchy .tree .typehierarchy-element {
|
|
28
39
|
display: flex;
|
|
29
40
|
flex: 1;
|
|
30
41
|
flex-flow: row nowrap;
|
|
31
42
|
align-items: center;
|
|
32
43
|
}
|
|
44
|
+
|
|
33
45
|
.monaco-workbench .type-hierarchy .tree .typehierarchy-element .monaco-icon-label {
|
|
34
46
|
padding-left: 4px;
|
|
35
47
|
}
|
|
48
|
+
|
|
36
49
|
.monaco-editor .type-hierarchy .type-decoration {
|
|
37
50
|
background-color: var(--vscode-peekViewEditor-matchHighlightBackground);
|
|
38
51
|
border: 2px solid var(--vscode-peekViewEditor-matchHighlightBorder);
|
|
39
52
|
box-sizing: border-box;
|
|
40
53
|
}
|
|
54
|
+
|
|
41
55
|
.monaco-editor .type-hierarchy .editor .monaco-editor .monaco-editor-background,
|
|
42
56
|
.monaco-editor .type-hierarchy .editor .monaco-editor .inputarea.ime-input {
|
|
43
57
|
background-color: var(--vscode-peekViewEditor-background);
|
|
44
58
|
}
|
|
59
|
+
|
|
45
60
|
.monaco-editor .type-hierarchy .editor .monaco-editor .margin {
|
|
46
61
|
background-color: var(--vscode-peekViewEditorGutter-background);
|
|
47
62
|
}
|
|
@@ -8,6 +8,9 @@ import { ExtensionIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
8
8
|
import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
9
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
|
+
/**
|
|
12
|
+
* Webview that is absolutely positioned over another element and that can creates and destroys an underlying webview as needed.
|
|
13
|
+
*/
|
|
11
14
|
export declare class OverlayWebview extends Disposable implements IOverlayWebview {
|
|
12
15
|
private readonly _layoutService;
|
|
13
16
|
private readonly _webviewService;
|
|
@@ -28,7 +28,13 @@ export declare class WebviewElement extends Disposable implements IWebview, Webv
|
|
|
28
28
|
private readonly _tunnelService;
|
|
29
29
|
private readonly _accessibilityService;
|
|
30
30
|
protected readonly id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The provided identifier of this webview.
|
|
33
|
+
*/
|
|
31
34
|
readonly providedViewType?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The origin this webview itself is loaded from. May not be unique
|
|
37
|
+
*/
|
|
32
38
|
readonly origin: string;
|
|
33
39
|
private _windowId;
|
|
34
40
|
private get window();
|
|
@@ -131,6 +137,13 @@ export declare class WebviewElement extends Disposable implements IWebview, Webv
|
|
|
131
137
|
readonly hasFindResult: Event<boolean>;
|
|
132
138
|
protected readonly _onDidStopFind: Emitter<void>;
|
|
133
139
|
readonly onDidStopFind: Event<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Webviews expose a stateful find API.
|
|
142
|
+
* Successive calls to find will move forward or backward through onFindResults
|
|
143
|
+
* depending on the supplied options.
|
|
144
|
+
*
|
|
145
|
+
* @param value The string to search for. Empty strings are ignored.
|
|
146
|
+
*/
|
|
134
147
|
find(value: string, previous: boolean): void;
|
|
135
148
|
updateFind(value: string): void;
|
|
136
149
|
stopFind(keepSelection?: boolean): void;
|
|
@@ -4,17 +4,53 @@ import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
4
4
|
import { IViewBadge } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
5
5
|
import { IOverlayWebview } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
6
6
|
import { IWebviewViewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service";
|
|
7
|
+
/**
|
|
8
|
+
* A webview shown in a view pane.
|
|
9
|
+
*/
|
|
7
10
|
export interface WebviewView {
|
|
11
|
+
/**
|
|
12
|
+
* The text displayed in the view's title.
|
|
13
|
+
*/
|
|
8
14
|
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Additional text shown for this view.
|
|
17
|
+
*/
|
|
9
18
|
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The badge shown for this view.
|
|
21
|
+
*/
|
|
10
22
|
badge?: IViewBadge;
|
|
23
|
+
/**
|
|
24
|
+
* The webview associated with this webview view.
|
|
25
|
+
*/
|
|
11
26
|
readonly webview: IOverlayWebview;
|
|
27
|
+
/**
|
|
28
|
+
* Fired when the visibility of the webview view changes.
|
|
29
|
+
*
|
|
30
|
+
* This can happen when the view itself is hidden, when the view is collapsed, or when the user switches away from
|
|
31
|
+
* the view.
|
|
32
|
+
*/
|
|
12
33
|
readonly onDidChangeVisibility: Event<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Fired when the webview view has been disposed of.
|
|
36
|
+
*/
|
|
13
37
|
readonly onDispose: Event<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Dispose of the webview view and clean up any associated resources.
|
|
40
|
+
*/
|
|
14
41
|
dispose(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Force the webview view to show.
|
|
44
|
+
*/
|
|
15
45
|
show(preserveFocus: boolean): void;
|
|
16
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Fill in the contents of a newly created webview view.
|
|
49
|
+
*/
|
|
17
50
|
export interface IWebviewViewResolver {
|
|
51
|
+
/**
|
|
52
|
+
* Fill in the contents of a webview view.
|
|
53
|
+
*/
|
|
18
54
|
resolve(webviewView: WebviewView, cancellation: CancellationToken): Promise<void>;
|
|
19
55
|
}
|
|
20
56
|
export declare class WebviewViewService extends Disposable implements IWebviewViewService {
|
|
@@ -40,14 +40,39 @@ export declare class EditorResolverService extends Disposable implements IEditor
|
|
|
40
40
|
registerEditor(globPattern: string | glob.IRelativePattern, editorInfo: RegisteredEditorInfo, options: RegisteredEditorOptions, editorFactoryObject: EditorInputFactoryObject): IDisposable;
|
|
41
41
|
getAssociationsForResource(resource: URI): EditorAssociations;
|
|
42
42
|
getAllUserAssociations(): EditorAssociations;
|
|
43
|
+
/**
|
|
44
|
+
* Given the nested nature of the editors map, we merge factories of the same glob and id to make it flat
|
|
45
|
+
* and easier to work with
|
|
46
|
+
*/
|
|
43
47
|
private _flattenEditorsMap;
|
|
48
|
+
/**
|
|
49
|
+
* Returns all editors as an array. Possible to contain duplicates
|
|
50
|
+
*/
|
|
44
51
|
private get _registeredEditors();
|
|
45
52
|
updateUserAssociations(globPattern: string, editorID: string): void;
|
|
46
53
|
private findMatchingEditors;
|
|
47
54
|
getEditors(resource?: URI): RegisteredEditorInfo[];
|
|
55
|
+
/**
|
|
56
|
+
* Given a resource and an editorId selects the best possible editor
|
|
57
|
+
* @returns The editor and whether there was another default which conflicted with it
|
|
58
|
+
*/
|
|
48
59
|
private getEditor;
|
|
49
60
|
private doResolveEditor;
|
|
61
|
+
/**
|
|
62
|
+
* Moves the first existing editor for a resource to the target group unless already opened there.
|
|
63
|
+
* Additionally will close any other editors that are open for that resource and viewtype besides the first one found
|
|
64
|
+
* @param resource The resource of the editor
|
|
65
|
+
* @param viewType the viewtype of the editor
|
|
66
|
+
* @param targetGroup The group to move it to
|
|
67
|
+
* @returns The moved editor input or `undefined` if the editor could not be moved
|
|
68
|
+
*/
|
|
50
69
|
private moveExistingEditorForResource;
|
|
70
|
+
/**
|
|
71
|
+
* Given a resource and an editorId, returns all editors open for that resource and editorId.
|
|
72
|
+
* @param resource The resource specified
|
|
73
|
+
* @param editorId The editorID
|
|
74
|
+
* @returns A list of editors
|
|
75
|
+
*/
|
|
51
76
|
private findExistingEditorsForResource;
|
|
52
77
|
private doHandleConflictingDefaults;
|
|
53
78
|
private mapEditorsToQuickPickEntry;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
1
6
|
.monaco-workbench .progress-badge > .badge-content::before {
|
|
2
7
|
mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDIgMiAxNCAxNCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTkgMTZjLTMuODYgMC03LTMuMTQtNy03czMuMTQtNyA3LTdjMy44NTkgMCA3IDMuMTQxIDcgN3MtMy4xNDEgNy03IDd6bTAtMTIuNmMtMy4wODggMC01LjYgMi41MTMtNS42IDUuNnMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNi0yLjUxMi01LjYtNS42LTUuNnptMy44NiA3LjFsLTMuMTYtMS44OTZ2LTMuODA0aC0xLjR2NC41OTZsMy44NCAyLjMwNS43Mi0xLjIwMXoiLz48L3N2Zz4=") no-repeat;
|
|
3
8
|
-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDIgMiAxNCAxNCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTkgMTZjLTMuODYgMC03LTMuMTQtNy03czMuMTQtNyA3LTdjMy44NTkgMCA3IDMuMTQxIDcgN3MtMy4xNDEgNy03IDd6bTAtMTIuNmMtMy4wODggMC01LjYgMi41MTMtNS42IDUuNnMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNi0yLjUxMi01LjYtNS42LTUuNnptMy44NiA3LjFsLTMuMTYtMS44OTZ2LTMuODA0aC0xLjR2NC41OTZsMy44NCAyLjMwNS43Mi0xLjIwMXoiLz48L3N2Zz4=") no-repeat;
|
|
@@ -6,14 +6,38 @@ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"
|
|
|
6
6
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
7
7
|
import { IUntitledTextEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
8
8
|
export interface INewUntitledTextEditorOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Initial value of the untitled editor. An untitled editor with initial
|
|
11
|
+
* value is dirty right from the beginning.
|
|
12
|
+
*/
|
|
9
13
|
initialValue?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Preferred language id to use when saving the untitled editor.
|
|
16
|
+
*/
|
|
10
17
|
languageId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Preferred encoding to use when saving the untitled editor.
|
|
20
|
+
*/
|
|
11
21
|
encoding?: string;
|
|
12
22
|
}
|
|
13
23
|
export interface IExistingUntitledTextEditorOptions extends INewUntitledTextEditorOptions {
|
|
24
|
+
/**
|
|
25
|
+
* A resource to identify the untitled editor to create or return
|
|
26
|
+
* if already existing.
|
|
27
|
+
*
|
|
28
|
+
* Note: the resource will not be used unless the scheme is `untitled`.
|
|
29
|
+
*/
|
|
14
30
|
untitledResource?: URI;
|
|
15
31
|
}
|
|
16
32
|
export interface INewUntitledTextEditorWithAssociatedResourceOptions extends INewUntitledTextEditorOptions {
|
|
33
|
+
/**
|
|
34
|
+
* Resource components to associate with the untitled editor. When saving
|
|
35
|
+
* the untitled editor, the associated components will be used and the user
|
|
36
|
+
* is not being asked to provide a file path.
|
|
37
|
+
*
|
|
38
|
+
* Note: currently it is not possible to specify the `scheme` to use. The
|
|
39
|
+
* untitled editor will saved to the default local or remote resource.
|
|
40
|
+
*/
|
|
17
41
|
associatedResource?: {
|
|
18
42
|
authority: string;
|
|
19
43
|
path: string;
|
|
@@ -23,10 +47,19 @@ export interface INewUntitledTextEditorWithAssociatedResourceOptions extends INe
|
|
|
23
47
|
}
|
|
24
48
|
type IInternalUntitledTextEditorOptions = IExistingUntitledTextEditorOptions & INewUntitledTextEditorWithAssociatedResourceOptions;
|
|
25
49
|
export interface IUntitledTextEditorModelSaveEvent {
|
|
50
|
+
/**
|
|
51
|
+
* The source untitled file that was saved. It is disposed at this point.
|
|
52
|
+
*/
|
|
26
53
|
readonly source: URI;
|
|
54
|
+
/**
|
|
55
|
+
* The target file the untitled was saved to. Is never untitled.
|
|
56
|
+
*/
|
|
27
57
|
readonly target: URI;
|
|
28
58
|
}
|
|
29
59
|
export interface IUntitledTextEditorModelManager extends IUntitledTextEditorService {
|
|
60
|
+
/**
|
|
61
|
+
* Internal method: triggers the onDidSave event.
|
|
62
|
+
*/
|
|
30
63
|
notifyDidSave(source: URI, target: URI): void;
|
|
31
64
|
}
|
|
32
65
|
export declare class UntitledTextEditorService extends Disposable implements IUntitledTextEditorModelManager {
|