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

GH1214: Add cake handler for /codestructure endpoint. #1217

Merged
merged 3 commits into from
Jun 30, 2018

Conversation

bjorkstromm
Copy link
Member

-Fixes #1214

{
var translatedElement = await childElement.TranslateAsync(workspace, request);

// This is plain stupid, but someone might put a #load directive inside a method or class
Copy link
Member

Choose a reason for hiding this comment

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

is this supported in Cake?
In scripting this would generate CS8098 "Cannot use #load after first token in file"
https://github.com/dotnet/roslyn/blob/ca2f6ad9ab68518344c2d3e25c0731c83d136701/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs#L1329

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it is supported since Cake only includes the content of #load:ed files. It doesn't rely on the Roslyn #load directive currently. I'm about to look into changing that behavior however 😄

@bjorkstromm bjorkstromm requested a review from rchande June 18, 2018 18:47
@david-driscoll david-driscoll merged commit 6e1ced1 into OmniSharp:master Jun 30, 2018
@bjorkstromm bjorkstromm deleted the feature/GH-1214 branch June 30, 2018 05:09
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.

4 participants