From 680837dd2576b7fc0cd9678e345304b0f6dcebb6 Mon Sep 17 00:00:00 2001 From: Benjamin Mundt Date: Fri, 30 Jun 2023 11:31:14 -0400 Subject: [PATCH 1/3] Update ignores --- .gitignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8e5962e..9b3c8ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ out -node_modules \ No newline at end of file +node_modules +package-lock.json +tags +TAGS +.tags +*.vsix \ No newline at end of file From 1628b41381696beb7807d1089d504e3667bb4a6d Mon Sep 17 00:00:00 2001 From: Benjamin Mundt Date: Fri, 30 Jun 2023 11:31:35 -0400 Subject: [PATCH 2/3] Add script to build .vsix file --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a4f7a9..53fd3a7 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,8 @@ "lint": "eslint . --ext .ts,.tsx", "watch": "tsc -watch -p ./", "pretest": "npm run compile", - "test": "node ./out/test/runTest.js" + "test": "node ./out/test/runTest.js", + "pack": "npx -y @vscode/vsce package" }, "devDependencies": { "@types/mocha": "^9.1.0", From c9ddd056f6b2c0b0afa7dbc7055e1f16b5ad3c78 Mon Sep 17 00:00:00 2001 From: Benjamin Mundt Date: Thu, 29 Jun 2023 16:31:48 -0400 Subject: [PATCH 3/3] Fix renamed function --- README.md | 2 +- package.json | 6 +++--- src/extension.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 04d92a3..f50c24b 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ For example: ``` [ { "key": "cmd+t",//set to your favorite shortcut - "command": "extension.searchCTags", + "command": "extension.searchTags", "when": "editorTextFocus" } ] ``` diff --git a/package.json b/package.json index 53fd3a7..32f5ee5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "Other" ], "activationEvents": [ - "onCommand:extension.searchCTags", + "onCommand:extension.searchTags", "onCommand:extension.showNavigationHistory", "onCommand:extension.clearAllNavigationHistory", "onCommand:extension.clearOneNavigationHistory" @@ -21,7 +21,7 @@ "contributes": { "commands": [ { - "command": "extension.searchCTags", + "command": "extension.searchTags", "title": "Ctags Support: navigate to definition" }, { @@ -50,7 +50,7 @@ }, "keybindings": [ { - "command": "extension.searchCTags", + "command": "extension.searchTags", "key": "ctrl+t", "mac": "cmd+t", "when": "editorTextFocus" diff --git a/src/extension.ts b/src/extension.ts index 729b8ac..475f84b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -58,7 +58,7 @@ export function activate(context: vscode.ExtensionContext) { console.log('Congratulations, your extension "ctags-support" is now active!'); // The commandId parameter must match the command field in package.json - let disposableFindTags = vscode.commands.registerCommand('extension.searchCTags', () => { + let disposableFindTags = vscode.commands.registerCommand('extension.searchTags', () => { console.log(vscode.workspace.workspaceFolders); console.log("Read .tag file from:" + path.join(vscode.workspace.rootPath, vscode.workspace.getConfiguration('ctagsSupport').ctagsFilename)); let tags = loadTags(path.join(vscode.workspace.rootPath, vscode.workspace.getConfiguration('ctagsSupport').ctagsFilename));