@codingame/monaco-vscode-welcome-service-override 9.0.3 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-welcome-service-override",
3
- "version": "9.0.3",
3
+ "version": "10.0.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@9.0.3"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.0.1"
30
30
  }
31
31
  }
@@ -1,6 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { promiseWithResolvers } from 'vscode/vscode/vs/base/common/async';
3
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
4
3
  import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
5
4
  import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
6
5
  import { localize, localize2 } from 'vscode/vscode/vs/nls';
@@ -9,25 +8,23 @@ import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.s
9
8
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
10
9
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
11
10
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
12
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
13
11
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
14
12
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
15
13
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
16
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
17
14
 
18
15
  var NewFileTemplatesManager_1;
19
- const builtInSource = ( localize(3024, "Built-In"));
20
- const category = ( localize2(3025, 'Create'));
16
+ const builtInSource = ( localize(3007, "Built-In"));
17
+ const category = ( localize2(3008, 'Create'));
21
18
  registerAction2(class extends Action2 {
22
19
  constructor() {
23
20
  super({
24
21
  id: 'welcome.showNewFileEntries',
25
- title: ( localize2(3026, 'New File...')),
22
+ title: ( localize2(3009, 'New File...')),
26
23
  category,
27
24
  f1: true,
28
25
  keybinding: {
29
- primary: KeyMod.Alt + KeyMod.CtrlCmd + KeyMod.WinCtrl + KeyCode.KeyN,
30
- weight: KeybindingWeight.WorkbenchContrib,
26
+ primary: 512 + 2048 + 256 + 44 ,
27
+ weight: 200 ,
31
28
  },
32
29
  menu: {
33
30
  id: MenuId.MenubarFileMenu,
@@ -82,8 +79,8 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
82
79
  const { promise: resultPromise, resolve: resolveResult } = promiseWithResolvers();
83
80
  const disposables = ( (new DisposableStore()));
84
81
  const qp = this.quickInputService.createQuickPick({ useSeparators: true });
85
- qp.title = ( localize(3027, "New File..."));
86
- qp.placeholder = ( localize(3028, "Select File Type or Enter File Name..."));
82
+ qp.title = ( localize(3010, "New File..."));
83
+ qp.placeholder = ( localize(3011, "Select File Type or Enter File Name..."));
87
84
  qp.sortByLabel = false;
88
85
  qp.matchOnDetail = true;
89
86
  qp.matchOnDescription = true;
@@ -109,8 +106,8 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
109
106
  return a.from.localeCompare(b.from);
110
107
  };
111
108
  const displayCategory = {
112
- 'file': ( localize(3029, "File")),
113
- 'notebook': ( localize(3030, "Notebook")),
109
+ 'file': ( localize(3012, "File")),
110
+ 'notebook': ( localize(3013, "Notebook")),
114
111
  };
115
112
  const refreshQp = (entries) => {
116
113
  const items = [];
@@ -135,7 +132,7 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
135
132
  buttons: command ? [
136
133
  {
137
134
  iconClass: 'codicon codicon-gear',
138
- tooltip: ( localize(3031, "Configure Keybinding"))
135
+ tooltip: ( localize(3014, "Configure Keybinding"))
139
136
  }
140
137
  ] : [],
141
138
  detail: '',
@@ -154,7 +151,7 @@ let NewFileTemplatesManager = class NewFileTemplatesManager extends Disposable {
154
151
  const currentTextEntry = {
155
152
  commandID: 'workbench.action.files.newFile',
156
153
  commandArgs: { languageId: undefined, viewType: undefined, fileName: val },
157
- title: ( localize(3032, "Create New File ({0})", val)),
154
+ title: ( localize(3015, "Create New File ({0})", val)),
158
155
  group: 'file',
159
156
  from: builtInSource,
160
157
  };
@@ -190,12 +187,12 @@ NewFileTemplatesManager = NewFileTemplatesManager_1 = ( (__decorate([
190
187
  ( (__param(4, IMenuService)))
191
188
  ], NewFileTemplatesManager)));
192
189
  ( (Registry.as(Extensions.Workbench)))
193
- .registerWorkbenchContribution(NewFileTemplatesManager, LifecyclePhase.Restored);
190
+ .registerWorkbenchContribution(NewFileTemplatesManager, 3 );
194
191
  MenuRegistry.appendMenuItem(MenuId.NewFile, {
195
192
  group: 'file',
196
193
  command: {
197
194
  id: 'workbench.action.files.newUntitledFile',
198
- title: ( localize(3033, "Text File"))
195
+ title: ( localize(3016, "Text File"))
199
196
  },
200
197
  order: 1
201
198
  });
@@ -1,6 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
4
3
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
5
4
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
6
5
  import { ViewsWelcomeContribution } from './viewsWelcomeContribution.js';
@@ -17,4 +16,4 @@ WorkbenchConfigurationContribution = ( __decorate([
17
16
  ( __param(0, IInstantiationService))
18
17
  ], WorkbenchConfigurationContribution));
19
18
  ( Registry.as(Extensions.Workbench))
20
- .registerWorkbenchContribution(WorkbenchConfigurationContribution, LifecyclePhase.Restored);
19
+ .registerWorkbenchContribution(WorkbenchConfigurationContribution, 3 );
@@ -53,7 +53,7 @@ function parseGroupAndOrder(welcome, contribution) {
53
53
  if (welcome.group) {
54
54
  if (!isProposedApiEnabled(contribution.description, 'contribViewsWelcome')) {
55
55
  contribution.collector.warn(( localize(
56
- 6795,
56
+ 6773,
57
57
  "The viewsWelcome contribution in '{0}' requires 'enabledApiProposals: [\"contribViewsWelcome\"]' in order to use the 'group' proposed property.",
58
58
  contribution.description.identifier.value
59
59
  )));
@@ -19,12 +19,12 @@ const ViewIdentifierMap = {
19
19
  const viewsWelcomeExtensionPointSchema = ( (Object.freeze({
20
20
  type: 'array',
21
21
  description: ( localize(
22
- 6796,
22
+ 6774,
23
23
  "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."
24
24
  )),
25
25
  items: {
26
26
  type: 'object',
27
- description: ( localize(6797, "Contributed welcome content for a specific view.")),
27
+ description: ( localize(6775, "Contributed welcome content for a specific view.")),
28
28
  required: [
29
29
  ViewsWelcomeExtensionPointFields.view,
30
30
  ViewsWelcomeExtensionPointFields.contents
@@ -35,14 +35,14 @@ const viewsWelcomeExtensionPointSchema = ( (Object.freeze({
35
35
  {
36
36
  type: 'string',
37
37
  description: ( localize(
38
- 6798,
38
+ 6776,
39
39
  "Target view identifier for this welcome content. Only tree based views are supported."
40
40
  ))
41
41
  },
42
42
  {
43
43
  type: 'string',
44
44
  description: ( localize(
45
- 6798,
45
+ 6776,
46
46
  "Target view identifier for this welcome content. Only tree based views are supported."
47
47
  )),
48
48
  enum: ( (Object.keys(ViewIdentifierMap)))
@@ -52,22 +52,22 @@ const viewsWelcomeExtensionPointSchema = ( (Object.freeze({
52
52
  [ViewsWelcomeExtensionPointFields.contents]: {
53
53
  type: 'string',
54
54
  description: ( localize(
55
- 6799,
55
+ 6777,
56
56
  "Welcome content to be displayed. The format of the contents is a subset of Markdown, with support for links only."
57
57
  )),
58
58
  },
59
59
  [ViewsWelcomeExtensionPointFields.when]: {
60
60
  type: 'string',
61
- description: ( localize(6800, "Condition when the welcome content should be displayed.")),
61
+ description: ( localize(6778, "Condition when the welcome content should be displayed.")),
62
62
  },
63
63
  [ViewsWelcomeExtensionPointFields.group]: {
64
64
  type: 'string',
65
- description: ( localize(6801, "Group to which this welcome content belongs. Proposed API.")),
65
+ description: ( localize(6779, "Group to which this welcome content belongs. Proposed API.")),
66
66
  },
67
67
  [ViewsWelcomeExtensionPointFields.enablement]: {
68
68
  type: 'string',
69
69
  description: ( localize(
70
- 6802,
70
+ 6780,
71
71
  "Condition when the welcome content buttons and command links should be enabled."
72
72
  )),
73
73
  },