mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 19:25:51 +00:00
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:
parent
c8c7a29abb
commit
1cec184e04
4 changed files with 69 additions and 57 deletions
|
@ -2,17 +2,12 @@ import * as vsclang from 'vscode-languageserver'
|
|||
import * as vsclangproto from 'vscode-languageserver-protocol'
|
||||
import { completions } from './completionProvider'
|
||||
import { preprocess, ext, formatURI } from './linter'
|
||||
import { exec, execSync } from 'child_process'
|
||||
import { extname } from 'path'
|
||||
import fetch from 'node-fetch'
|
||||
import { platform } from 'os'
|
||||
import { createWriteStream, chmodSync, createReadStream, unlinkSync } from 'fs'
|
||||
import * as unzip from 'unzip'
|
||||
|
||||
export let connection: vsclang.IConnection
|
||||
connection = vsclang.createConnection(new vsclang.IPCMessageReader(process), new vsclang.IPCMessageWriter(process))
|
||||
|
||||
import { Config, onConfigChange } from './config'
|
||||
import { onConfigChange } from './config'
|
||||
|
||||
export const documents = new vsclang.TextDocuments()
|
||||
documents.listen(connection)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue