src/baseShell.ts (17 lines of code) (raw):

/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ "use strict"; import * as vscode from "vscode"; import { terraformChannel } from "./terraformChannel"; export abstract class BaseShell { public terminal: vscode.Terminal | undefined; constructor() { this.initShellInternal(); } public abstract runTerraformCmd(tfCommand: string); public abstract runTerraformTests(testType: string, workingDirectory: string); public dispose(): void { terraformChannel.appendLine(`Terraform terminal: ${this.terminal.name} closed`); this.terminal.dispose(); this.terminal = undefined; } protected abstract initShellInternal(); }