mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
parent
fa0f2d2500
commit
01f3f61234
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue