Skip to content

Commit 579e032

Browse files
committed
Register mpq editor
This commit registers *.mpq.json and showFromDefaultExplorer for mpq editor. ONE-vscode-DCO-1.0-Signed-off-by: s.malakhov <[email protected]>
1 parent 8d8fed5 commit 579e032

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@
128128
}
129129
],
130130
"priority": "default"
131+
},
132+
{
133+
"viewType": "one.editor.mpq",
134+
"displayName": "MPQ Editor",
135+
"selector": [
136+
{
137+
"filenamePattern": "*.mpq.json"
138+
}
139+
],
140+
"priority": "default"
131141
}
132142
],
133143
"commands": [
@@ -256,6 +266,11 @@
256266
"command": "one.editor.cfg.setDefaultValues",
257267
"title": "ONE: Set Default Values",
258268
"category": "ONE"
269+
},
270+
{
271+
"command": "one.editor.mpq.createFromDefaultExplorer",
272+
"title": "Create MPQ json",
273+
"category": "ONE"
259274
}
260275
],
261276
"keybindings": [
@@ -370,6 +385,11 @@
370385
"command": "one.viewer.metadata.showFromDefaultExplorer",
371386
"when": "resourceExtname in one.metadata.supportedFiles && !explorerResourceIsFolder",
372387
"group": "7_metadata@1"
388+
},
389+
{
390+
"command": "one.editor.mpq.createFromDefaultExplorer",
391+
"when": "resourceExtname == .circle",
392+
"group": "1_tools"
373393
}
374394
],
375395
"commandPalette": [
@@ -452,6 +472,10 @@
452472
{
453473
"command": "one.viewer.metadata.showFromOneExplorer",
454474
"when": "false"
475+
},
476+
{
477+
"command": "one.editor.mpq.createFromDefaultExplorer",
478+
"when": "false"
455479
}
456480
]
457481
},

0 commit comments

Comments
 (0)