diff --git a/extension.js b/extension.js index f06900d..1efac4e 100644 --- a/extension.js +++ b/extension.js @@ -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]; diff --git a/package.json b/package.json index 03b8243..c949684 100644 --- a/package.json +++ b/package.json @@ -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" } ]