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

IntelliSense should show conditional compilation symbols #16542

Closed
terrajobst opened this issue Jan 16, 2017 · 2 comments
Closed

IntelliSense should show conditional compilation symbols #16542

terrajobst opened this issue Jan 16, 2017 · 2 comments
Labels
Area-IDE Resolution-Duplicate The described behavior is tracked in another issue

Comments

@terrajobst
Copy link
Member

terrajobst commented Jan 16, 2017

Version Used: Visual Studio 2017 RC.3+26114.2.d15rel

Steps to Reproduce:

  1. Create a new C# project
  2. Add a conditional compilation symbol to your project (e.g. AWESOME)
  3. Start typing #if and invoke IntellISense

Expected Behavior:

IntelliSense displays the list of conditional compilation symbols. Ideally, across all configurations but at least for the current project configuration (e.g. Debug|x86).

Actual Behavior:

It helpfully shows true and false. Hooray!

This is especially frustrating for projects that are cross-compiled (i.e. compile for multiple TFMs). The developer cannot easily discover the conditional compilation symbol for the TFM. I ended up running a diagnostic build to see what's passed to CSC.

image

@miloush
Copy link

miloush commented Jan 16, 2017

A duplicate of #11499?

@terrajobst
Copy link
Member Author

terrajobst commented Jan 16, 2017

Thanks. Was searching, but was probably using the wrong keywords.

@srivatsn @davkean @Pilchie should we bump the priority? I expect cross compilation to become a lot more prominent, considering the improvements in our tooling. Not having IntelliSense for symbols makes this harder than it needs to be.

@Pilchie Pilchie closed this as completed Jan 20, 2017
@Pilchie Pilchie added the Resolution-Duplicate The described behavior is tracked in another issue label Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

4 participants