Browse Source

Excludes terminals & buffers from visible editors

main
Eric Amodio 1 year ago
parent
commit
eac1e093e5
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      src/constants.ts
  2. +1
    -1
      src/system/utils.ts

+ 1
- 0
src/constants.ts View File

@ -477,6 +477,7 @@ export const enum Schemes {
GitLens = 'gitlens',
Output = 'output',
PRs = 'pr',
Terminal = 'vscode-terminal',
Vsls = 'vsls',
VslsScc = 'vsls-scc',
Virtual = 'vscode-vfs',

+ 1
- 1
src/system/utils.ts View File

@ -98,7 +98,7 @@ export function isVisibleDocument(document: TextDocument): boolean {
export function isTextEditor(editor: TextEditor): boolean {
const scheme = editor.document.uri.scheme;
return scheme !== Schemes.Output && scheme !== Schemes.DebugConsole;
return scheme !== Schemes.DebugConsole && scheme !== Schemes.Output && scheme !== Schemes.Terminal;
}
export async function openEditor(

Loading…
Cancel
Save