We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b5d32 commit 5e28ff7Copy full SHA for 5e28ff7
src/GitConfig.ts
@@ -1,10 +1,12 @@
1
-import simpleGit, {ConfigValues, SimpleGit} from "simple-git";
+import simpleGit, { ConfigValues, SimpleGit } from "simple-git";
2
+import { workspace } from "vscode";
3
4
export default class GitConfig {
5
private gitConfig: ConfigValues;
6
7
public constructor() {
- const git: SimpleGit = simpleGit();
8
+ const baseDir = workspace.workspaceFolders?.[0].uri.fsPath;
9
+ const git: SimpleGit = simpleGit(baseDir);
10
git.listConfig().then((result) => {
11
this.gitConfig = result.all;
12
});
0 commit comments