MCPcopy Create free account
hub / github.com/Snapchat/Valdi / disconnect

Method disconnect

valdi/vscode_debugger/src/test/test.ts:583–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

581 }
582
583 async disconnect(): Promise<void> {
584 return new Promise<void>(cb => {
585 this.initialize.then(() => {
586 const connection = this._browserLauncher?.connectionForTest();
587 if (connection) {
588 const disposable = connection.onDisconnected(() => {
589 cb();
590 disposable.dispose();
591 });
592 } else {
593 cb();
594 }
595 this._root.dap.disconnect({});
596 this.binder.dispose();
597 });
598 });
599 }
600
601 completeUrl(relativePath: string): string {
602 return utils.completeUrl(this._launchUrl, relativePath) || '';

Callers 1

itIntegratesBasicFunction · 0.95

Calls 5

thenMethod · 0.65
disposeMethod · 0.65
disconnectMethod · 0.65
cbFunction · 0.50
onDisconnectedMethod · 0.45

Tested by

no test coverage detected