fix: move askpass scripts to stable location (#289400)

* fix: move askpass scripts to stable location

fixes #282020

* Update extensions/git/src/askpassManager.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* use global storage

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
João Moreno
2026-01-22 16:20:27 +01:00
committed by GitHub
parent 34a38fa3a1
commit e37fdc9118
3 changed files with 248 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ import { GitEditSessionIdentityProvider } from './editSessionIdentityProvider';
import { GitCommitInputBoxCodeActionsProvider, GitCommitInputBoxDiagnosticsManager } from './diagnostics';
import { GitBlameController } from './blame';
import { CloneManager } from './cloneManager';
import { getAskpassPaths } from './askpassManager';
const deactivateTasks: { (): Promise<void> }[] = [];
@@ -71,7 +72,8 @@ async function createModel(context: ExtensionContext, logger: LogOutputChannel,
logger.error(`[main] Failed to create git IPC: ${err}`);
}
const askpass = new Askpass(ipcServer, logger);
const askpassPaths = await getAskpassPaths(__dirname, context.globalStorageUri.fsPath, logger);
const askpass = new Askpass(ipcServer, logger, askpassPaths);
disposables.push(askpass);
const gitEditor = new GitEditor(ipcServer);