Tweak command names
This commit is contained in:
Родитель
defe3ac197
Коммит
20fa618f85
|
@ -248,15 +248,15 @@
|
|||
"menus": {
|
||||
"debug/callstack/context": [
|
||||
{
|
||||
"command": "extension.chrome-debug.addFrameToSkipFiles",
|
||||
"command": "extension.chrome-debug.toggleSkippingFile",
|
||||
"group": "navigation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "extension.chrome-debug.addFrameToSkipFiles",
|
||||
"title": "Toggle skipping active file"
|
||||
"command": "extension.chrome-debug.toggleSkippingFile",
|
||||
"title": "Toggle skipping this file"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -7,13 +7,13 @@ import * as path from 'path';
|
|||
import * as fs from 'fs';
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
context.subscriptions.push(vscode.commands.registerCommand('extension.chrome-debug.addFrameToSkipFiles', addFrameToSkipFiles));
|
||||
context.subscriptions.push(vscode.commands.registerCommand('extension.chrome-debug.toggleSkippingFile', toggleSkippingFile));
|
||||
}
|
||||
|
||||
export function deactivate() {
|
||||
}
|
||||
|
||||
function addFrameToSkipFiles(path: string): void {
|
||||
function toggleSkippingFile(path: string): void {
|
||||
if (!path) {
|
||||
const activeEditor = vscode.window.activeTextEditor;
|
||||
path = activeEditor && activeEditor.document.fileName;
|
||||
|
|
Загрузка…
Ссылка в новой задаче