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 9df68fb commit 60d5648Copy full SHA for 60d5648
src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.ts
@@ -630,7 +630,7 @@ export class InlineCompletionsModel extends Disposable {
630
const cursorAtInlineEdit = this.primaryPosition.map(cursorPos => LineRange.fromRangeInclusive(inlineEditResult.targetRange).addMargin(1, 1).contains(cursorPos.lineNumber));
631
632
// Check if cursor is within showRange (if specified)
633
- const cursorInsideShowRange = cursorAtInlineEdit.get() || (inlineEditResult.showRange?.containsPosition(cursorPos) ?? true);
+ const cursorInsideShowRange = (inlineEditResult.showRange?.containsPosition(cursorPos) ?? true);
634
if (!cursorInsideShowRange && !this._inAcceptFlow.read(reader)) {
635
return undefined;
636
}
0 commit comments