File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
packages/core/src/awsService/cloudWatchLogs/commands Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -269,15 +269,7 @@ function closeSessionWhenAllEditorsClosed(
269269}
270270
271271function isLiveTailSessionOpenInAnyTab ( liveTailSession : LiveTailSession ) {
272- let isOpen = false
273- vscode . window . tabGroups . all . forEach ( async ( tabGroup ) => {
274- tabGroup . tabs . forEach ( ( tab ) => {
275- if ( tab . input instanceof vscode . TabInputText ) {
276- if ( liveTailSession . uri . toString ( ) === tab . input . uri . toString ( ) ) {
277- isOpen = true
278- }
279- }
280- } )
281- } )
282- return isOpen
272+ const isOpen = ( tab : vscode . Tab ) =>
273+ tab . input instanceof vscode . TabInputText && tab . input . uri . toString ( ) === liveTailSession . uri . toString ( )
274+ return vscode . window . tabGroups . all . some ( ( tabGroup ) => tabGroup . tabs . some ( isOpen ) )
283275}
You can’t perform that action at this time.
0 commit comments