We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c8a444 commit 9907be7Copy full SHA for 9907be7
src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts
@@ -324,7 +324,7 @@ export class InlineCompletionsController extends Disposable {
324
const model = this.model.read(reader);
325
const state = model?.inlineCompletionState.read(reader);
326
const primaryGhostText = state?.primaryGhostText;
327
- if (!primaryGhostText) {
+ if (!primaryGhostText || primaryGhostText.isEmpty()) {
328
return undefined;
329
}
330
const firstPartPos = new Position(primaryGhostText.lineNumber, primaryGhostText.parts[0].column);
0 commit comments