Added postError function for short error notifications. Using existsSync to check if binary exists. Seperated onConfigChange into different functions. lineNum -2 for windows instead of -1 for linux, such a pain.

This commit is contained in:
Noah Santschi-Cooney 2018-07-20 22:05:59 +01:00
parent c8c7a29abb
commit 1cec184e04
4 changed files with 69 additions and 57 deletions

6
server/src/utils.ts Normal file
View file

@ -0,0 +1,6 @@
import { connection } from './server'
export function postError(e: Error) {
connection.window.showErrorMessage(e.message)
console.log(e)
}