Skip to content

Commit

Permalink
#110 - Quick Fix for Multiple Workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
waldo1001 committed Mar 28, 2019
1 parent df690c4 commit 761b7c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Git.ts
Expand Up @@ -8,6 +8,8 @@ var projectRoot = vscode.workspace.rootPath;
var simpleGit = require('simple-git')((projectRoot) ? projectRoot : '.');

export async function isGitRepository(folder: vscode.WorkspaceFolder): Promise<boolean> {
return true; //TODO: Doesn't work in multiple workspaces

if (folder.uri.scheme !== 'file') {
return false;
}
Expand All @@ -23,6 +25,8 @@ export async function isGitRepository(folder: vscode.WorkspaceFolder): Promise<b
}

export function isGitRepositorySync(): boolean {
return true; //TODO: Doesn't work in multiple workspaces

let folder = WorkspaceFiles.getCurrentWorkspaceFolder();

if (folder.uri.scheme !== 'file') {
Expand Down

0 comments on commit 761b7c1

Please sign in to comment.