mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-08-04 00:49:17 +00:00
made command be obligatory for spawner. not sure why tbh
This commit is contained in:
parent
ab0d4c977f
commit
83f699f797
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
import { spawn } from 'child_process'
|
||||
|
||||
export function runLinter(...args: any[]) {
|
||||
const child = spawn(args[0], ...(args.slice(1)))
|
||||
//
|
||||
export function runLinter(command: string, ...args: any[]) {
|
||||
const child = spawn(command, ...args)
|
||||
let stderr = ''
|
||||
|
||||
child.stderr.on('data', data => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue