-
Notifications
You must be signed in to change notification settings - Fork 737
Understand PMC and Powershell usages #3755
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
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
1834814
Event to track how many times commands are executed on PMC.
erdembayar 594fad9
Batch count of commands executed on PMC.
erdembayar a8cb55d
Fix format.
erdembayar ef02445
Add telemetry for how many times PMC was openened.
erdembayar 2b2e4a6
Add code comment for automatically loaded PMC.
erdembayar b0476a6
There are 2 seperate instances of PowerShellHost.cs can be created fo…
erdembayar 6a2cb41
Combine 2 events make less number of event (just 1) to emit.
erdembayar a3945de
Fix typos.
erdembayar 287c0c6
Add actual origin which caused init.ps1 to run into telemetry.
erdembayar a9d8ffd
Make names of telemetry event a constants.
erdembayar 2061923
Get donnie's advise for naming.
erdembayar 57e8963
Remove init.ps1 telemetry because current scenario doesn't capture in…
erdembayar e7e032b
Address Andy's code review comment.
erdembayar 22300d4
Remove unused variable.
erdembayar 9127d0a
Send single event for both PMUI and PMC powershell events.
erdembayar be473af
Make powershell telemetry works for with and without solution load.
erdembayar 8190d66
No need to emit separate nugetvssolutionclose if there were no soluti…
erdembayar a265545
Refactor code so it's not much mix too much telemetry code into other…
erdembayar a99b667
Add telemetry detecting Nuget command and load of init.ps1 for packages.
erdembayar bbe8502
Move telemetry logic into seperate class VsPowerShellHostTelemetryEmi…
erdembayar 3a139c4
Fix formatting.
erdembayar 1c3e9a1
Remove manually typed consts with centralized one.
erdembayar 3ad32a1
Move INuGetTelemetryAggregator so we don't have to publish new api.
erdembayar b236d94
Clean up
erdembayar 6509fdc
Fix typos
erdembayar 3bacebb
Start recording PMC usage without any solution load as seperate 'NuGe…
erdembayar 04b0b22
Clean up
erdembayar e6204aa
Add missing telemetry property
erdembayar ba3a265
INuGetTelemetryCollector doesn't need to be Lazy since it's used imme…
erdembayar f5d3a0f
Address code review comment by Nikolche.
erdembayar 4c1ff17
Remove unnecessary load of assembly.
erdembayar 1ace515
Merge branch 'dev' into dev-eryondon-PMC-telemetry-event
erdembayar 1ff19e8
Revert unneeded change.
erdembayar 7656aa6
Separate telemtry collector and emitter.
erdembayar 1c4705c
Move solution events to VSSolutionManager.cs
erdembayar 687d35c
Make telemetry collector thread safe.
erdembayar c00e380
Refactor to use separate telemetry-event classes.
erdembayar a3d322c
Correct class name same to file name.
erdembayar ac51183
Address PR comment by Fernando
erdembayar 85fa8ff
Fix typo.
erdembayar 43a9027
Correct event class names
erdembayar c801946
Clean up and improve Powershell/PowershellTelemetryEmitter.
erdembayar dea971b
Fix typos.
erdembayar 2d78015
Stop passing telemetry event between different methods.
erdembayar 87b7d9a
Improve reaadability
erdembayar 0c4f737
Move no any solution is loaded and not executed any command logic to …
erdembayar 4f20b18
Correct prefix .
erdembayar f4a8a12
Refactor whole design after consulting with Andy.
erdembayar 32f08f3
Fix reopen flag might not work from dispose on PMC window.
erdembayar d057453
Correct window count logic.
erdembayar f25af0e
Improve formatting and fix PMC, PMUI loaded not set from after load f…
erdembayar eaa9b9f
Correct solution count.
erdembayar 9ab746d
Address PR comment Nkolche.
erdembayar 73fc122
Address remaining review comments from Andy.
erdembayar ec4ae8d
Clean up fix and fix typos.
erdembayar 9179b9c
Fix if PMC opened without solution then that window load is not counted.
erdembayar 99b450d
Address PR comments by Fernando.
erdembayar ccf74a0
Address latest Andy's comments (removing prefix etc)
erdembayar aa0ba5b
Address latest PR comment from Andy and Fernando. Now solution close …
erdembayar a9607e7
Fix naming conventions.
erdembayar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Rule 26 https://github.com/NuGet/NuGet.Client/blob/dev/docs/coding-guidelines.md
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.
@nkolev92

Reason I did it was if I import Nuget.Common then just 8-9 lines down on
AsyncLazy<IVsMonitorSelection>needed exact same thing it needs fully qualified name. So instead of touching existing code for same change I tried to contain my changes.Uh oh!
There was an error while loading. Please reload this page.
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.
You can always do a using like this one: https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Clients/NuGet.VisualStudio.Common/OutputConsoleLogger.cs#L14
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.
Addressed in new PR#3863.