Skip to content

Commit 839159e

Browse files
Loosen restrictions before generating tasks.json and launch.json
It is no longer necessary to ensure that the workspace root contains a project.json (or global.json) before offering to generate tasks.json and launch.json. When launched, OmniSharp should scan for projects and, if any or found, we'll offer to generate the assets if needed.
1 parent 32d1172 commit 839159e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/assets.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -372,17 +372,6 @@ export function addAssetsIfNecessary(server: OmnisharpServer) {
372372
return;
373373
}
374374

375-
// If there is no project.json or global.json, we won't bother to prompt the user for tasks.json.
376-
const projectJsonPath = path.join(vscode.workspace.rootPath, 'project.json');
377-
const globalJsonPath = path.join(vscode.workspace.rootPath, 'global.json');
378-
379-
const projectJsonExists = fs.existsSync(projectJsonPath);
380-
const globalJsonExists = fs.existsSync(globalJsonPath);
381-
382-
if (!fs.existsSync(projectJsonPath) && !fs.existsSync(globalJsonPath)) {
383-
return;
384-
}
385-
386375
return serverUtils.requestWorkspaceInformation(server).then(info => {
387376
// If there are no .NET Core projects, we won't bother offering to add assets.
388377
if ('DotNet' in info && info.DotNet.Projects.length > 0) {

0 commit comments

Comments
 (0)