diff --git a/CodeiumVS/Windows/ChatToolWindow.cs b/CodeiumVS/Windows/ChatToolWindow.cs index dddf8f8..75128c8 100644 --- a/CodeiumVS/Windows/ChatToolWindow.cs +++ b/CodeiumVS/Windows/ChatToolWindow.cs @@ -207,7 +207,7 @@ private void WebView_OnGotFocus(object sender, System.Windows.RoutedEventArgs e) // focus the text input await webView.ExecuteScriptAsync( - "document.getElementsByClassName('ql-editor')[0].focus()"); + "const editor = document.getElementsByClassName('ql-editor')[0]; if(editor) editor.focus()"); }) .FireAndForget(); } diff --git a/CodeiumVS/source.extension.vsixmanifest b/CodeiumVS/source.extension.vsixmanifest index ee4c764..e7ecb06 100644 --- a/CodeiumVS/source.extension.vsixmanifest +++ b/CodeiumVS/source.extension.vsixmanifest @@ -1,7 +1,7 @@ - + Codeium The modern coding superpower: free AI code acceleration plugin for your favorite languages. Type less. Code more. Ship faster. https://www.codeium.com