From 132ab268faf7bd8a5d8b198275959fe0745041b1 Mon Sep 17 00:00:00 2001 From: rjmacarthy Date: Sun, 1 Sep 2024 20:49:29 +0100 Subject: [PATCH] update use icons not emojis --- src/common/constants.ts | 4 ++-- src/extension/chat-service.ts | 4 ++-- src/extension/providers/completion.ts | 6 +++--- src/index.ts | 3 ++- src/webview/chat.tsx | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/common/constants.ts b/src/common/constants.ts index 04c362fd..ff28ce3d 100644 --- a/src/common/constants.ts +++ b/src/common/constants.ts @@ -3,9 +3,9 @@ import { defaultTemplates } from '../extension/templates' export const EXTENSION_NAME = '@ext:rjmacarthy.twinny' export const ASSISTANT = 'assistant' export const USER = 'user' -export const TWINNY = 'πŸ€– twinny' +export const TWINNY = 'twinny' export const SYSTEM = 'system' -export const YOU = 'πŸ‘€ You' +export const YOU = 'You' export const EMPTY_MESAGE = 'Sorry, I don’t understand. Please try again.' export const MODEL_ERROR = 'Sorry, something went wrong...' export const OPENING_BRACKETS = ['[', '{', '('] diff --git a/src/extension/chat-service.ts b/src/extension/chat-service.ts index f53b4bf5..c5b82e18 100644 --- a/src/extension/chat-service.ts +++ b/src/extension/chat-service.ts @@ -359,7 +359,7 @@ export class ChatService { } private onStreamEnd = (onEnd?: (completion: string) => void) => { - this._statusBar.text = 'πŸ€–' + this._statusBar.text = '$(code)' commands.executeCommand( 'setContext', EXTENSION_CONTEXT_NAME.twinnyGeneratingText, @@ -408,7 +408,7 @@ export class ChatService { public destroyStream = () => { this._controller?.abort() - this._statusBar.text = 'πŸ€–' + this._statusBar.text = '$(code)' commands.executeCommand( 'setContext', EXTENSION_CONTEXT_NAME.twinnyGeneratingText, diff --git a/src/extension/providers/completion.ts b/src/extension/providers/completion.ts index 0a44f293..64972e86 100644 --- a/src/extension/providers/completion.ts +++ b/src/extension/providers/completion.ts @@ -154,7 +154,7 @@ export class CompletionProvider implements InlineCompletionItemProvider { getShouldSkipCompletion(context, this._autoSuggestEnabled) || getIsMiddleOfString() ) { - this._statusBar.text = 'πŸ€–' + this._statusBar.text = '$(code)' return } @@ -497,7 +497,7 @@ export class CompletionProvider implements InlineCompletionItemProvider { public abortCompletion() { this._abortController?.abort() - this._statusBar.text = 'πŸ€–' + this._statusBar.text = '$(code)' } private logCompletion(formattedCompletion: string) { @@ -529,7 +529,7 @@ export class CompletionProvider implements InlineCompletionItemProvider { cache.setCache(this._prefixSuffix, formattedCompletion) this._completion = '' - this._statusBar.text = 'πŸ€–' + this._statusBar.text = '$(code)' this.lastCompletionText = formattedCompletion this._lastCompletionMultiline = getLineBreakCount(this._completion) > 1 diff --git a/src/index.ts b/src/index.ts index 1d1f214e..8f5ffabd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -295,5 +295,6 @@ export async function activate(context: ExtensionContext) { ) if (config.get('enabled')) statusBar.show() - statusBar.text = 'πŸ€–' + + statusBar.text = '$(code)' } diff --git a/src/webview/chat.tsx b/src/webview/chat.tsx index e9a3f3c7..eef41f60 100644 --- a/src/webview/chat.tsx +++ b/src/webview/chat.tsx @@ -521,7 +521,7 @@ export const Chat = () => { appearance="icon" onClick={handleToggleProviderSelection} > - πŸ€– + )}