Add no-op debug extensibility APIs (#4188)

This commit is contained in:
Karl Burtram
2019-02-26 08:47:10 -08:00
committed by GitHub
parent 07983d75ea
commit 78c1c318c5
5 changed files with 452 additions and 14 deletions

View File

@@ -651,8 +651,53 @@ export function createApiFactory(
}
};
// {{SQL CARBON EDIT}}
// delete namespace: debug
// {{SQL CARBON EDIT}} -- no-op debug extensibility API
// namespace: debug
const debug: typeof vscode.debug = {
get activeDebugSession() {
return undefined;
},
get activeDebugConsole() {
return undefined;
},
get breakpoints() {
return undefined;
},
onDidStartDebugSession(listener, thisArg?, disposables?) {
return undefined;
},
onDidTerminateDebugSession(listener, thisArg?, disposables?) {
return undefined;
},
onDidChangeActiveDebugSession(listener, thisArg?, disposables?) {
return undefined;
},
onDidReceiveDebugSessionCustomEvent(listener, thisArg?, disposables?) {
return undefined;
},
onDidChangeBreakpoints(listener, thisArgs?, disposables?) {
return undefined;
},
registerDebugConfigurationProvider(debugType: string, provider: vscode.DebugConfigurationProvider) {
return undefined;
},
registerDebugAdapterDescriptorFactory(debugType: string, factory: vscode.DebugAdapterDescriptorFactory) {
return undefined;
},
registerDebugAdapterTrackerFactory(debugType: string, factory: vscode.DebugAdapterTrackerFactory) {
return undefined;
},
startDebugging(folder: vscode.WorkspaceFolder | undefined, nameOrConfig: string | vscode.DebugConfiguration) {
return undefined;
},
addBreakpoints(breakpoints: vscode.Breakpoint[]) {
return undefined;
},
removeBreakpoints(breakpoints: vscode.Breakpoint[]) {
return undefined;
}
};
const tasks: typeof vscode.tasks = {
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
return extHostTask.registerTaskProvider(extension, provider);
@@ -686,7 +731,7 @@ export function createApiFactory(
// namespaces
commands,
// {{SQL CARBON EDIT}}
// debug,
debug,
env,
extensions,
languages,
@@ -711,8 +756,8 @@ export function createApiFactory(
CompletionTriggerKind: extHostTypes.CompletionTriggerKind,
ConfigurationTarget: extHostTypes.ConfigurationTarget,
// {{SQL CARBON EDIT}}
// DebugAdapterExecutable: extHostTypes.DebugAdapterExecutable,
// DebugAdapterServer: extHostTypes.DebugAdapterServer,
DebugAdapterExecutable: extHostTypes.DebugAdapterExecutable,
DebugAdapterServer: extHostTypes.DebugAdapterServer,
DecorationRangeBehavior: extHostTypes.DecorationRangeBehavior,
Diagnostic: extHostTypes.Diagnostic,
DiagnosticRelatedInformation: extHostTypes.DiagnosticRelatedInformation,