Skip to content
Snippets Groups Projects
Commit 6b12b0fe authored by Smit, P.J.M. (Peter, Student M-CS)'s avatar Smit, P.J.M. (Peter, Student M-CS)
Browse files

added alt+shitf+s shortcut to start simulate command

parent 97bc0704
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,21 @@
"contributes": {
"commands": [
{
"command": "extension.simulate",
"command": "modest.simulate",
"title": "Simulate Model"
}
],
"commandPalette": [
{
"command": "extension.simulate",
"command": "modest.simulate",
"when": "editorLangId == modest"
}
],
"keybindings": [
{
"command": "modest.simulate",
"key": "alt+shift+s",
"mac": "alt+shift+s",
"when": "editorLangId == modest"
}
],
......@@ -56,7 +64,7 @@
]
},
"activationEvents": [
"onCommand:extension.simulate",
"onCommand:modest.simulate",
"onLanguage:modest"
],
"main": "./out/extension.js",
......
......@@ -24,7 +24,7 @@ export namespace ModestCommands {
return executable.split(path.sep).map(value => value.match(/\s/) ? `"${value}"` : value).join(path.sep);
}
export let simCommand = vscode.commands.registerCommand('extension.simulate', async () => {
export let simCommand = vscode.commands.registerCommand('modest.simulate', async () => {
//activeTextEditor should never be undefined
if (vscode.window.activeTextEditor === undefined) {
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment