chore: more work on the lsp

This commit is contained in:
2024-02-29 15:39:13 +00:00
parent 7b1e9e063e
commit d2d5a279ad
5 changed files with 511 additions and 434 deletions

View File

@@ -2,12 +2,24 @@ import { error, handleData, log } from "./lsp";
console.log = log;
process.stdin.resume();
log('Started the server logging');
try {
log('Listening for Input')
process.stdin.resume();
} catch (e: any) {
log('failed to listen to the stdin');
log(e.toString());
throw e;
}
process.stdin.on('data', function(data) {
try {
handleData(data);
} catch (e) {
error("TRY GOT ERROR:" + e)
}
log('Got the data function');
try {
handleData(data);
} catch (e) {
log("got here")
error("TRY GOT ERROR:" + e)
}
})