Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copilot Hover context gathering should use latest vscode APIs #13117

Open
spebl opened this issue Jan 6, 2025 · 0 comments
Open

Copilot Hover context gathering should use latest vscode APIs #13117

spebl opened this issue Jan 6, 2025 · 0 comments
Labels
bug Feature: Copilot Hover GitHub Copilot hover "Generate Copilot summary" feature Language Service

Comments

@spebl
Copy link
Contributor

spebl commented Jan 6, 2025

VSCode provides token counting apis to ensure we're passing an appropriate amount of tokens, instead of guessing based on character length.

We should also use better truncation techniques, or at least include a disclaimer when code is being cut off due to length and not cut off mid-token.

@spebl spebl added the Feature: Copilot Hover GitHub Copilot hover "Generate Copilot summary" feature label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Feature: Copilot Hover GitHub Copilot hover "Generate Copilot summary" feature Language Service
Projects
Status: No status
Development

No branches or pull requests

3 participants