Skip to content

Commit af06b93

Browse files
authored
Sets max debounce rate for inline completions to 50. (microsoft#152747)
* Sets max debounce rate for inline completions to 50. See microsoft#151447 * Fixes tests.
1 parent f148d86 commit af06b93

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class InlineCompletionsModel extends Disposable implements GhostTextWidge
4747
private readonly debounceValue = this.debounceService.for(
4848
this.languageFeaturesService.inlineCompletionsProvider,
4949
'InlineCompletionsDebounce',
50-
{ min: 50, max: 200 }
50+
{ min: 50, max: 50 }
5151
);
5252

5353
constructor(

src/vs/editor/contrib/inlineCompletions/test/browser/inlineCompletionsProvider.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,9 @@ suite('Inline Completions', () => {
524524

525525
context.cursorDown();
526526
context.keyboardType('hello');
527-
await timeout(100);
527+
await timeout(40);
528+
529+
assert.deepStrictEqual(provider.getAndClearCallHistory(), []);
528530

529531
// Update ghost text
530532
context.keyboardType('w');

0 commit comments

Comments
 (0)