Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/vs/editor/contrib/suggest/browser/suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export const Context = {

export const suggestWidgetStatusbarMenu = new MenuId('suggestWidgetStatusBar');

const emptyPromise = Promise.resolve();

export class CompletionItem {

_brand!: 'ISuggestionItem';
Expand Down Expand Up @@ -121,7 +123,7 @@ export class CompletionItem {

// create the suggestion resolver
if (typeof provider.resolveCompletionItem !== 'function') {
this._resolveCache = Promise.resolve();
this._resolveCache = emptyPromise;
this._resolveDuration = 0;
}
}
Expand Down
Loading