@codingame/monaco-vscode-snippets-service-override 11.0.1 → 11.0.2

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-snippets-service-override",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@11.0.1",
30
- "@codingame/monaco-vscode-files-service-override": "11.0.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
30
+ "@codingame/monaco-vscode-files-service-override": "11.0.2"
31
31
  }
32
32
  }
@@ -57,15 +57,15 @@ async function computePicks(snippetService, userDataProfileService, languageServ
57
57
  label: basename(file.location),
58
58
  filepath: file.location,
59
59
  description: names.size === 0
60
- ? ( localize(6667, "(global)"))
61
- : ( localize(6668, "({0})", [...names].join(', ')))
60
+ ? ( localize(6665, "(global)"))
61
+ : ( localize(6666, "({0})", [...names].join(', ')))
62
62
  };
63
63
  existing.push(snippet);
64
64
  if (!source) {
65
65
  continue;
66
66
  }
67
67
  const detail = ( localize(
68
- 6669,
68
+ 6667,
69
69
  "({0}) {1}",
70
70
  source,
71
71
  labelService.getUriLabel(file.location, { relative: true })
@@ -127,16 +127,16 @@ async function createSnippetFile(scope, defaultPath, quickInputService, fileServ
127
127
  }
128
128
  await fileService.createFolder(defaultPath);
129
129
  const input = await quickInputService.input({
130
- placeHolder: ( localize(6670, "Type snippet file name")),
130
+ placeHolder: ( localize(6668, "Type snippet file name")),
131
131
  async validateInput(input) {
132
132
  if (!input) {
133
- return ( localize(6671, "Invalid file name"));
133
+ return ( localize(6669, "Invalid file name"));
134
134
  }
135
135
  if (!isValidBasename(input)) {
136
- return ( localize(6672, "'{0}' is not a valid file name", input));
136
+ return ( localize(6670, "'{0}' is not a valid file name", input));
137
137
  }
138
138
  if (await fileService.exists(createSnippetUri(input))) {
139
- return ( localize(6673, "'{0}' already exists", input));
139
+ return ( localize(6671, "'{0}' already exists", input));
140
140
  }
141
141
  return undefined;
142
142
  }
@@ -195,10 +195,10 @@ class ConfigureSnippetsAction extends SnippetsAction {
195
195
  constructor() {
196
196
  super({
197
197
  id: 'workbench.action.openSnippets',
198
- title: ( localize2(6674, "Configure Snippets")),
198
+ title: ( localize2(6672, "Configure Snippets")),
199
199
  shortTitle: {
200
- ...( localize2(6675, "Snippets")),
201
- mnemonicTitle: ( localize(6676, "&&Snippets")),
200
+ ...( localize2(6673, "Snippets")),
201
+ mnemonicTitle: ( localize(6674, "&&Snippets")),
202
202
  },
203
203
  f1: true,
204
204
  menu: [
@@ -220,27 +220,27 @@ class ConfigureSnippetsAction extends SnippetsAction {
220
220
  const picks = await computePicks(snippetService, userDataProfileService, languageService, labelService);
221
221
  const existing = picks.existing;
222
222
  const globalSnippetPicks = [{
223
- scope: ( localize(6677, 'global')),
224
- label: ( localize(6678, "New Global Snippets file...")),
223
+ scope: ( localize(6675, 'global')),
224
+ label: ( localize(6676, "New Global Snippets file...")),
225
225
  uri: userDataProfileService.currentProfile.snippetsHome
226
226
  }];
227
227
  const workspaceSnippetPicks = [];
228
228
  for (const folder of workspaceService.getWorkspace().folders) {
229
229
  workspaceSnippetPicks.push({
230
- scope: ( localize(6679, "{0} workspace", folder.name)),
231
- label: ( localize(6680, "New Snippets file for '{0}'...", folder.name)),
230
+ scope: ( localize(6677, "{0} workspace", folder.name)),
231
+ label: ( localize(6678, "New Snippets file for '{0}'...", folder.name)),
232
232
  uri: folder.toResource('.vscode')
233
233
  });
234
234
  }
235
235
  if (existing.length > 0) {
236
- existing.unshift({ type: 'separator', label: ( localize(6681, "Existing Snippets")) });
237
- existing.push({ type: 'separator', label: ( localize(6682, "New Snippets")) });
236
+ existing.unshift({ type: 'separator', label: ( localize(6679, "Existing Snippets")) });
237
+ existing.push({ type: 'separator', label: ( localize(6680, "New Snippets")) });
238
238
  }
239
239
  else {
240
- existing.push({ type: 'separator', label: ( localize(6682, "New Snippets")) });
240
+ existing.push({ type: 'separator', label: ( localize(6680, "New Snippets")) });
241
241
  }
242
242
  const pick = await quickInputService.pick([].concat(existing, globalSnippetPicks, workspaceSnippetPicks, picks.future), {
243
- placeHolder: ( localize(6683, "Select Snippets File or Create Snippets")),
243
+ placeHolder: ( localize(6681, "Select Snippets File or Create Snippets")),
244
244
  matchOnDescription: true
245
245
  });
246
246
  if (globalSnippetPicks.indexOf(pick) >= 0) {
@@ -39,7 +39,7 @@ class InsertSnippetAction extends SnippetEditorAction {
39
39
  constructor() {
40
40
  super({
41
41
  id: 'editor.action.insertSnippet',
42
- title: ( localize2(6687, "Insert Snippet")),
42
+ title: ( localize2(6686, "Insert Snippet")),
43
43
  f1: true,
44
44
  precondition: EditorContextKeys.writable,
45
45
  metadata: {
@@ -18,7 +18,7 @@ async function getSurroundableSnippets(snippetsService, model, position, include
18
18
  class SurroundWithSnippetEditorAction extends SnippetEditorAction {
19
19
  static { this.options = {
20
20
  id: 'editor.action.surroundWithSnippet',
21
- title: ( localize2(6686, "Surround with Snippet..."))
21
+ title: ( localize2(6687, "Surround with Snippet..."))
22
22
  }; }
23
23
  constructor() {
24
24
  super({
@@ -30,13 +30,13 @@ async function pickSnippet(accessor, languageIdOrSnippets) {
30
30
  let label = '';
31
31
  switch (snippet.snippetSource) {
32
32
  case 1 :
33
- label = ( localize(10735, "User Snippets"));
33
+ label = ( localize(10734, "User Snippets"));
34
34
  break;
35
35
  case 3 :
36
36
  label = snippet.source;
37
37
  break;
38
38
  case 2 :
39
- label = ( localize(10736, "Workspace Snippets"));
39
+ label = ( localize(10735, "Workspace Snippets"));
40
40
  break;
41
41
  }
42
42
  result.push({ type: 'separator', label });
@@ -46,14 +46,14 @@ async function pickSnippet(accessor, languageIdOrSnippets) {
46
46
  if (isEnabled) {
47
47
  pick.buttons = [{
48
48
  iconClass: ThemeIcon.asClassName(Codicon.eyeClosed),
49
- tooltip: ( localize(10737, 'Hide from IntelliSense'))
49
+ tooltip: ( localize(10736, 'Hide from IntelliSense'))
50
50
  }];
51
51
  }
52
52
  else {
53
- pick.description = ( localize(10738, "(hidden from IntelliSense)"));
53
+ pick.description = ( localize(10737, "(hidden from IntelliSense)"));
54
54
  pick.buttons = [{
55
55
  iconClass: ThemeIcon.asClassName(Codicon.eye),
56
- tooltip: ( localize(10739, 'Show in IntelliSense'))
56
+ tooltip: ( localize(10738, 'Show in IntelliSense'))
57
57
  }];
58
58
  }
59
59
  }
@@ -64,7 +64,7 @@ async function pickSnippet(accessor, languageIdOrSnippets) {
64
64
  };
65
65
  const disposables = ( (new DisposableStore()));
66
66
  const picker = disposables.add(quickInputService.createQuickPick({ useSeparators: true }));
67
- picker.placeholder = ( localize(10740, "Select a snippet"));
67
+ picker.placeholder = ( localize(10739, "Select a snippet"));
68
68
  picker.matchOnDetail = true;
69
69
  picker.ignoreFocusOut = false;
70
70
  picker.keepScrollPosition = true;
@@ -75,7 +75,7 @@ async function pickSnippet(accessor, languageIdOrSnippets) {
75
75
  }));
76
76
  picker.items = makeSnippetPicks();
77
77
  if (!picker.items.length) {
78
- picker.validationMessage = ( localize(10741, "No snippet available"));
78
+ picker.validationMessage = ( localize(10740, "No snippet available"));
79
79
  }
80
80
  picker.show();
81
81
  await Promise.race([Event.toPromise(picker.onDidAccept), Event.toPromise(picker.onDidHide)]);