Skip to content

Commit

Permalink
Remove outdated extension contributed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Jan 25, 2020
1 parent ad29830 commit 3a1e245
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 45 deletions.
40 changes: 0 additions & 40 deletions extensions/search-result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,46 +25,6 @@
"editor.lineNumbers": "off"
}
},
"commands": [
{
"command": "searchResult.rerunSearch",
"title": "%searchResult.rerunSearch.title%",
"category": "Search Result",
"icon": {
"light": "./src/media/refresh-light.svg",
"dark": "./src/media/refresh-dark.svg"
}
},
{
"command": "searchResult.rerunSearchWithContext",
"title": "%searchResult.rerunSearchWithContext.title%",
"category": "Search Result",
"icon": {
"light": "./src/media/refresh-light.svg",
"dark": "./src/media/refresh-dark.svg"
}
}
],
"menus": {
"commandPalette": [
{
"command": "searchResult.rerunSearch",
"when": "false"
},
{
"command": "searchResult.rerunSearchWithContext",
"when": "false"
}
],
"editor/title": [
{
"command": "searchResult.rerunSearch",
"when": "editorLangId == search-result",
"alt": "searchResult.rerunSearchWithContext",
"group": "navigation"
}
]
},
"languages": [
{
"id": "search-result",
Expand Down
4 changes: 1 addition & 3 deletions extensions/search-result/package.nls.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"displayName": "Search Result",
"description": "Provides syntax highlighting and language features for tabbed search results.",
"searchResult.rerunSearch.title": "Search Again",
"searchResult.rerunSearchWithContext.title": "Search Again (With Context)"
"description": "Provides syntax highlighting and language features for tabbed search results."
}
2 changes: 0 additions & 2 deletions extensions/search-result/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export function activate(context: vscode.ExtensionContext) {
}

context.subscriptions.push(
vscode.commands.registerCommand('searchResult.rerunSearch', () => vscode.commands.executeCommand('search.action.rerunEditorSearch')),
vscode.commands.registerCommand('searchResult.rerunSearchWithContext', () => vscode.commands.executeCommand('search.action.rerunEditorSearchWithContext')),

vscode.languages.registerDocumentSymbolProvider(SEARCH_RESULT_SELECTOR, {
provideDocumentSymbols(document: vscode.TextDocument, token: vscode.CancellationToken): vscode.DocumentSymbol[] {
Expand Down

0 comments on commit 3a1e245

Please sign in to comment.