Skip to content
Snippets Groups Projects
Commit b079e357 authored by SeeBasTStick's avatar SeeBasTStick
Browse files

improved feedback for errors in the json. Will now display the line also

parent 5b790d84
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ Please note that user settings overwrite workspace settings.
- Linter Support (via Server, is still in development by Mircosoft https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/)
- Quickfix support aká Code Completion
- Add feedback of failing prob cli to output
- Switch to Java Server
## Release Notes
......
......@@ -19,10 +19,19 @@ export async function readErrors(errorPath: string): Promise<Map<string, Set<NDJ
crlfDelay: Infinity
});
let i : number = 1
for await (const line of rl) {
let obj: NDJSON = JSON.parse(line)
let obj: NDJSON
try{
console.log(line)
obj = JSON.parse(line)
}catch(e){
throw Error(e.message + " at line " + line)
}
i++
let path: string = obj.details.file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment