deprecate old api command story

This commit is contained in:
Johannes Rieken
2020-11-13 10:11:28 +01:00
parent 74703883e3
commit 94a57406aa

View File

@@ -393,6 +393,9 @@ export class ExtHostApiCommands {
// --- command impl
/**
* @deprecated use the ApiCommand instead
*/
private _register(id: string, handler: (...args: any[]) => any, description?: ICommandHandlerDescription): void {
const disposable = this._commands.registerCommand(false, id, handler, this, description);
this._disposables.add(disposable);