mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Don't register git protocol handler till after git commands are registered (#160857)
This commit is contained in:
@@ -182,8 +182,6 @@ export async function _activate(context: ExtensionContext): Promise<GitExtension
|
||||
const outputChannelLogger = new OutputChannelLogger();
|
||||
disposables.push(outputChannelLogger);
|
||||
|
||||
disposables.push(new GitProtocolHandler(outputChannelLogger));
|
||||
|
||||
const { name, version, aiKey } = require('../package.json') as { name: string; version: string; aiKey: string };
|
||||
const telemetryReporter = new TelemetryReporter(name, version, aiKey);
|
||||
deactivateTasks.push(() => telemetryReporter.dispose());
|
||||
@@ -222,6 +220,8 @@ export async function _activate(context: ExtensionContext): Promise<GitExtension
|
||||
warnAboutMissingGit();
|
||||
|
||||
return new GitExtensionImpl();
|
||||
} finally {
|
||||
disposables.push(new GitProtocolHandler(outputChannelLogger));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user