Repository navigation
feat(git): mark reported queries and fold their output in the console - #16
Merged
Merged
Conversation
Started events carry query: true for an internal query reported through reportQueries and false for a visible command. A console record passes the flag back, and git.consolePresentation folds a successful query's whole output into one query fragment labelled by its line count, the way IDEA keeps silent handlers out of sight. Failed queries and single-line output stay visible; search still locates every folded line.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Lithe Desktop records every Git command a user-facing request runs, internal read-only queries included (
gitExecution.reportQueries). A single log refresh writes hundreds ofgit log/git showoutput lines into the console, burying the commands the user actually ran.startedevents gainquery:truefor an internal query reported throughreportQueries,falsefor a visible command (Invocation::reported).query(defaultfalse).git.consolePresentationfolds a successful query's whole output into onequeryoutput fragment whosecountlabels it, like IDEA's silent handlers. A failed query, and a query that wrote a single line, keep their output visible.rust-core-api.mdandexecution-events-v1.jsondescribe the new field.Tests
cargo test -p lithe-core --lib -- git::console git::execution_events git::execution_policy(22 passed), including the newquery_output_folds_whole_unless_the_query_failed_or_wrote_one_lineandreported_queries_are_marked_apart_from_visible_commands.