Closed georgejecook closed 5 years ago
yo @TwitchBronBron can you assign me please? I've got it in progress. Hope you concur with the approach - if not let me know - keys are easy enough to redefine.
I'm not opposed to this, but could you explain some of the common use cases?
use case is you get tons of logoutput - and something happens that you are interested in - like showing a screen, playback start - a glitchy bit of UI a spinner appearing
you can press a key - I no longer have to scan tons of log code - I've a very good idea of where it occurred..
I've given this some thought, and I hate to say it, but I don't think this concept belongs in vscode-brightscript-language
. There's nothing BrightScript-specific about it. It just adds text to a vscode "output" channel. You could easily write a standalone extension that allows you to do this same thing...by adding the line to the active channel, or adding a setting to specify which output channel the mark should be added to.
@georgejecook I just wanted to summarize out slack conversation for tracking purposes. Thanks for the clarifications.
For the upcoming log-filtering feature, you are moving all of the log statements into an array (so you can recreate the log based on filters). That would make this mark log output
feature impossible to implement in a separate extension because that new extension wouldn't have access to that log entry array, and so every filter change would cause these mark statements to get lost. That's good enough reason for me to be ok with this arriving in the extension.
It should be possible to add a mark to log output with a keypress (Suggestion ctrl+l) The logoutput should append
with an incrementing mark count also keypress to clear the output (suggested default is ctrl+k) - this will reset marks as well