提交 690db82e 编写于 作者: J Johannes Rieken

tweak fix for #29210 and thereby fix https://github.com/microsoft/vscode/issues/106090

上级 52e9e02e
...@@ -20,7 +20,7 @@ import { CancellationTokenSource } from 'vs/base/common/cancellation'; ...@@ -20,7 +20,7 @@ import { CancellationTokenSource } from 'vs/base/common/cancellation';
import { IEditorWorkerService } from 'vs/editor/common/services/editorWorkerService'; import { IEditorWorkerService } from 'vs/editor/common/services/editorWorkerService';
import { WordDistance } from 'vs/editor/contrib/suggest/wordDistance'; import { WordDistance } from 'vs/editor/contrib/suggest/wordDistance';
import { EditorOption } from 'vs/editor/common/config/editorOptions'; import { EditorOption } from 'vs/editor/common/config/editorOptions';
import { isLowSurrogate, isHighSurrogate } from 'vs/base/common/strings'; import { isLowSurrogate, isHighSurrogate, getLeadingWhitespace } from 'vs/base/common/strings';
import { IClipboardService } from 'vs/platform/clipboard/common/clipboardService'; import { IClipboardService } from 'vs/platform/clipboard/common/clipboardService';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry'; import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { ILogService } from 'vs/platform/log/common/log'; import { ILogService } from 'vs/platform/log/common/log';
...@@ -559,7 +559,8 @@ export class SuggestModel implements IDisposable { ...@@ -559,7 +559,8 @@ export class SuggestModel implements IDisposable {
return; return;
} }
if (ctx.leadingWord.startColumn < this._context.leadingWord.startColumn) { if (getLeadingWhitespace(ctx.leadingLineContent) !== getLeadingWhitespace(this._context.leadingLineContent)) {
// cancel IntelliSense when line start changes
// happens when the current word gets outdented // happens when the current word gets outdented
this.cancel(); this.cancel();
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册