Skip to content

Commit 8e0e0b1

Browse files
committed
chore: remove undocumented filePathsToIgnore option
1 parent 6e64abd commit 8e0e0b1

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/svelte-check/src/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ type Result = {
2727

2828
async function openAllDocuments(
2929
workspaceUri: URI,
30-
filePathsToIgnore: string[],
3130
svelteCheck: SvelteCheck
3231
) {
3332
const files = await glob('**/*.svelte', {
3433
cwd: workspaceUri.fsPath,
35-
ignore: ['node_modules/**'].concat(filePathsToIgnore.map((ignore) => `${ignore}/**`))
34+
ignore: ['node_modules/**']
3635
});
3736
const absFilePaths = files.map((f) => path.resolve(workspaceUri.fsPath, f));
3837

@@ -110,12 +109,10 @@ class DiagnosticsWatcher {
110109
private workspaceUri: URI,
111110
private svelteCheck: SvelteCheck,
112111
private writer: Writer,
113-
filePathsToIgnore: string[],
114112
ignoreInitialAdd: boolean
115113
) {
116114
watch(`${workspaceUri.fsPath}/**/*.{svelte,d.ts,ts,js,jsx,tsx,mjs,cjs,mts,cts}`, {
117115
ignored: ['node_modules', 'vite.config.{js,ts}.timestamp-*']
118-
.concat(filePathsToIgnore)
119116
.map((ignore) => path.join(workspaceUri.fsPath, ignore)),
120117
ignoreInitial: ignoreInitialAdd
121118
})
@@ -198,14 +195,13 @@ parseOptions(async (opts) => {
198195
opts.workspaceUri,
199196
new SvelteCheck(opts.workspaceUri.fsPath, svelteCheckOptions),
200197
writer,
201-
opts.filePathsToIgnore,
202198
!!opts.tsconfig
203199
);
204200
} else {
205201
const svelteCheck = new SvelteCheck(opts.workspaceUri.fsPath, svelteCheckOptions);
206202

207203
if (!opts.tsconfig) {
208-
await openAllDocuments(opts.workspaceUri, opts.filePathsToIgnore, svelteCheck);
204+
await openAllDocuments(opts.workspaceUri, svelteCheck);
209205
}
210206
const result = await getDiagnostics(opts.workspaceUri, writer, svelteCheck);
211207
if (

packages/svelte-check/src/options.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export interface SvelteCheckCliOptions {
99
watch: boolean;
1010
preserveWatchOutput: boolean;
1111
tsconfig?: string;
12-
filePathsToIgnore: string[];
1312
failOnWarnings: boolean;
1413
compilerWarnings: Record<string, 'error' | 'ignore'>;
1514
diagnosticSources: DiagnosticSource[];
@@ -73,7 +72,6 @@ export function parseOptions(cb: (opts: SvelteCheckCliOptions) => any) {
7372
watch: !!opts.watch,
7473
preserveWatchOutput: !!opts.preserveWatchOutput,
7574
tsconfig: getTsconfig(opts, workspaceUri.fsPath),
76-
filePathsToIgnore: getFilepathsToIgnore(opts),
7775
failOnWarnings: !!opts['fail-on-warnings'],
7876
compilerWarnings: getCompilerWarnings(opts),
7977
diagnosticSources: getDiagnosticSources(opts),

0 commit comments

Comments
 (0)