@@ -811,8 +811,12 @@ export function registerTerminalActions() {
811
811
title : terminalStrings . changeIcon ,
812
812
f1 : false ,
813
813
precondition : sharedWhenClause . terminalAvailable_and_singularSelection ,
814
- run : async ( c , accessor ) => {
814
+ run : async ( c , accessor , args ) => {
815
815
let icon : TerminalIcon | undefined ;
816
+ if ( c . groupService . lastAccessedMenu === 'inline-tab' ) {
817
+ getResourceOrActiveInstance ( c , args ) ?. changeIcon ( ) ;
818
+ return ;
819
+ }
816
820
for ( const terminal of getSelectedInstances ( accessor ) ?? [ ] ) {
817
821
icon = await terminal . changeIcon ( icon ) ;
818
822
}
@@ -831,9 +835,13 @@ export function registerTerminalActions() {
831
835
title : terminalStrings . changeColor ,
832
836
f1 : false ,
833
837
precondition : sharedWhenClause . terminalAvailable_and_singularSelection ,
834
- run : async ( c , accessor ) => {
838
+ run : async ( c , accessor , args ) => {
835
839
let color : string | undefined ;
836
840
let i = 0 ;
841
+ if ( c . groupService . lastAccessedMenu === 'inline-tab' ) {
842
+ getResourceOrActiveInstance ( c , args ) ?. changeColor ( ) ;
843
+ return ;
844
+ }
837
845
for ( const terminal of getSelectedInstances ( accessor ) ?? [ ] ) {
838
846
const skipQuickPick = i !== 0 ;
839
847
// Always show the quickpick on the first iteration
@@ -1726,7 +1734,7 @@ function getSelectedInstances(accessor: ServicesAccessor, args?: unknown, args2?
1726
1734
for ( const selection of selections ) {
1727
1735
result . push ( terminalService . getInstanceFromIndex ( selection ) as ITerminalInstance ) ;
1728
1736
}
1729
- return result ;
1737
+ return result . filter ( r => ! ! r ) ;
1730
1738
}
1731
1739
1732
1740
export function validateTerminalName ( name : string ) : { content : string ; severity : Severity } | null {
0 commit comments