Skip to content

Commit 9419c55

Browse files
authored
1 parent 12b2e0f commit 9419c55

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/vs/editor/contrib/inlineCompletions/browser/ghostTextHoverParticipant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class InlineCompletionsHoverParticipant implements IEditorHoverParticipan
125125
this.renderScreenReaderText(context, part, disposableStore);
126126
}
127127

128-
const w = this._instantiationService.createInstance(InlineSuggestionHintsContentWidget, this._editor);
128+
const w = this._instantiationService.createInstance(InlineSuggestionHintsContentWidget, this._editor, false);
129129
context.fragment.appendChild(w.getDomNode());
130130

131131
w.update(null, part.getInlineCompletionIndex() || 0, part.getInlineCompletionsCount(), part.commands);

src/vs/editor/contrib/inlineCompletions/browser/inlineSuggestionHintsWidget.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
.monaco-editor .inlineSuggestionsHints {
6+
.monaco-editor .inlineSuggestionsHints.withBorder {
77
z-index: 39;
88
color: var(--vscode-editor-hoverForeground);
99
background-color: var(--vscode-editorHoverWidget-background);

src/vs/editor/contrib/inlineCompletions/browser/inlineSuggestionHintsWidget.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
3333
import { registerIcon } from 'vs/platform/theme/common/iconRegistry';
3434

3535
export class InlineSuggestionHintsWidget extends Disposable {
36-
private readonly widget = this._register(this.instantiationService.createInstance(InlineSuggestionHintsContentWidget, this.editor));
36+
private readonly widget = this._register(this.instantiationService.createInstance(InlineSuggestionHintsContentWidget, this.editor, true));
3737

3838
private sessionPosition: Position | undefined = undefined;
3939

@@ -96,7 +96,7 @@ export class InlineSuggestionHintsContentWidget extends Disposable implements IC
9696
public readonly allowEditorOverflow = true;
9797
public readonly suppressMouseDown = false;
9898

99-
private readonly nodes = h('div.inlineSuggestionsHints', [
99+
private readonly nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
100100
h('div', { style: { display: 'flex' } }, [
101101
h('div@actionBar', { className: 'custom-actions' }),
102102
h('div@toolBar'),
@@ -143,6 +143,7 @@ export class InlineSuggestionHintsContentWidget extends Disposable implements IC
143143

144144
constructor(
145145
private readonly editor: ICodeEditor,
146+
private readonly withBorder: boolean,
146147
@ICommandService private readonly _commandService: ICommandService,
147148
@IInstantiationService instantiationService: IInstantiationService,
148149
@IKeybindingService private readonly keybindingService: IKeybindingService,

0 commit comments

Comments
 (0)