Merge pull request #195592 from microsoft/tyriar/float_3

Await in terminal editor commands
This commit is contained in:
Daniel Imms 2023-10-13 12:50:41 -07:00 committed by GitHub
commit 590c72b492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,7 @@ export function registerTerminalActions() {
run: async (c, _, args) => {
const options = (isObject(args) && 'location' in args) ? args as ICreateTerminalOptions : { location: TerminalLocation.Editor };
const instance = await c.service.createTerminal(options);
instance.focusWhenReady();
await instance.focusWhenReady();
}
});
@ -268,7 +268,7 @@ export function registerTerminalActions() {
const instance = await c.service.createTerminal({
location: { viewColumn: editorGroupsService.activeGroup.index }
});
instance.focusWhenReady();
await instance.focusWhenReady();
}
});
@ -279,7 +279,7 @@ export function registerTerminalActions() {
const instance = await c.service.createTerminal({
location: { viewColumn: SIDE_GROUP }
});
instance.focusWhenReady();
await instance.focusWhenReady();
}
});