Skip to content

Commit 9907be7

Browse files
committed
1 parent 2c8a444 commit 9907be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export class InlineCompletionsController extends Disposable {
324324
const model = this.model.read(reader);
325325
const state = model?.inlineCompletionState.read(reader);
326326
const primaryGhostText = state?.primaryGhostText;
327-
if (!primaryGhostText) {
327+
if (!primaryGhostText || primaryGhostText.isEmpty()) {
328328
return undefined;
329329
}
330330
const firstPartPos = new Position(primaryGhostText.lineNumber, primaryGhostText.parts[0].column);

0 commit comments

Comments
 (0)