latex-lsp/index.ts

21 lines
521 B
TypeScript
Raw Permalink Normal View History

2023-12-25 22:44:16 +00:00
import fs from 'fs';
import process from 'process';
2023-12-26 20:01:14 +00:00
import { diagnosticsRequests, getDiagnostics, parseLsp } from './parser';
2023-12-31 15:33:43 +00:00
import { add_personal } from './languagetool';
2023-12-25 22:44:16 +00:00
if (process.argv.length !== 3) {
console.log("Please provide only one pass");
process.exit(1);
}
const file = fs.readFileSync(process.argv[2]).toString();
const res = parseLsp(file);
fs.writeFileSync('./res', res.text);
2023-12-31 15:33:43 +00:00
//const diag = await diagnosticsRequests(res);
2024-02-29 15:39:13 +00:00
//const diag = await getDiagnostics(file);
2023-12-31 15:33:43 +00:00
//add_personal(['AutoML']);