don't search for project when no folder has been opened, fixes #649

This commit is contained in:
Johannes Rieken 2015-11-26 15:39:36 +01:00
parent 3e1cbe1209
commit 9d1054fb70

View file

@ -18,6 +18,11 @@ export interface LaunchTarget {
export default function getLaunchTargets(): Thenable<LaunchTarget[]> {
if (!workspace.rootPath) {
return Promise.resolve([]);
}
return workspace.findFiles('{**/*.sln,**/*.csproj,**/project.json}', '{**/node_modules/**,**/.git/**,**/bower_components/**}', 100).then(resources => {
return select(resources, Uri.file(workspace.rootPath));
});