This commit is contained in:
Joao Moreno
2018-07-17 09:59:26 +02:00
parent 220f8952b6
commit b7a273b6e1
@@ -29,13 +29,12 @@ let _source: string = null;
function getSource(): string {
if (!_source) {
const root = URI.parse(require.toUrl('')).fsPath;
_source = path.resolve(root, '..', 'resources', 'darwin', 'bin', 'code.sh');
_source = path.resolve(root, '..', 'bin', 'code');
}
return _source;
}
function isAvailable(): TPromise<boolean> {
console.log(getSource());
return pfs.exists(getSource());
}