mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
don't search for project when no folder has been opened, fixes #649
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user