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

No intellisense #110

Closed
marcusien opened this issue Jul 31, 2017 · 4 comments
Closed

No intellisense #110

marcusien opened this issue Jul 31, 2017 · 4 comments

Comments

@marcusien
Copy link

Hi there,

I try to use Scripty in replacement of my T4 scripts.
Everything works fine but... I just can't have any intellisense related to Scripty/Roslyn code on my csx file. As I don't know everything's posible with these APIs, It's hard to write real world code.

For instance, I can't get any intellisense on "Output".

Any way to solve this problem ?
I tried on VS2015 and VS2017

Thank you

@TylerBrinkley
Copy link
Contributor

TylerBrinkley commented Jul 31, 2017

I always delegate my logic to a separate library. That way I get intellisense there and only have to #r that one dll. Then I just have to know how to use Output.

@marcusien
Copy link
Author

Yes, after your answer that's what I did.
It's quite logical but I'm still asking myself why Dave said that Visual Studio handle intellisense on csx while it's not the case.

Thank you ;)

@TylerBrinkley
Copy link
Contributor

To be fair the csx does handle intellisense on the BCL types but not for anything else.

@daveaglick
Copy link
Owner

Dave says a lot of crazy things 😀

In this case, @TylerBrinkley is correct - VS will provide Intellisense in script files, but only for "preloaded" BCL types. It doesn't process directives like #r yet (an issue for that is here) and it certainly doesn't support script globals injected into the host like Scripty does.

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

No branches or pull requests

3 participants