Skip to content

Commit

Permalink
Merge pull request #366 from twinnydotdev/development
Browse files Browse the repository at this point in the history
development > main
  • Loading branch information
rjmacarthy authored Nov 1, 2024
2 parents efab947 + b6dacee commit 7fbc369
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/extension/providers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down
6 changes: 6 additions & 0 deletions src/webview/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7fbc369

Please sign in to comment.