chore: more work on the lsp
This commit is contained in:
24
lsp_run.ts
24
lsp_run.ts
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user