mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
activate git before smoke tests
This commit is contained in:
@@ -253,11 +253,6 @@ export class CommandCenter {
|
||||
});
|
||||
}
|
||||
|
||||
@command('git.activate')
|
||||
async activate(): Promise<void> {
|
||||
// noop
|
||||
}
|
||||
|
||||
@command('git.setLogLevel')
|
||||
async setLogLevel(): Promise<void> {
|
||||
const createItem = (logLevel: LogLevel) => ({
|
||||
|
||||
@@ -49,8 +49,9 @@ suite('git smoke test', function () {
|
||||
cp.execSync('git commit -m "initial commit"', { cwd });
|
||||
|
||||
// make sure git is activated
|
||||
await commands.executeCommand('git.activate');
|
||||
git = extensions.getExtension<GitExtension>('vscode.git')!.exports.getAPI(1);
|
||||
const ext = extensions.getExtension<GitExtension>('vscode.git');
|
||||
await ext?.activate();
|
||||
git = ext!.exports.getAPI(1);
|
||||
|
||||
if (git.repositories.length === 0) {
|
||||
await eventToPromise(git.onDidOpenRepository);
|
||||
|
||||
Reference in New Issue
Block a user