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:
parent
0c1d9513db
commit
ff2a81031b
@ -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.
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user