Skip to content

Commit

Permalink
Update command name
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnLin013 committed Nov 1, 2017
1 parent 805395f commit 3d41695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const vscode = require('vscode');
const ncp = require("copy-paste");

function activate(context) {
let disposable = vscode.commands.registerCommand('extension.sayHello', function (fileUri) {
let disposable = vscode.commands.registerCommand('extension.searchFileName', function (fileUri) {
if (fileUri != undefined) {
var path = fileUri.fsPath.split("\"")[0];
var name = path.split("\\")[path.split("\\").length - 1];
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
"Other"
],
"activationEvents": [
"onCommand:extension.sayHello"
"onCommand:extension.searchFileName"
],
"main": "./extension",
"contributes": {
"commands": [
{
"command": "extension.sayHello",
"title": "Hello World"
"command": "extension.searchFileName",
"title": "Search File Name"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.sayHello",
"command": "extension.searchFileName",
"group": "navigation"
}
]
Expand Down

0 comments on commit 3d41695

Please sign in to comment.