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

Fix generate file #1143

Merged
merged 10 commits into from
Apr 6, 2018
Merged

Fix generate file #1143

merged 10 commits into from
Apr 6, 2018

Conversation

rchande
Copy link

@rchande rchande commented Apr 5, 2018

  • Use the modified Omnisharp solution, because the apply change operation solution does not have filepaths for new files
  • Use the documentId requested by the apply change operation

Ravi Chande added 2 commits April 5, 2018 11:14
* Use the modified Omnisharp solution, because the apply change operation solution does not have filepaths for new files
* Use the documentId requested by the apply change operation
@DustinCampbell
Copy link
Contributor

The new test is failing.

@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll probably want to add this to build.json so it gets restored and built before the test runs: https://github.com/OmniSharp/omnisharp-roslyn/blob/master/build.json#L40.

Copy link
Author

Choose a reason for hiding this comment

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

Will do. Thanks!

var changes = response.Changes.ToArray();
Assert.Equal(2, changes.Length);
Assert.NotNull(changes[0].FileName);
Assert.NotNull(changes[1].FileName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should you also assert that the file was generated on disk?

@DustinCampbell
Copy link
Contributor

FYI: I've removed cli-deps in my MSBuild PR, which is what is breaking the build here. I have one more fix that I'm testing to ensure Unity projects keep working as expected. Once I'm done, I'll push that change and merge my PR after CI completes. So, if I go first, you can update your PR with my changes and CI will work for you.

@rchande
Copy link
Author

rchande commented Apr 6, 2018

@DustinCampbell Sounds good!

@DustinCampbell
Copy link
Contributor

This is more fallout from the MyGet issues that happened yesterday. 😞

@rchande
Copy link
Author

rchande commented Apr 6, 2018

Fixes dotnet/vscode-csharp#2112

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.

2 participants