本文整理匯總了TypeScript中vscode.debug.onDidTerminateDebugSession方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript debug.onDidTerminateDebugSession方法的具體用法?TypeScript debug.onDidTerminateDebugSession怎麽用?TypeScript debug.onDidTerminateDebugSession使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vscode.debug
的用法示例。
在下文中一共展示了debug.onDidTerminateDebugSession方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: activate
export function activate(context: vscode.ExtensionContext) {
const loadedScriptsProvider = new LoadedScriptsProvider();
const popupAutohideManager = new PopupAutohideManager(sendCustomRequest);
const debugConfigurationProvider = new DebugConfigurationProvider();
context.subscriptions.push(vscode.window.registerTreeDataProvider(
'extension.firefox.loadedScripts', loadedScriptsProvider
));
context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider(
'firefox', debugConfigurationProvider
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.reloadAddon', () => sendCustomRequest('reloadAddon')
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.rebuildAndReloadAddon', () => sendCustomRequest('rebuildAndReloadAddon')
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.toggleSkippingFile', (url) => sendCustomRequest('toggleSkippingFile', url)
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.openScript', openScript
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.addPathMapping', addPathMapping
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.enablePopupAutohide', () => popupAutohideManager.setPopupAutohide(true)
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.disablePopupAutohide', () => popupAutohideManager.setPopupAutohide(false)
));
context.subscriptions.push(vscode.commands.registerCommand(
'extension.firefox.togglePopupAutohide', () => popupAutohideManager.togglePopupAutohide()
));
context.subscriptions.push(vscode.debug.onDidReceiveDebugSessionCustomEvent(
(event) => onCustomEvent(event, loadedScriptsProvider, popupAutohideManager)
));
context.subscriptions.push(vscode.debug.onDidStartDebugSession(
(session) => onDidStartSession(session, loadedScriptsProvider)
));
context.subscriptions.push(vscode.debug.onDidTerminateDebugSession(
(session) => onDidTerminateSession(session, loadedScriptsProvider, popupAutohideManager)
));
}
示例2: Promise
let debugSessionTerminated = new Promise(resolve => {
vscode.debug.onDidTerminateDebugSession((e) => resolve());
});