mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
8a374375ea
commit
25e9e092c2
10
src/typings/vsda.d.ts
vendored
Normal file
10
src/typings/vsda.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'vsda' {
|
||||
export class signer {
|
||||
sign(arg: any): any;
|
||||
}
|
||||
}
|
|
@ -487,7 +487,7 @@ export class RawDebugSession {
|
|||
}
|
||||
}
|
||||
|
||||
private dispatchRequest(request: DebugProtocol.Request, dbgr: IDebugger): void {
|
||||
private async dispatchRequest(request: DebugProtocol.Request, dbgr: IDebugger): Promise<void> {
|
||||
|
||||
const response: DebugProtocol.Response = {
|
||||
type: 'response',
|
||||
|
@ -528,7 +528,7 @@ export class RawDebugSession {
|
|||
break;
|
||||
case 'handshake':
|
||||
try {
|
||||
const vsda = <any>require.__$__nodeRequire('vsda');
|
||||
const vsda = await import('vsda');
|
||||
const obj = new vsda.signer();
|
||||
const sig = obj.sign(request.arguments.value);
|
||||
response.body = {
|
||||
|
|
Loading…
Reference in a new issue