make sure git is activated before integration tests run

This commit is contained in:
Joao Moreno
2020-02-05 10:24:40 +01:00
parent 69657a759a
commit 06dbb1938f
4 changed files with 17 additions and 0 deletions

View File

@@ -253,6 +253,11 @@ export class CommandCenter {
});
}
@command('git.activate')
async activate(): Promise<void> {
// noop
}
@command('git.setLogLevel')
async setLogLevel(): Promise<void> {
const createItem = (logLevel: LogLevel) => ({

View File

@@ -40,6 +40,8 @@ suite('git smoke test', function () {
cp.execSync('git add .', { cwd });
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);
if (git.repositories.length === 0) {