Merge pull request #17 from Azure/CS-FirstRun
Added delay for first run
This commit is contained in:
Коммит
7a94265e7f
|
@ -1,7 +1,7 @@
|
|||
|
||||
import { AzureAccount, AzureSession } from "./azure-account.api";
|
||||
import { OutputChannel, commands, window, MessageItem, Terminal, env } from "vscode";
|
||||
import { getUserSettings, provisionConsole, runInTerminal, resetConsole , Errors} from './cloudConsoleLauncher'
|
||||
import { getUserSettings, provisionConsole, runInTerminal, resetConsole , Errors, delay} from './cloudConsoleLauncher'
|
||||
import { clearInterval, setTimeout } from "timers";
|
||||
import { CSTerminal } from './utilities';
|
||||
import { configure } from "vscode/lib/testrunner";
|
||||
|
@ -80,9 +80,11 @@ export function openCloudConsole(api: AzureAccount, outputChannel: OutputChannel
|
|||
}
|
||||
});
|
||||
|
||||
// Introducing arbitrary delay to allow to send the command.
|
||||
await delay(500);
|
||||
|
||||
terminal.show();
|
||||
return [terminal, response];
|
||||
|
||||
return [ terminal, response ];
|
||||
|
||||
})().catch(err => {
|
||||
outputChannel.append('\nConnecting to CloudShell failed with error: \n' + err);
|
||||
|
|
|
@ -40,7 +40,6 @@ export class CloudShell extends BaseShell {
|
|||
this.startCloudShell().then(terminal => {
|
||||
this.csTerm.terminal = terminal[0];
|
||||
this.csTerm.ws = terminal[1];
|
||||
console.log(`Obtained terminal info ans ws \n Running command: ${TFCommand}`);
|
||||
this.runTFCommand(TFCommand, this.csTerm.terminal);
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче