Skip to content

Commit 7b321f0

Browse files
authored
fix: don't render editor hint with chat widget (microsoft#194351)
1 parent c965b11 commit 7b321f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class EmptyTextEditorHintContribution implements IEditorContribution {
6666
@ICommandService private readonly commandService: ICommandService,
6767
@IConfigurationService protected readonly configurationService: IConfigurationService,
6868
@IKeybindingService private readonly keybindingService: IKeybindingService,
69-
@IInlineChatSessionService inlineChatSessionService: IInlineChatSessionService,
69+
@IInlineChatSessionService private readonly inlineChatSessionService: IInlineChatSessionService,
7070
@IInlineChatService protected readonly inlineChatService: IInlineChatService,
7171
@ITelemetryService private readonly telemetryService: ITelemetryService,
7272
@IProductService protected readonly productService: IProductService,
@@ -108,6 +108,10 @@ export class EmptyTextEditorHintContribution implements IEditorContribution {
108108
return false;
109109
}
110110

111+
if (this.inlineChatSessionService.getSession(this.editor, model.uri)) {
112+
return false;
113+
}
114+
111115
const conflictingDecoration = this.editor.getLineDecorations(1)?.find((d) =>
112116
d.options.beforeContentClassName
113117
|| d.options.afterContentClassName

0 commit comments

Comments
 (0)