Merge pull request #202270 from Ajaykumbhare/quickest-meerkat
fix: terminal renaming not functioning as expected in editor areapull/202300/head
commit
24dfce5b77
|
@ -1902,7 +1902,9 @@ async function focusActiveTerminal(instance: ITerminalInstance, c: ITerminalServ
|
|||
|
||||
async function renameWithQuickPick(c: ITerminalServicesCollection, accessor: ServicesAccessor, resource?: unknown) {
|
||||
let instance: ITerminalInstance | undefined = resource as ITerminalInstance;
|
||||
if (!instance) {
|
||||
// Check if the 'instance' does not exist or if 'instance.rename' is not defined
|
||||
if (!instance || !instance?.rename) {
|
||||
// If not, obtain the resource instance using 'getResourceOrActiveInstance'
|
||||
instance = getResourceOrActiveInstance(c, resource);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue