latex-lsp/lsp_run.ts

14 lines
221 B
TypeScript

import { error, handleData, log } from "./lsp";
console.log = log;
process.stdin.resume();
process.stdin.on('data', function(data) {
try {
handleData(data);
} catch (e) {
error("TRY GOT ERROR:" + e)
}
})