Skip to content

Support #line directive in find references#1660

Merged
bjorkstromm merged 7 commits intoOmniSharp:masterfrom
filipw:feature/line-references
Dec 5, 2019
Merged

Support #line directive in find references#1660
bjorkstromm merged 7 commits intoOmniSharp:masterfrom
filipw:feature/line-references

Conversation

@filipw
Copy link
Copy Markdown
Member

@filipw filipw commented Nov 29, 2019

Fixes #1649
If the mapping goes to an external file, we assume column 0,0

@filipw
Copy link
Copy Markdown
Member Author

filipw commented Nov 29, 2019

@mholo65 Cake tests fail with this, should I exclude Cake from this span mapping logic?

@bjorkstromm
Copy link
Copy Markdown
Member

@filipw let me have a look at the Cake, and see if I can fix it. Cake, behind the scenes uses a lot of #line mappings, as we basically merge all #loaded files + DSL into one giant csx with custom host which we pass to Roslyn.

@filipw
Copy link
Copy Markdown
Member Author

filipw commented Dec 4, 2019

@filipw let me have a look at the Cake, and see if I can fix it. Cake, behind the scenes uses a lot of #line mappings, as we basically merge all #loaded files + DSL into one giant csx with custom host which we pass to Roslyn.

did you get a chance to look at this?

@bjorkstromm
Copy link
Copy Markdown
Member

@filipw let me have a look at the Cake, and see if I can fix it. Cake, behind the scenes uses a lot of #line mappings, as we basically merge all #loaded files + DSL into one giant csx with custom host which we pass to Roslyn.

did you get a chance to look at this?

I'm looking now.

Comment thread src/OmniSharp.Roslyn.CSharp/Helpers/LocationExtensions.cs Outdated
@filipw
Copy link
Copy Markdown
Member Author

filipw commented Dec 5, 2019

thanks @mholo65

should be good to go

@bjorkstromm bjorkstromm merged commit 3a331cd into OmniSharp:master Dec 5, 2019
@filipw filipw deleted the feature/line-references branch May 12, 2020 07:34
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.

Support line pragmas for find all references

2 participants