forked from redhat-developer/vscode-openshift-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindowUtils.ts
More file actions
18 lines (15 loc) · 735 Bytes
/
windowUtils.ts
File metadata and controls
18 lines (15 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*-----------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*-----------------------------------------------------------------------------------------------*/
import { window, Terminal, TerminalOptions } from 'vscode';
export class WindowUtil {
static createTerminal(name: string, cwd: string): Terminal {
const options: TerminalOptions = {
cwd,
name,
shellPath: process.platform === 'win32' ? process.env.ComSpec : '/bin/bash'
};
return window.createTerminal(options);
}
}