-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 intellisense errors by moving TerminalApp projects around #6897
Conversation
FYI in case you are interested in pushing this further- this approach will prevent IntelliSense from actually pre-compiling that header, losing out on that optimization. This means longer pauses after first opening a file, and after making "top-level" edits (i.e. outside the body of a function). The rule of thumb we (the IntelliSense team) use here is that the build should still work with PCH disabled, and then IntelliSense should automatically work as well. If I understand correctly, then adding |
Neither @zadjii-msft or I can tell whether your suggestion means "use the include path INSTEAD of adding the extra PCH to all of the headers" or "use the include path IN ADDITION TO adding the extra PCH to all of the headers." Can you please clarify, @rpjohnst? |
And you know what, I did try just adding |
Ah, sorry for the confusion. I meant to suggest using the include path instead of adding the extra And now that you mention that you've tried that, I think I see why it didn't work- So I tried adding |
Okay, weird. I've tried that too, but now it seems that whenever I open a cpp file with the I have no idea if that's expected or not. |
Hm, that's definitely not expected. A guess at what's happening- perhaps the cpp file you open finds the wrong If so, one thing to double check is the order of the If that doesn't help, then maybe it's just some leftover state that would go away if you did "Project > Rescan File," restarted VS, and/or deleted the .vs directory. (Fair warning, that will reset a few things like the set of open files; if that's a problem then it may be enough to delete just |
K well. I was having Intellisense issues and I merged this into my branch and they're gone. Well, Intellisense is still slow but that's par for a WinRT project. So I don't care if there's a better way, this is better than 100% broken as it is now. |
5a316b7
to
ef40fd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a spare pch file to delete after this?
It might be even easier to move the lib project into the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact, i might block to discuss that
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
ef40fd3
to
ebf75ed
Compare
<!-- Only put headers for winrt types in here. Don't put other header files | ||
in here - put them in TerminalAppLib.vcxproj instead! --> | ||
<ClInclude Include="AppLogic.h" /> | ||
<ClInclude Include="../AppLogic.h" /> | ||
<ClInclude Include="pch.h" /> | ||
<ClInclude Include="TerminalPage.h" /> | ||
<ClInclude Include="MinMaxCloseControl.h" /> | ||
<ClInclude Include="AppKeyBindings.h" /> | ||
<ClInclude Include="TitlebarControl.h" /> | ||
<ClInclude Include="TabRowControl.h" /> | ||
<ClInclude Include="App.h" /> | ||
<ClInclude Include="Tab.h" /> | ||
<ClInclude Include="../TerminalPage.h" /> | ||
<ClInclude Include="../MinMaxCloseControl.h" /> | ||
<ClInclude Include="../AppKeyBindings.h" /> | ||
<ClInclude Include="../TitlebarControl.h" /> | ||
<ClInclude Include="../TabRowControl.h" /> | ||
<ClInclude Include="../App.h" /> | ||
<ClInclude Include="../Tab.h" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the dll project even need the ClIncludes? Can it live w/o them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably?
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
The easiest fix was actually just moving all the source files from
TerminalApp
toTerminalApp/lib
, where the appropriatepch.h
actually resides.
Closes #6866