Skip to content

Commit

Permalink
update use icons not emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Sep 1, 2024
1 parent 41b91f0 commit 132ab26
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ['[', '{', '(']
Expand Down
4 changes: 2 additions & 2 deletions src/extension/chat-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/extension/providers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class CompletionProvider implements InlineCompletionItemProvider {
getShouldSkipCompletion(context, this._autoSuggestEnabled) ||
getIsMiddleOfString()
) {
this._statusBar.text = '🤖'
this._statusBar.text = '$(code)'
return
}

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,5 +295,6 @@ export async function activate(context: ExtensionContext) {
)

if (config.get('enabled')) statusBar.show()
statusBar.text = '🤖'

statusBar.text = '$(code)'
}
2 changes: 1 addition & 1 deletion src/webview/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export const Chat = () => {
appearance="icon"
onClick={handleToggleProviderSelection}
>
<span className={styles.textIcon}>🤖</span>
<span className="codicon codicon-keyboard"></span>
</VSCodeButton>
</>
)}
Expand Down

0 comments on commit 132ab26

Please sign in to comment.