vscode: Attaching to language server no longer shows output

  • Clone this branch of vscode extension samples
  • Open lsp-sample
  • npm i && npm run build
  • Run the compound Client + Server config, open a *.txt file
  • 🐛 Notice the console.log statements in this commit neither show up in the host window’s Output -> Language Server Example, nor in the Debug Console of the development window. It should print test on both initialization and completion.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (15 by maintainers)

Most upvoted comments

OK for people who want this to continue work as it was, add this to server entry point:

console.log = connection.console.log.bind(connection.console);
console.error = connection.console.error.bind(connection.console);