Skip to content

Commit 5ef4e4e

Browse files
committed
1 parent 80be02c commit 5ef4e4e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/vs/editor/contrib/suggest/suggestModel.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ export class SuggestModel implements IDisposable {
405405
return;
406406
}
407407

408+
if (ctx.leadingWord.startColumn < this._context.leadingWord.startColumn) {
409+
// happens when the current word gets outdented
410+
this.cancel();
411+
return;
412+
}
413+
408414
if (ctx.column < this._context.column) {
409415
// typed -> moved cursor LEFT -> retrigger if still on a word
410416
if (ctx.leadingWord.word) {

0 commit comments

Comments
 (0)