public async pushFiles()

in src/cloudShell.ts [31:48]


    public async pushFiles(files: vscode.Uri[]): Promise<void> {
        terraformChannel.appendLine("Attempting to upload files to CloudShell...");

        if (await this.connectedToCloudShell()) {
            const promises: Array<Promise<void>> = [];
            for (const file of files.map((a) => a.fsPath)) {
                promises.push(this.pushFilePromise(file));
            }

            try {
                await Promise.all(promises);
                vscode.window.showInformationMessage("Synced all matched files in the current workspace to CloudShell");
            } catch (error) {
                terraformChannel.appendLine(error);
                await promptForOpenOutputChannel("Failed to push files to the cloud. Please open the output channel for more details.", DialogType.error);
            }
        }
    }