diff --git a/core/autocomplete/prefiltering/index.ts b/core/autocomplete/prefiltering/index.ts index 40ffa5384..a9c198a51 100644 --- a/core/autocomplete/prefiltering/index.ts +++ b/core/autocomplete/prefiltering/index.ts @@ -70,6 +70,14 @@ export async function shouldPrefilter( return true; } + // Don't offer completions when we have no information (untitled file and no file contents) + if ( + helper.filepath.includes("Untitled") && + helper.fileContents.trim() === "" + ) { + return true; + } + // if ( // helper.options.transform && // (await shouldLanguageSpecificPrefilter(helper))