More work on the lsp
This commit is contained in:
4
index.ts
4
index.ts
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user