Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHentschel committed Nov 9, 2023
1 parent a155c1f commit a9e4fb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "github-linker",
"displayName": "GitHub Linker",
"description": "Make and Open Links to GitHub repositories",
"version": "0.0.13",
"version": "0.0.14",
"publisher": "manhen",
"license": "MIT",
"icon": "img/icon.png",
Expand All @@ -20,14 +20,9 @@
"url": "https://github.com/ManuelHentschel/vscode-github-linker/issues"
},
"engines": {
"vscode": "^1.50.0"
"vscode": "^1.75.0"
},
"activationEvents": [
"onStartupFinished",
"onCommand:githubLinker.copyUrl",
"onCommand:githubLinker.openUrlInBrowser",
"onCommand:githubLinker.openFileFromUrl"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
Expand All @@ -48,7 +43,7 @@
"editor/context": [
{
"command": "githubLinker.copyUrl",
"when": "githubLinker.showInContextMenu"
"when": "config.githubLinker.showInContextMenu"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import { copyGithubUrlFromSelection, openGithubUrlFromSelection } from './github

import { openFileFromClipboardUrl } from './openFile';

import { config } from './utils';



export async function activate(context: vscode.ExtensionContext) {

context.subscriptions.push(vscode.commands.registerCommand('githubLinker.copyUrl', () => {
Expand All @@ -22,9 +18,6 @@ export async function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(vscode.commands.registerCommand('githubLinker.openFileFromUrl', () => {
openFileFromClipboardUrl();
}));

const showInContextMenu = config().get<boolean>('showInContextMenu', true);
vscode.commands.executeCommand('setContext', 'githubLinker.showInContextMenu', showInContextMenu);
}


Expand Down

0 comments on commit a9e4fb8

Please sign in to comment.