Closed ryu1kn closed 7 years ago
If, at step 3, I execute the mark text command from context menu or keyboard shortcut, the editor object passed to the command is the Output channel.
If I close all editors other than the Output Channel, the command is not executed if I invoke them via the command palette. Whereas it is executed if I invoke them via context menu or keyboard shortcut.
The mark text commands are registered with vscode.commands.registerTextEditorCommand
; so their being not called when there are no editors makes sense, but then why those commands still get called when they're invoked via a context menu or keyboard shortcuts?
If I register commands with vscode.commands.registerCommand
, and focus the Output channel and execute the command with 2 ways:
window.ActiveTextEditor
doesn't point to the output channel
(but the channel is in window.visibleTextEditors
)window.ActiveTextEditor
points to the output channelSo, even though I can execute the mark text command, then I will have problem with finding out if a user is really focusing on a text editor or actually on an output channel...
Added a note on README. Closing for now...
Can compare if mark text commands are executed from the context menu (right-click menu)