From 3d4169590065b2277906248608bf779687e315d7 Mon Sep 17 00:00:00 2001 From: Shawn Date: Thu, 2 Nov 2017 03:44:41 +0800 Subject: [PATCH] Update command name --- extension.js | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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" } ]