reinstate console.log overrides

master
Brad Cornes 2021-05-06 15:18:25 +01:00
parent e08ac09959
commit 385a2ba180
1 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ import {
} from 'vscode-languageserver/node' } from 'vscode-languageserver/node'
import { TextDocument } from 'vscode-languageserver-textdocument' import { TextDocument } from 'vscode-languageserver-textdocument'
import { URI } from 'vscode-uri' import { URI } from 'vscode-uri'
import { showError, SilentError } from './util/error' import { formatError, showError, SilentError } from './util/error'
import glob from 'fast-glob' import glob from 'fast-glob'
import normalizePath from 'normalize-path' import normalizePath from 'normalize-path'
import * as path from 'path' import * as path from 'path'
@ -94,12 +94,12 @@ declare var __non_webpack_require__: typeof require
const connection = const connection =
process.argv.length <= 2 ? createConnection(process.stdin, process.stdout) : createConnection() process.argv.length <= 2 ? createConnection(process.stdin, process.stdout) : createConnection()
// console.log = connection.console.log.bind(connection.console) console.log = connection.console.log.bind(connection.console)
// console.error = connection.console.error.bind(connection.console) console.error = connection.console.error.bind(connection.console)
// process.on('unhandledRejection', (e: any) => { process.on('unhandledRejection', (e: any) => {
// connection.console.error(formatError(`Unhandled exception`, e)) connection.console.error(formatError(`Unhandled exception`, e))
// }) })
function normalizeFileNameToFsPath(fileName: string) { function normalizeFileNameToFsPath(fileName: string) {
return URI.file(fileName).fsPath return URI.file(fileName).fsPath