Skip to content

Commit

Permalink
Renamed command name to something reasonable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoblenz committed Aug 30, 2019
1 parent 97f0d69 commit d0271cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions obs-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:obs",
"onCommand:extension.helloWorld"
"onCommand:extension.compileObsidian"
],
"devDependencies": {
"@types/mocha": "^2.2.42",
Expand Down Expand Up @@ -59,7 +59,7 @@
],
"commands": [
{
"command": "extension.helloWorld",
"command": "extension.compileObsidian",
"title": "Obsidian: Compile file"
}
],
Expand Down
2 changes: 1 addition & 1 deletion obs-vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function activate(context: vscode.ExtensionContext) {
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
let disposable = vscode.commands.registerCommand('extension.compileObsidian', () => {
// The code you place here will be executed every time your command is executed
let task = getCompilationTask();
if (task != undefined) {
Expand Down

0 comments on commit d0271cf

Please sign in to comment.