Skip to content

Commit

Permalink
vscode: Fix exthost logging
Browse files Browse the repository at this point in the history
Closes #2364
See #2366

cc @code-asher

My previous commit didn't fix anything but still good to update @coder/logger.
  • Loading branch information
nhooyr committed Dec 4, 2020
1 parent 8a3471c commit c15b526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/dev/vscode.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2682,7 +2682,7 @@ index 0000000000000000000000000000000000000000..6b7c5ffd2ef2f321e32b6ebf1e6ad93b
+ case '__$console':
+ const fn = this.logger[event.severity === 'log' ? 'info' : event.severity];
+ if (fn) {
+ fn('console', field('arguments', event.arguments));
+ fn.bind(this.logger)('console', field('arguments', event.arguments));
+ } else {
+ this.logger.error('Unexpected severity', field('event', event));
+ }
Expand Down

0 comments on commit c15b526

Please sign in to comment.