More work on the lsp

This commit is contained in:
2023-12-26 20:01:14 +00:00
parent 57682ed72b
commit 11e7c303e3
3 changed files with 80 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
import fs from 'fs';
import process from 'process';
import { getDiagnostics, parseLsp } from './parser';
import { diagnosticsRequests, getDiagnostics, parseLsp } from './parser';
if (process.argv.length !== 3) {
console.log("Please provide only one pass");
@@ -13,4 +13,4 @@ const res = parseLsp(file);
fs.writeFileSync('./res', res.text);
console.log(await getDiagnostics(file));
console.log((await diagnosticsRequests(res)).map(a => a.replacements));