-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Improve console output of dotnet watch
β
#23318
Conversation
("Hot reload", "π₯"), | ||
("HotReload", "π₯"), | ||
("Started", "π"), | ||
("Restart", "π"), | ||
("Shutdown", "π"), | ||
("Building...", "π§"), | ||
("Error", "β"), |
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.
Main emoji matching. Additional ones we may want to consider:
- βοΈ for file(s) changed
- β for
Unable to apply hot reload because of a rude edit
. Note this would conflict withError
- βοΈ for build instead of π§
- β / π for when a new file is added
@@ -294,6 +299,13 @@ private static void ConfigureExecutable(DotNetWatchContext context, ProcessSpec | |||
} | |||
} | |||
|
|||
private string GetRelativeFilePath(string path) | |||
{ | |||
return path.StartsWith(_workingDirectory) ? |
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.
return path.StartsWith(_workingDirectory) ? | |
return path.StartsWith(_workingDirectory, StringComparison.OrdinalIgnoreCase) ? |
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.
I had considered this (because MacOS is case insensitive), however Linux is case sensitive and Windows is configurable. Going to use StringComparison.Ordinal
to be safe.
Maybe tmux can be hacked to translate those emojis to down-line-loaded characters if not natively supported by the terminal. |
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.
Thanks!
var dotnetWatchDefaultPrefix = "dotnet watch"; | ||
|
||
// stdout | ||
reporter.Verbose("verbose", emoji: "π"); |
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.
ππ½
* Requester * Relative File Path * Updated Rude Edit Dialog * Emojify * Tests * Test fix 2 (ChangeExcludedFile still failing) * Relative path robustness * File changed test * Arg based emojis * Remove duplicate tip message (cherry picked from commit 5ae5131)
file changed
dialog instead of absolute pathsScreen.Recording.2022-01-07.at.9.50.25.AM.mov
Text output
Fixes: dotnet/aspnetcore#35562