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 6ddf1f2 commit d2f3e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/dev/vscode.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@ index 0000000000000000000000000000000000000000..a6c1f9f848f441b761397ba78e2fef60
+}
diff --git a/src/vs/server/node/connection.ts b/src/vs/server/node/connection.ts
new file mode 100644
index 0000000000000000000000000000000000000000..0b6fe3ed173576109efac139c50f85041c1d7073
index 0000000000000000000000000000000000000000..487a599ab3db42b48adcd7f1a37511ab050655ad
--- /dev/null
+++ b/src/vs/server/node/connection.ts
@@ -0,0 +1,189 @@
Expand Down Expand Up @@ -2679,7 +2679,7 @@ index 0000000000000000000000000000000000000000..0b6fe3ed173576109efac139c50f8504
+ 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 d2f3e6c

Please sign in to comment.