mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 00:08:06 +00:00
refactor(vscode/chat): remove unused getTheme function and related code (#3107)
This commit is contained in:
parent
4ec042128f
commit
8d83f30332
5
clients/vscode/src/chat/ChatViewProvider.ts
vendored
5
clients/vscode/src/chat/ChatViewProvider.ts
vendored
@ -348,10 +348,6 @@ export class ChatViewProvider implements WebviewViewProvider {
|
||||
<script defer>
|
||||
const vscode = acquireVsCodeApi();
|
||||
|
||||
function getTheme () {
|
||||
return document.body.className === 'vscode-dark' ? 'dark' : 'light'
|
||||
}
|
||||
|
||||
function getCssVariableValue(variableName) {
|
||||
const root = document.documentElement;
|
||||
return getComputedStyle(root).getPropertyValue(variableName).trim();
|
||||
@ -378,7 +374,6 @@ export class ChatViewProvider implements WebviewViewProvider {
|
||||
if (chatIframe) {
|
||||
const fontSize = getCssVariableValue('--vscode-font-size');
|
||||
const foreground = getCssVariableValue('--vscode-editor-foreground');
|
||||
const theme = getTheme()
|
||||
|
||||
chatIframe.addEventListener('load', function() {
|
||||
setTimeout(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user