This commit is contained in:
roblou 2017-01-18 15:29:20 -08:00
Родитель defe3ac197
Коммит 20fa618f85
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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;