add vsda.d.ts

#74398
This commit is contained in:
isidor 2019-05-27 15:17:43 +02:00
parent 8a374375ea
commit 25e9e092c2
2 changed files with 12 additions and 2 deletions

10
src/typings/vsda.d.ts vendored Normal file
View 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;
}
}

View file

@ -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 = {