Skip to content

Commit 2bd10fb

Browse files
authored
Re microsoft#194114. EmptyCellEditorHint in insiders only (microsoft#194331)
1 parent e50e7cb commit 2bd10fb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class EmptyTextEditorHintContribution implements IEditorContribution {
6969
@IInlineChatSessionService inlineChatSessionService: IInlineChatSessionService,
7070
@IInlineChatService protected readonly inlineChatService: IInlineChatService,
7171
@ITelemetryService private readonly telemetryService: ITelemetryService,
72-
@IProductService private readonly productService: IProductService,
72+
@IProductService protected readonly productService: IProductService,
7373
) {
7474
this.toDispose = [];
7575
this.toDispose.push(this.editor.onDidChangeModel(() => this.update()));

src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ export class EmptyCellEditorHintContribution extends EmptyTextEditorHintContribu
5454
}
5555

5656
protected override _shouldRenderHint(): boolean {
57+
// TODO@rebornix, remove this when we have a better way to present the editor hints in empty cells
58+
if (this.productService.quality === 'stable') {
59+
return false;
60+
}
61+
5762
const shouldRenderHint = super._shouldRenderHint();
5863
if (!shouldRenderHint) {
5964
return false;

0 commit comments

Comments
 (0)