mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Finalize Shell API (#243274)
* Adopt terminal suggest to shell api change * Internally bring string enum for terminal suggest to prevent Typos * Better word description under api description * Remove shell proposed api against vscode.d.ts * Update `shell` description after looking at feedbacks. * Update docs * Change to a Map<TerminalShellTye, string[]> * One last typo --------- Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
@@ -257,12 +257,12 @@ import { assertNoRpc, poll } from '../utils';
|
||||
|
||||
test('onDidChangeTerminalState should fire with shellType when created', async () => {
|
||||
const terminal = window.createTerminal();
|
||||
if (terminal.state.shellType) {
|
||||
if (terminal.state.shell) {
|
||||
return;
|
||||
}
|
||||
await new Promise<void>(r => {
|
||||
disposables.push(window.onDidChangeTerminalState(e => {
|
||||
if (e === terminal && e.state.shellType) {
|
||||
if (e === terminal && e.state.shell) {
|
||||
r();
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user