Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
out
node_modules
node_modules
package-lock.json
tags
TAGS
.tags
*.vsix
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For example:
```
[
{ "key": "cmd+t",//set to your favorite shortcut
"command": "extension.searchCTags",
"command": "extension.searchTags",
"when": "editorTextFocus" }
]
```
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Other"
],
"activationEvents": [
"onCommand:extension.searchCTags",
"onCommand:extension.searchTags",
"onCommand:extension.showNavigationHistory",
"onCommand:extension.clearAllNavigationHistory",
"onCommand:extension.clearOneNavigationHistory"
Expand All @@ -21,7 +21,7 @@
"contributes": {
"commands": [
{
"command": "extension.searchCTags",
"command": "extension.searchTags",
"title": "Ctags Support: navigate to definition"
},
{
Expand Down Expand Up @@ -50,7 +50,7 @@
},
"keybindings": [
{
"command": "extension.searchCTags",
"command": "extension.searchTags",
"key": "ctrl+t",
"mac": "cmd+t",
"when": "editorTextFocus"
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down