Revert "remoteAgentConnection: await import('vsda')"

This reverts commit 01f3f61234.
This commit is contained in:
isidor 2019-05-27 16:30:53 +02:00
parent 01f3f61234
commit a356803eae
2 changed files with 3 additions and 4 deletions

View file

@ -92,7 +92,7 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
return new Promise<PersistentProtocol>((c, e) => {
const messageRegistration = protocol.onControlMessage(async raw => {
const messageRegistration = protocol.onControlMessage(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 = await import('vsda');
const vsda = <any>require.__$__nodeRequire('vsda');
const signer = new vsda.signer();
if (signer) {
signed = signer.sign(msg.data);

View file

@ -153,7 +153,6 @@
"restrictions": [
"vs/nls",
"**/vs/base/common/**",
"vsda",
"**/vs/base/parts/*/common/**",
"**/vs/platform/*/common/**"
]
@ -593,4 +592,4 @@
"no-nls-in-standalone-editor": true
},
"defaultSeverity": "warning"
}
}