read .continueignore and check if the current filepath matches the pattern in continueignore
This commit is contained in:
parent
d2a0db01eb
commit
b7fad2cc78
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import ignore from "ignore";
|
||||
|
||||
import { IDE } from "../..";
|
||||
import { getGlobalContinueIgArray } from "../../indexing/ignore";
|
||||
import { getConfigJsonPath } from "../../util/paths";
|
||||
import { findUriInDirs } from "../../util/uri";
|
||||
import { HelperVars } from "../util/HelperVars";
|
||||
|
|
@ -50,7 +51,11 @@ export async function shouldPrefilter(
|
|||
}
|
||||
|
||||
// Check whether autocomplete is disabled for this file
|
||||
const disableInFiles = [...(helper.options.disableInFiles ?? []), "*.prompt"];
|
||||
const disableInFiles = [
|
||||
...(helper.options.disableInFiles ?? []),
|
||||
"*.prompt",
|
||||
...getGlobalContinueIgArray(),
|
||||
];
|
||||
if (await isDisabledForFile(helper.filepath, disableInFiles, ide)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue