Skip to content

Commit 7c69553

Browse files
committed
Fix implementation of command in explorer context menu
1 parent 3f65160 commit 7c69553

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@
129129
"command": "matlab.runSelection",
130130
"when": "editorLangId == matlab && editorHasSelection && !editorHasMultipleSelections",
131131
"group": "1_run"
132-
},
133-
{
134-
"command": "matlab.openFile",
135-
"when": "editorHasSelection",
136-
"group": "files"
137132
}
138133
],
139134
"explorer/context": [
@@ -144,6 +139,11 @@
144139
{
145140
"command": "matlab.changeDirectory",
146141
"when": "explorerResourceIsFolder"
142+
},
143+
{
144+
"command": "matlab.openFile",
145+
"when": "!explorerResourceIsFolder",
146+
"group": "files"
147147
}
148148
],
149149
"matlab.addPath": [

0 commit comments

Comments
 (0)