Skip to content

Commit

Permalink
Made functions protected
Browse files Browse the repository at this point in the history
Downgraded minimatch for Node 18 compatibility

Signed-off-by: Jonas Helming <[email protected]>
  • Loading branch information
JonasHelming committed Nov 14, 2024
1 parent 047d4fa commit 78aae54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/ai-workspace-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@theia/ai-core": "1.55.0",
"@theia/ai-chat": "1.55.0",
"ignore": "^6.0.0",
"minimatch": "^10.0.0"
"minimatch": "^9.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/ai-workspace-agent/src/browser/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ export class WorkspaceFunctionScope {
return false;
}

private isUserExcluded(fileName: string, userExcludePatterns: string[]): boolean {
protected isUserExcluded(fileName: string, userExcludePatterns: string[]): boolean {
return userExcludePatterns.some(pattern => new Minimatch(pattern, { dot: true }).match(fileName));
}

private async isGitIgnored(stat: FileStat, workspaceRoot: URI): Promise<boolean> {
protected async isGitIgnored(stat: FileStat, workspaceRoot: URI): Promise<boolean> {
await this.initializeGitignoreWatcher(workspaceRoot);

const gitignoreUri = workspaceRoot.resolve(this.GITIGNORE_FILE_NAME);
Expand Down
7 changes: 0 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8479,13 +8479,6 @@ [email protected], minimatch@^9.0.0, minimatch@^9.0.1:
dependencies:
brace-expansion "^2.0.1"

minimatch@^10.0.0:
version "10.0.1"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.0.1.tgz#ce0521856b453c86e25f2c4c0d03e6ff7ddc440b"
integrity sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==
dependencies:
brace-expansion "^2.0.1"

minimatch@^3.0.0, minimatch@^3.0.3, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
Expand Down

0 comments on commit 78aae54

Please sign in to comment.