1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-10-26 09:00:54 +03:00

remove hacky git extension activation fix

This commit is contained in:
kahole 2023-05-19 14:01:17 +02:00
parent 0c1d9513db
commit ff2a81031b
2 changed files with 3 additions and 9 deletions

View File

@ -173,7 +173,8 @@ add this to your `settings.json`:
"[magit]": {
"editor.lineHeight": 15
},
```(@stevenguh (Steven Guh)
```
(@stevenguh (Steven Guh)
## [0.5.0] - 2020-10-12
- Fixes issue where stash list was showing 1 entry even when there are none.

View File

@ -73,16 +73,9 @@ function readHiddenStatusSections(configEntry: any): Set<string> {
}
}
export async function activate(context: ExtensionContext) {
export function activate(context: ExtensionContext) {
const gitExtension = extensions.getExtension<GitExtension>('vscode.git')!;
if (!gitExtension.isActive) {
// Activate vscode internal git extension
await gitExtension.activate();
// and give it some time to load some state
await new Promise(r => setTimeout(r, 1000));
}
const gitExtensionExports = gitExtension.exports;
if (!gitExtensionExports.enabled) {
throw new Error('vscode.git Git extension not enabled');