提交 25e9e092 编写于 作者: I isidor

add vsda.d.ts

#74398
上级 8a374375
/*---------------------------------------------------------------------------------------------
* 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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册