Skip to content

Commit

Permalink
Fixing getFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Aug 14, 2024
1 parent 7af1f25 commit 67e9dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/lib/lsp/diagnostics/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export class InternalContext implements DiagnoserContext<TextDocument> {

/**@inheritdoc*/
getFiles(folder: string, patterns: string[], ignores: MCIgnore): string[] {
const key = (folder = patterns.join(",") + ignores.patterns.join(","));
const key = (folder + patterns.join(",") + ignores.patterns.join(","));

return this._getFilesCache.getOrAdd(key, (k) => {
return Glob.getFiles(patterns, patterns, folder);
return Glob.getFiles(patterns, ignores.patterns, folder);
});
}

Expand Down

0 comments on commit 67e9dd1

Please sign in to comment.