@@ -27,12 +27,11 @@ type Result = {
27
27
28
28
async function openAllDocuments (
29
29
workspaceUri : URI ,
30
- filePathsToIgnore : string [ ] ,
31
30
svelteCheck : SvelteCheck
32
31
) {
33
32
const files = await glob ( '**/*.svelte' , {
34
33
cwd : workspaceUri . fsPath ,
35
- ignore : [ 'node_modules/**' ] . concat ( filePathsToIgnore . map ( ( ignore ) => ` ${ ignore } /**` ) )
34
+ ignore : [ 'node_modules/**' ]
36
35
} ) ;
37
36
const absFilePaths = files . map ( ( f ) => path . resolve ( workspaceUri . fsPath , f ) ) ;
38
37
@@ -110,12 +109,10 @@ class DiagnosticsWatcher {
110
109
private workspaceUri : URI ,
111
110
private svelteCheck : SvelteCheck ,
112
111
private writer : Writer ,
113
- filePathsToIgnore : string [ ] ,
114
112
ignoreInitialAdd : boolean
115
113
) {
116
114
watch ( `${ workspaceUri . fsPath } /**/*.{svelte,d.ts,ts,js,jsx,tsx,mjs,cjs,mts,cts}` , {
117
115
ignored : [ 'node_modules' , 'vite.config.{js,ts}.timestamp-*' ]
118
- . concat ( filePathsToIgnore )
119
116
. map ( ( ignore ) => path . join ( workspaceUri . fsPath , ignore ) ) ,
120
117
ignoreInitial : ignoreInitialAdd
121
118
} )
@@ -198,14 +195,13 @@ parseOptions(async (opts) => {
198
195
opts . workspaceUri ,
199
196
new SvelteCheck ( opts . workspaceUri . fsPath , svelteCheckOptions ) ,
200
197
writer ,
201
- opts . filePathsToIgnore ,
202
198
! ! opts . tsconfig
203
199
) ;
204
200
} else {
205
201
const svelteCheck = new SvelteCheck ( opts . workspaceUri . fsPath , svelteCheckOptions ) ;
206
202
207
203
if ( ! opts . tsconfig ) {
208
- await openAllDocuments ( opts . workspaceUri , opts . filePathsToIgnore , svelteCheck ) ;
204
+ await openAllDocuments ( opts . workspaceUri , svelteCheck ) ;
209
205
}
210
206
const result = await getDiagnostics ( opts . workspaceUri , writer , svelteCheck ) ;
211
207
if (
0 commit comments