VS 2022 Duo Chat Errors
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=519636)
</details>
<!--IssueSummary end-->
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "regression" or "type::bug" label:
- https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug
and verify the issue you're about to submit isn't a duplicate.
--->
### Summary
* Select code block, right click, GitLab Duo Chat \> Explain Code, throws an error - \``` Object referenced not set to an instance of an object` ``
* \`/clear/ doesn't work. the error in the output view is \`Handler not found for key cleanChat\`
* Using Duo chat feature without opening the chat manually first, VS 2022 becomes unresponsive, and requires a restart.
### Steps to reproduce
GitLab Extension version 0.46.0
VS2022 info:
> Microsoft Visual Studio Professional 2022\
> Version 17.10.3\
> VisualStudio.17.Release/17.10.3+35013.160\
> Microsoft .NET Framework\
> Version 4.8.04084
>
> Installed Version: Professional
>
> Visual C++ 2022 00483-10050-06766-AA727\
> Microsoft Visual C++ 2022
>
> ADL Tools Service Provider 1.0\
> This package contains services used by Data Lake tools
>
> ASA Service Provider 1.0
>
> ASP.NET and Web Tools 17.10.341.11210\
> ASP.NET and Web Tools
>
> ASP.NET Web Frameworks and Tools 2012 17.10.341.11210\
> For additional information, visit https://www.asp.net/
>
> Azure App Service Tools v3.0.0 17.10.341.11210\
> Azure App Service Tools v3.0.0
>
> Azure Data Lake Tools for Visual Studio 2.6.5000.0\
> Microsoft Azure Data Lake Tools for Visual Studio
>
> Azure Functions and Web Jobs Tools 17.10.341.11210\
> Azure Functions and Web Jobs Tools
>
> Azure Stream Analytics Tools for Visual Studio 2.6.5000.0\
> Microsoft Azure Stream Analytics Tools for Visual Studio
>
> C# Tools 4.10.0-3.24312.19+771f269b3abcbbd991f05becf8fe5e991d24b0c1\
> C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
>
> Common Azure Tools 1.10\
> Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
>
> Cookiecutter 17.0.24064.1\
> Provides tools for finding, instantiating and customizing templates in cookiecutter format.
>
> Extensibility Message Bus 1.4.39 (main@e8108eb)\
> Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
>
> GitHub Copilot 0.2.889.30432\
> GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.
>
> Linux Core Dump Debugging 1.0.9.35004\
> Enables debugging of Linux core dumps.
>
> Microsoft Azure Hive Query Language Service 2.6.5000.0\
> Language service for Hive query
>
> Microsoft Azure Stream Analytics Language Service 2.6.5000.0\
> Language service for Azure Stream Analytics
>
> Microsoft Azure Tools for Visual Studio 2.9\
> Support for Azure Cloud Services projects
>
> Microsoft JVM Debugger 1.0\
> Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
>
> Mono Debugging for Visual Studio 17.10.8 (a565b86)\
> Support for debugging Mono processes with Visual Studio.
>
> MyToolsOptionsPackage Extension 1.0\
> MyToolsOptionsPackage Visual Studio Extension Detailed Info
>
> Node.js Tools 1.5.60329.1 Commit Hash:15fce86a17f9f33e5bd7ca7ccb9b216aff149252\
> Adds support for developing and debugging Node.js apps in Visual Studio
>
> NuGet Package Manager 6.10.1\
> NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
>
> Office Developer Tools for Visual Studio 17.10.34627.00\
> Microsoft Office Developer Tools for Visual Studio
>
> Python - Django support 17.0.24064.1\
> Provides templates and integration for the Django web framework.
>
> Python - Profiling support 17.0.24064.1\
> Profiling support for Python projects.
>
> Python with Pylance 17.0.24064.1\
> Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.
>
> Razor (ASP.NET Core) 17.10.3.2427201+4f57d1de251e654812adde201c0265a8ca7ca31d\
> Provides languages services for ASP.NET Core Razor.
>
> SQL Server Data Tools 17.10.172.0\
> Microsoft SQL Server Data Tools
>
> Test Adapter for Boost.Test 1.0\
> Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
>
> Test Adapter for Google Test 1.0\
> Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
>
> ToolWindowHostedEditor 1.0\
> Hosting json editor into a tool window
>
> TypeScript Tools 17.0.30327.2001\
> TypeScript Tools for Microsoft Visual Studio
>
> Visual Basic Tools 4.10.0-3.24312.19+771f269b3abcbbd991f05becf8fe5e991d24b0c1\
> Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
>
> Visual C++ for Cross Platform Mobile Development (Android) 15.0.35004.147\
> Visual C++ for Cross Platform Mobile Development (Android)
>
> Visual C++ for Linux Development 1.0.9.35004\
> Visual C++ for Linux Development
>
> Visual F# Tools 17.10.0-beta.24228.1+dd749058c91585e9b5dae62b0f8df892429ee28f\
> Microsoft Visual F# Tools
>
> Visual Studio IntelliCode 2.2\
> AI-assisted development for Visual Studio.
>
> VisualStudio.DeviceLog 1.0\
> Information about my package
>
> VisualStudio.Mac 1.0\
> Mac Extension for Visual Studio
>
> VSPackage Extension 1.0\
> VSPackage Visual Studio Extension Detailed Info
>
> Workflow Manager Tools 1.0 1.0\
> This package contains the necessary Visual Studio integration components for Workflow Manager.
>
> Xamarin 17.10.0.110 (main@cf2e960)\
> Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
>
> Xamarin Designer 17.10.3.10 (remotes/origin/d17-10@3beef58f89)\
> Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
>
> Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14)\
> Xamarin.Android Reference Assemblies and MSBuild support.\
> Mono: d9a6e87\
> Java.Interop: xamarin/java.interop/d17-5@149d70fe\
> SQLite: xamarin/sqlite/3.40.1@68c69d8\
> Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@ca1552d
### Relevant logs and/or screenshots


issue