Открыть боковую панель
code
vscode
Коммиты
cb133553
Коммит
cb133553
создал
Май 10, 2024
по автору
Rob Lourens
Просмотр файлов
Cleanup
владелец
00b84dc3
Изменения
2
Скрыть пробелы
Построчно
Рядом
src/vs/workbench/contrib/chat/browser/chatAgentHover.ts
Просмотр файла @
cb133553
...
...
@@ -29,12 +29,9 @@ export class ChatAgentHover extends Disposable {
private
readonly
publisherName
:
HTMLElement
;
private
readonly
description
:
HTMLElement
;
private
currentAgent
:
IChatAgentData
|
undefined
;
constructor
(
@
IChatAgentService
private
readonly
chatAgentService
:
IChatAgentService
,
@
IExtensionsWorkbenchService
private
readonly
extensionService
:
IExtensionsWorkbenchService
,
@
ICommandService
private
readonly
commandService
:
ICommandService
,
@
IChatAgentNameService
private
readonly
chatAgentNameService
:
IChatAgentNameService
,
)
{
super
();
...
...
@@ -79,8 +76,6 @@ export class ChatAgentHover extends Disposable {
setAgent
(
id
:
string
):
void
{
const
agent
=
this
.
chatAgentService
.
getAgent
(
id
)
!
;
this
.
currentAgent
=
agent
;
if
(
agent
.
metadata
.
icon
instanceof
URI
)
{
const
avatarIcon
=
dom
.
$
<
HTMLImageElement
>
(
'
img.icon
'
);
avatarIcon
.
src
=
FileAccess
.
uriToBrowserUri
(
agent
.
metadata
.
icon
).
toString
(
true
);
...
...
@@ -135,5 +130,5 @@ export function getChatAgentHoverOptions(getAgent: () => IChatAgentData | undefi
},
}
]
}
}
;
}
src/vs/workbench/contrib/chat/browser/chatListRenderer.ts
Просмотр файла @
cb133553
...
...
@@ -78,7 +78,6 @@ import { ITrustedDomainService } from 'vs/workbench/contrib/url/browser/trustedD
import
{
IMarkdownVulnerability
,
annotateSpecialMarkdownContent
}
from
'
../common/annotations
'
;
import
{
CodeBlockModelCollection
}
from
'
../common/codeBlockModelCollection
'
;
import
{
IChatListItemRendererOptions
}
from
'
./chat
'
;
import
{
showExtensionsWithIdsCommandId
}
from
'
vs/workbench/contrib/extensions/browser/extensionsActions
'
;
const
$
=
dom
.
$
;
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать