check for workspace.rootPath, fixes #5900

This commit is contained in:
Johannes Rieken 2016-04-27 18:40:51 +02:00
parent c8783f311e
commit 7f7c50af30

View file

@ -75,7 +75,7 @@ export function create(client: ITypescriptServiceClient, isOpen:(path:string)=>P
return;
}
if (!configFileName) {
if (!configFileName && vscode.workspace.rootPath) {
exists(join(vscode.workspace.rootPath, 'jsconfig.json'), exists => {
// don't hint if there is a global jsconfig-file. We can get here due
// to TypeScript bugs or jsconfig configurations