From d24ab5c0634bd1562e5540364d18140400a9c832 Mon Sep 17 00:00:00 2001 From: fishshi <2855691008@qq.com> Date: Thu, 31 Oct 2024 18:44:47 +0800 Subject: [PATCH 1/3] hide back button when chat mounted (#361) --- src/webview/chat.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/webview/chat.tsx b/src/webview/chat.tsx index 0a3e96c4..1ed6fd4f 100644 --- a/src/webview/chat.tsx +++ b/src/webview/chat.tsx @@ -367,6 +367,12 @@ export const Chat = (props: ChatProps): JSX.Element => { } } + useEffect(() => { + global.vscode.postMessage({ + type: EVENT_NAME.twinnyHideBackButton, + }) + }, []) + useEffect(() => { window.addEventListener("message", messageEventHandler) editorRef.current?.commands.focus() From 915badcfffe9cc907aa2de7840fbfb3e808fcdef Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 31 Oct 2024 19:45:19 +0900 Subject: [PATCH 2/3] chore: update completion.ts (#357) extention -> extension --- src/extension/providers/completion.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/providers/completion.ts b/src/extension/providers/completion.ts index 6dc7a9b1..0adaeb3b 100644 --- a/src/extension/providers/completion.ts +++ b/src/extension/providers/completion.ts @@ -117,7 +117,7 @@ export class CompletionProvider implements InlineCompletionItemProvider { statusBar: StatusBarItem, fileInteractionCache: FileInteractionCache, templateProvider: TemplateProvider, - extentionContext: ExtensionContext + extensionContext: ExtensionContext ) { this._abortController = null this._document = null @@ -126,7 +126,7 @@ export class CompletionProvider implements InlineCompletionItemProvider { this._statusBar = statusBar this._fileInteractionCache = fileInteractionCache this._templateProvider = templateProvider - this._extensionContext = extentionContext + this._extensionContext = extensionContext } public async provideInlineCompletionItems( From b6dacee97ef3ae5c49ba2ade573db206324de160 Mon Sep 17 00:00:00 2001 From: rjmacarthy Date: Fri, 1 Nov 2024 12:24:17 +0000 Subject: [PATCH 3/3] 3.18.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a75f9328..57603142 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "twinny", - "version": "3.18.0", + "version": "3.18.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "twinny", - "version": "3.18.0", + "version": "3.18.1", "cpu": [ "x64", "arm64" diff --git a/package.json b/package.json index 662c6000..080c9683 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "twinny", "displayName": "twinny - AI Code Completion and Chat", "description": "Locally hosted AI code completion plugin for vscode", - "version": "3.18.0", + "version": "3.18.1", "icon": "assets/icon.png", "keywords": [ "code-inference",