@codingame/monaco-vscode-emmet-service-override 4.5.1 → 4.5.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-emmet-service-override",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
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@4.5.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@4.5.2"
30
30
  }
31
31
  }
@@ -5,35 +5,28 @@ import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextK
5
5
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
6
6
  import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
7
7
 
8
+ const _moduleId = "vs/workbench/contrib/emmet/browser/actions/expandAbbreviation";
8
9
  class ExpandAbbreviationAction extends EmmetEditorAction {
9
10
  constructor() {
10
11
  super({
11
12
  id: 'editor.emmet.action.expandAbbreviation',
12
- label: ( localizeWithPath(
13
- 'vs/workbench/contrib/emmet/browser/actions/expandAbbreviation',
14
- 'expandAbbreviationAction',
15
- "Emmet: Expand Abbreviation"
16
- )),
13
+ label: ( localizeWithPath(_moduleId, 0, "Emmet: Expand Abbreviation")),
17
14
  alias: 'Emmet: Expand Abbreviation',
18
15
  precondition: EditorContextKeys.writable,
19
16
  actionName: 'expand_abbreviation',
20
17
  kbOpts: {
21
18
  primary: 2 ,
22
- kbExpr: ( ContextKeyExpr.and(
19
+ kbExpr: ( (ContextKeyExpr.and(
23
20
  EditorContextKeys.editorTextFocus,
24
21
  EditorContextKeys.tabDoesNotMoveFocus,
25
- ( ContextKeyExpr.has('config.emmet.triggerExpansionOnTab'))
26
- )),
22
+ (ContextKeyExpr.has('config.emmet.triggerExpansionOnTab'))
23
+ ))),
27
24
  weight: 100
28
25
  },
29
26
  menuOpts: {
30
27
  menuId: MenuId.MenubarEditMenu,
31
28
  group: '5_insert',
32
- title: ( localizeWithPath(
33
- 'vs/workbench/contrib/emmet/browser/actions/expandAbbreviation',
34
- { key: 'miEmmetExpandAbbreviation', comment: ['&& denotes a mnemonic'] },
35
- "Emmet: E&&xpand Abbreviation"
36
- )),
29
+ title: ( localizeWithPath(_moduleId, 1, "Emmet: E&&xpand Abbreviation")),
37
30
  order: 3
38
31
  }
39
32
  });