-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: log to outputChannel #2623
Conversation
|
||
// Handle scenarios where mouse used to change current position. | ||
const disposable = vscode.window.onDidChangeTextEditorSelection(e => { | ||
if (configuration.disableExt) { | ||
return; | ||
} | ||
|
||
if (Globals.isTesting) { |
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.
Why do you think this is better here instead of in the actual handler?
Do you know that the handler was only called from here?
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.
Tbh, I moved it because I didn't see a reason for it to be in the actual handler. This is the only spot the handler is being called from and to save us from queuing something onto our task queue only to exit shortly thereafter seemed wasteful.
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.
ok, we just don't test this function at all so it terrifies me
This is really cool though! |
46229bf
to
feec55b
Compare
What this PR does / why we need it:
Which issue(s) this PR fixes
Special notes for your reviewer: