-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
IDE0008 Use explicit type instead of var #11284
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
IDE0008 Use explicit type instead of var #11284
Conversation
Several manual changes. A few IDE0090 was addressed too.
9670bdc
to
a7b3362
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.
+0
I would then update editor config file to be at least a warning if not an error if you are taking this stance fully. |
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.
👍
@@ -248,11 +248,11 @@ public void Error_raised_via_event_and_not_marked_as_handled_faults_task() | |||
|
|||
Exception ex = new(); | |||
|
|||
var loadTask = ThreadHelper.JoinableTaskFactory.RunAsync(() => _loader.LoadAsync( | |||
Microsoft.VisualStudio.Threading.JoinableTask loadTask = ThreadHelper.JoinableTaskFactory.RunAsync(() => _loader.LoadAsync( |
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.
❔
Microsoft.VisualStudio.Threading.JoinableTask loadTask = ThreadHelper.JoinableTaskFactory.RunAsync(() => _loader.LoadAsync( | |
using Microsoft.VisualStudio.Threading; | |
JoinableTask loadTask = ThreadHelper.JoinableTaskFactory.RunAsync(() => _loader.LoadAsync( |
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.
Also did this change in a general way, fixing IDE0001
Will change this to warning. Error is not seen in AppVeyor builds. |
d40663f
to
8df953a
Compare
Would like to merge this tomorrow to avoid merge conflicts - most other prs are affected by #11276 anyway. |
Merge at will
|
Follow up to #11276
Proposed changes
Several manual changes, type alias, indentations, casing
A few IDE0090 was addressed too (that appeared after applying IDE0008
A few occurrences with anonymous types remains
I have not reviewed the changes (other than my manual overrides), it compiles and started up.
Test methodology
Compile
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.