mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
Ignore workspace extensions in user extensions dir (#8084)
This commit is contained in:
parent
5032b27011
commit
a31830a3cb
1 changed files with 4 additions and 0 deletions
|
|
@ -88,6 +88,10 @@ export class ExtensionStorage {
|
|||
}
|
||||
|
||||
export function getWorkspaceExtensions(workspaceDir: string): Extension[] {
|
||||
// If the workspace dir is the user extensions dir, there are no workspace extensions.
|
||||
if (path.resolve(workspaceDir) === path.resolve(os.homedir())) {
|
||||
return [];
|
||||
}
|
||||
return loadExtensionsFromDir(workspaceDir);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue