mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
don't search for project when no folder has been opened, fixes #649
This commit is contained in:
parent
3e1cbe1209
commit
9d1054fb70
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue