@codingame/monaco-vscode-welcome-service-override 23.2.2 → 24.1.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 +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-welcome-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - welcome service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.1.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -17,13 +17,13 @@ import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/com
|
|
|
17
17
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
18
18
|
|
|
19
19
|
var NewFileTemplatesManager_1;
|
|
20
|
-
const builtInSource = ( localize(
|
|
21
|
-
const category = ( localize2(
|
|
20
|
+
const builtInSource = ( localize(13373, "Built-In"));
|
|
21
|
+
const category = ( localize2(13374, 'Create'));
|
|
22
22
|
registerAction2(class extends Action2 {
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: 'welcome.showNewFileEntries',
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(13375, 'New File...')),
|
|
27
27
|
category,
|
|
28
28
|
f1: true,
|
|
29
29
|
keybinding: {
|
|
@@ -83,8 +83,8 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
|
|
|
83
83
|
const { promise: resultPromise, resolve: resolveResult } = promiseWithResolvers();
|
|
84
84
|
const disposables = ( new DisposableStore());
|
|
85
85
|
const qp = this.quickInputService.createQuickPick({ useSeparators: true });
|
|
86
|
-
qp.title = ( localize(
|
|
87
|
-
qp.placeholder = ( localize(
|
|
86
|
+
qp.title = ( localize(13376, "New File..."));
|
|
87
|
+
qp.placeholder = ( localize(13377, "Select File Type or Enter File Name..."));
|
|
88
88
|
qp.sortByLabel = false;
|
|
89
89
|
qp.matchOnDetail = true;
|
|
90
90
|
qp.matchOnDescription = true;
|
|
@@ -110,8 +110,8 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
|
|
|
110
110
|
return a.from.localeCompare(b.from);
|
|
111
111
|
};
|
|
112
112
|
const displayCategory = {
|
|
113
|
-
'file': ( localize(
|
|
114
|
-
'notebook': ( localize(
|
|
113
|
+
'file': ( localize(13378, "File")),
|
|
114
|
+
'notebook': ( localize(13379, "Notebook")),
|
|
115
115
|
};
|
|
116
116
|
const refreshQp = (entries) => {
|
|
117
117
|
const items = [];
|
|
@@ -136,7 +136,7 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
|
|
|
136
136
|
buttons: command ? [
|
|
137
137
|
{
|
|
138
138
|
iconClass: 'codicon codicon-gear',
|
|
139
|
-
tooltip: ( localize(
|
|
139
|
+
tooltip: ( localize(13380, "Configure Keybinding"))
|
|
140
140
|
}
|
|
141
141
|
] : [],
|
|
142
142
|
detail: '',
|
|
@@ -155,7 +155,7 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
|
|
|
155
155
|
const currentTextEntry = {
|
|
156
156
|
commandID: 'workbench.action.files.newFile',
|
|
157
157
|
commandArgs: { languageId: undefined, viewType: undefined, fileName: val },
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(13381, "Create New File ({0})", val)),
|
|
159
159
|
group: 'file',
|
|
160
160
|
from: builtInSource,
|
|
161
161
|
};
|
|
@@ -196,7 +196,7 @@ MenuRegistry.appendMenuItem(MenuId.NewFile, {
|
|
|
196
196
|
group: 'file',
|
|
197
197
|
command: {
|
|
198
198
|
id: 'workbench.action.files.newUntitledFile',
|
|
199
|
-
title: ( localize(
|
|
199
|
+
title: ( localize(13382, "Text File"))
|
|
200
200
|
},
|
|
201
201
|
order: 1
|
|
202
202
|
});
|
|
@@ -54,7 +54,7 @@ function parseGroupAndOrder(welcome, contribution) {
|
|
|
54
54
|
if (welcome.group) {
|
|
55
55
|
if (!isProposedApiEnabled(contribution.description, 'contribViewsWelcome')) {
|
|
56
56
|
contribution.collector.warn(( localize(
|
|
57
|
-
|
|
57
|
+
13383,
|
|
58
58
|
"The viewsWelcome contribution in '{0}' requires 'enabledApiProposals: [\"contribViewsWelcome\"]' in order to use the 'group' proposed property.",
|
|
59
59
|
contribution.description.identifier.value
|
|
60
60
|
)));
|
|
@@ -18,12 +18,12 @@ const ViewIdentifierMap = {
|
|
|
18
18
|
const viewsWelcomeExtensionPointSchema = ( Object.freeze({
|
|
19
19
|
type: 'array',
|
|
20
20
|
description: ( localize(
|
|
21
|
-
|
|
21
|
+
13384,
|
|
22
22
|
"Contributed views welcome content. Welcome content will be rendered in tree based views whenever they have no meaningful content to display, ie. the File Explorer when no folder is open. Such content is useful as in-product documentation to drive users to use certain features before they are available. A good example would be a `Clone Repository` button in the File Explorer welcome view."
|
|
23
23
|
)),
|
|
24
24
|
items: {
|
|
25
25
|
type: 'object',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(13385, "Contributed welcome content for a specific view.")),
|
|
27
27
|
required: [
|
|
28
28
|
ViewsWelcomeExtensionPointFields.view,
|
|
29
29
|
ViewsWelcomeExtensionPointFields.contents
|
|
@@ -34,14 +34,14 @@ const viewsWelcomeExtensionPointSchema = ( Object.freeze({
|
|
|
34
34
|
{
|
|
35
35
|
type: 'string',
|
|
36
36
|
description: ( localize(
|
|
37
|
-
|
|
37
|
+
13386,
|
|
38
38
|
"Target view identifier for this welcome content. Only tree based views are supported."
|
|
39
39
|
))
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
type: 'string',
|
|
43
43
|
description: ( localize(
|
|
44
|
-
|
|
44
|
+
13386,
|
|
45
45
|
"Target view identifier for this welcome content. Only tree based views are supported."
|
|
46
46
|
)),
|
|
47
47
|
enum: ( Object.keys(ViewIdentifierMap))
|
|
@@ -51,22 +51,22 @@ const viewsWelcomeExtensionPointSchema = ( Object.freeze({
|
|
|
51
51
|
[ViewsWelcomeExtensionPointFields.contents]: {
|
|
52
52
|
type: 'string',
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
13387,
|
|
55
55
|
"Welcome content to be displayed. The format of the contents is a subset of Markdown, with support for links only."
|
|
56
56
|
)),
|
|
57
57
|
},
|
|
58
58
|
[ViewsWelcomeExtensionPointFields.when]: {
|
|
59
59
|
type: 'string',
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(13388, "Condition when the welcome content should be displayed.")),
|
|
61
61
|
},
|
|
62
62
|
[ViewsWelcomeExtensionPointFields.group]: {
|
|
63
63
|
type: 'string',
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(13389, "Group to which this welcome content belongs. Proposed API.")),
|
|
65
65
|
},
|
|
66
66
|
[ViewsWelcomeExtensionPointFields.enablement]: {
|
|
67
67
|
type: 'string',
|
|
68
68
|
description: ( localize(
|
|
69
|
-
|
|
69
|
+
13390,
|
|
70
70
|
"Condition when the welcome content buttons and command links should be enabled."
|
|
71
71
|
)),
|
|
72
72
|
},
|