@codingame/monaco-vscode-snippets-service-override 2.2.2 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-snippets-service-override",
3
- "version": "2.2.2",
3
+ "version": "3.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,8 +18,8 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@2.2.2",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@3.0.0",
22
22
  "vscode-marked": "npm:marked@=3.0.2",
23
- "@codingame/monaco-vscode-files-service-override": "2.2.2"
23
+ "@codingame/monaco-vscode-files-service-override": "3.0.0"
24
24
  }
25
25
  }
@@ -3,7 +3,7 @@ import { extname } from 'vscode/vscode/vs/base/common/path';
3
3
  import { basename, joinPath } from 'vscode/vscode/vs/base/common/resources';
4
4
  import { URI } from 'vscode/vscode/vs/base/common/uri';
5
5
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
6
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
6
+ import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
7
7
  import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
8
8
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
9
9
  import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
@@ -221,16 +221,13 @@ class ConfigureSnippetsAction extends SnippetsAction {
221
221
  constructor() {
222
222
  super({
223
223
  id: 'workbench.action.openSnippets',
224
- title: {
225
- value: ( localizeWithPath(
226
- 'vs/workbench/contrib/snippets/browser/commands/configureSnippets',
227
- 'openSnippet.label',
228
- "Configure User Snippets"
229
- )),
230
- original: 'Configure User Snippets'
231
- },
224
+ title: ( localize2WithPath(
225
+ 'vs/workbench/contrib/snippets/browser/commands/configureSnippets',
226
+ 'openSnippet.label',
227
+ "Configure User Snippets"
228
+ )),
232
229
  shortTitle: {
233
- value: ( localizeWithPath(
230
+ ...( localize2WithPath(
234
231
  'vs/workbench/contrib/snippets/browser/commands/configureSnippets',
235
232
  'userSnippets',
236
233
  "User Snippets"
@@ -240,7 +237,6 @@ class ConfigureSnippetsAction extends SnippetsAction {
240
237
  { key: 'miOpenSnippets', comment: ['&& denotes a mnemonic'] },
241
238
  "User &&Snippets"
242
239
  )),
243
- original: 'User Snippets'
244
240
  },
245
241
  f1: true,
246
242
  menu: [
@@ -1,7 +1,7 @@
1
1
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
2
2
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
3
3
  import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
4
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
4
+ import { localize2WithPath } from 'vscode/vscode/vs/nls';
5
5
  import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
6
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
7
  import { SnippetEditorAction } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions';
@@ -37,14 +37,11 @@ class InsertSnippetAction extends SnippetEditorAction {
37
37
  constructor() {
38
38
  super({
39
39
  id: 'editor.action.insertSnippet',
40
- title: {
41
- value: ( localizeWithPath(
42
- 'vs/workbench/contrib/snippets/browser/commands/insertSnippet',
43
- 'snippet.suggestions.label',
44
- "Insert Snippet"
45
- )),
46
- original: 'Insert Snippet'
47
- },
40
+ title: ( localize2WithPath(
41
+ 'vs/workbench/contrib/snippets/browser/commands/insertSnippet',
42
+ 'snippet.suggestions.label',
43
+ "Insert Snippet"
44
+ )),
48
45
  f1: true,
49
46
  precondition: EditorContextKeys.writable,
50
47
  metadata: {
@@ -1,12 +1,12 @@
1
1
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
2
2
  import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
4
3
  import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
5
4
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
6
5
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
6
  import { SnippetEditorAction } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions';
8
7
  import { pickSnippet } from '../snippetPicker.js';
9
8
  import { ISnippetsService } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/snippets';
9
+ import { localize2WithPath } from 'vscode/vscode/vs/nls';
10
10
 
11
11
  async function getSurroundableSnippets(snippetsService, model, position, includeDisabledSnippets) {
12
12
  const { lineNumber, column } = position;
@@ -18,14 +18,11 @@ 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: {
22
- value: ( localizeWithPath(
23
- 'vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet',
24
- 'label',
25
- 'Surround With Snippet...'
26
- )),
27
- original: 'Surround With Snippet...'
28
- }
21
+ title: ( localize2WithPath(
22
+ 'vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet',
23
+ 'label',
24
+ "Surround with Snippet..."
25
+ ))
29
26
  }; }
30
27
  constructor() {
31
28
  super({