Browse Source

Returning compiledResults

Juan Blanco 1 year ago
parent
commit
299fa4efeb
3 changed files with 4 additions and 4 deletions
  1. 1 1
      package.json
  2. BIN
      solidity-0.0.64.vsix
  3. 3 3
      src/extension.ts

+ 1 - 1
package.json

@@ -10,7 +10,7 @@
     "nethereum",
     "solhint"
   ],
-  "version": "0.0.63",
+  "version": "0.0.64",
   "publisher": "JuanBlanco",
   "engines": {
     "vscode": "^1.28.0"

BIN
solidity-0.0.64.vsix


+ 3 - 3
src/extension.ts

@@ -23,10 +23,10 @@ export function activate(context: vscode.ExtensionContext) {
 
     initDiagnosticCollection(diagnosticCollection);
 
-    context.subscriptions.push(vscode.commands.registerCommand('solidity.compile.active', () => {
-        compileActiveContract().then((compiledResults: string[]) => {
+    context.subscriptions.push(vscode.commands.registerCommand('solidity.compile.active', async () => {
+        const compiledResults = await compileActiveContract();
         autoCodeGenerateAfterCompilation(compiledResults, null, diagnosticCollection);
-      });
+        return compiledResults;
     }));
 
     context.subscriptions.push(vscode.commands.registerCommand('solidity.compile', () => {