Открыть боковую панель
code
vscode
Коммиты
4d03498f
Не подтверждена
Коммит
4d03498f
создал
Май 14, 2024
по автору
Megan Rogge
Зафиксировано автором
GitHub
Май 15, 2024
Просмотр файлов
on blur of terminal chat widget, if terminal is not visible, hide it (#212747)
fix #212672
владелец
e3c1bbc9
Изменения
3
Скрыть пробелы
Построчно
Рядом
src/vs/workbench/contrib/terminal/browser/terminal.ts
Просмотр файла @
4d03498f
...
...
@@ -639,6 +639,11 @@ export interface ITerminalInstance extends IBaseTerminalInstance {
*/
readonly
isDisposed
:
boolean
;
/**
* Whether this terminal is visible.
*/
readonly
isVisible
:
boolean
;
/**
* Whether the terminal's pty is hosted on a remote.
*/
...
...
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Просмотр файла @
4d03498f
...
...
@@ -266,6 +266,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
get
isRemote
():
boolean
{
return
this
.
_processManager
.
remoteAuthority
!==
undefined
;
}
get
remoteAuthority
():
string
|
undefined
{
return
this
.
_processManager
.
remoteAuthority
;
}
get
hasFocus
():
boolean
{
return
dom
.
isAncestorOfActiveElement
(
this
.
_wrapperElement
);
}
get
isVisible
():
boolean
{
return
this
.
_isVisible
;
}
get
title
():
string
{
return
this
.
_title
;
}
get
titleSource
():
TitleEventSource
{
return
this
.
_titleSource
;
}
get
icon
():
TerminalIcon
|
undefined
{
return
this
.
_getIcon
();
}
...
...
src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.ts
Просмотр файла @
4d03498f
...
...
@@ -91,6 +91,11 @@ export class TerminalChatWidget extends Disposable {
this
.
_container
.
appendChild
(
this
.
_inlineChatWidget
.
domNode
);
this
.
_focusTracker
=
this
.
_register
(
trackFocus
(
this
.
_container
));
this
.
_register
(
this
.
_focusTracker
.
onDidBlur
(()
=>
{
if
(
!
this
.
_instance
.
isVisible
)
{
this
.
hide
();
}
}));
this
.
hide
();
}
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать