You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copilot summary should now only show up when there is already hover content from the main hover provider. Show error message on failure to prevent getting stuck showing the spinner.
@@ -35,7 +35,7 @@ export class CopilotHoverProvider implements vscode.HoverProvider {
35
35
36
36
if(!this.isNewHover(document,position)){
37
37
if(this.ready){
38
-
constcontentMarkdown=newvscode.MarkdownString(`$(sparkle) Copilot\n\n${this.content}\n\n_AI-generated content may be incorrect._`,true);
38
+
constcontentMarkdown=newvscode.MarkdownString(`$(sparkle) Copilot\n\n${this.content}\n\n_${localize("copilot.disclaimer","AI-generated content may be incorrect.")}_`,true);
39
39
returnnewvscode.Hover(contentMarkdown);
40
40
}
41
41
if(this.waiting){
@@ -46,6 +46,14 @@ export class CopilotHoverProvider implements vscode.HoverProvider {
46
46
47
47
// Fresh hover, reset state.
48
48
this.reset();
49
+
// Wait for the main hover provider to finish and confirm it has content.
0 commit comments