提交 01f3f612 编写于 作者: I isidor

remoteAgentConnection: await import('vsda')

#74398
上级 fa0f2d25
......@@ -92,7 +92,7 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
return new Promise<PersistentProtocol>((c, e) => {
const messageRegistration = protocol.onControlMessage(raw => {
const messageRegistration = protocol.onControlMessage(async raw => {
const msg = <HandshakeMessage>JSON.parse(raw.toString());
// Stop listening for further events
messageRegistration.dispose();
......@@ -107,7 +107,7 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
let signed = msg.data;
if (platform.isNative) {
try {
const vsda = <any>require.__$__nodeRequire('vsda');
const vsda = await import('vsda');
const signer = new vsda.signer();
if (signer) {
signed = signer.sign(msg.data);
......
......@@ -153,6 +153,7 @@
"restrictions": [
"vs/nls",
"**/vs/base/common/**",
"vsda",
"**/vs/base/parts/*/common/**",
"**/vs/platform/*/common/**"
]
......@@ -592,4 +593,4 @@
"no-nls-in-standalone-editor": true
},
"defaultSeverity": "warning"
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册