Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve generation of tasks.json and launch.json assets #590

Merged
merged 4 commits into from
Jul 20, 2016

Conversation

DustinCampbell
Copy link
Member

Fixes #556 and #170

This change allows tasks.json and launch.json to be generated when the workspace root contains a global.json rather than a launch.json. It ensures that appropriate values to the json files to account for the target project being more deeply nested.

cc @gregg-miskelly, @rajkumar42, @caslan, @chuckries

This change allows tasks.json and launch.json to be generated when the workspace root
contains a global.json rather than a launch.json. It ensures that appropriate values to the
json files to account for the target project being more deeply nested.

function hasWebServerDependency(targetProjectData: TargetProjectData) {
if (!targetProjectData || !targetProjectData.projectJsonPath) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be 'return false'? Or does the caller handle undefined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Yes, it should return false.

@gregg-miskelly
Copy link
Contributor

Otherwise LGTM

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.
@DustinCampbell
Copy link
Member Author

Look better now @gregg-miskelly?

@DustinCampbell DustinCampbell added this to the 1.3 milestone Jul 20, 2016
@DustinCampbell DustinCampbell merged commit 069a6c1 into dotnet:master Jul 20, 2016
@gregg-miskelly
Copy link
Contributor

@DustinCampbell LGTM. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants