don't autocomplete in empty, untitled files
This commit is contained in:
parent
c0f9df9d01
commit
3bc23ede36
1 changed files with 8 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue