dotnet / dotnet/vscode-csharp

C# extension should expose LSP tools to GitHub Copilot

Open
#9,415 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

When working with .NET projects in Visual Studio Code, the C# extension should expose LSP-based tools to GitHub Copilot so the assistant can access actual code context instead of relying on file searches, which can sometimes return incorrect information to the model.

For example, the SQL Server extension exposes the following tools to GitHub Copilot; I expect the C# extension to do the same.

Image

Tools such as find_usages, find_references, go_to_implementation, go_to_definition, code_coverage, and perform_build / rebuild / clean.

In Visual Studio (the full IDE), VS exposes find_usages to GitHub Copilot. I would expect the same functionality on the Visual Studio Code side.

This would greatly improve the experience and reduce token usage and external calls. In the screenshot below, GitHub Copilot performs a file-based search instead of using the C# extension’s code-aware tools (for example, go_to_definition), which would locate the interface definition faster and more accurately.

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.