Skip to content

Commit

Permalink
depend on urbit-airlock for HTTP communication
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-fitzgerald committed Mar 31, 2020
1 parent 8fca0a0 commit 42c2635
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 273 deletions.
59 changes: 59 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@
"eventsource": "^1.0.7",
"lodash": "^4.17.15",
"pino": "^5.15.0",
"urbit-airlock": "0.0.1",
"vscode-languageserver": "^5.2.1",
"yargs": "^15.1.0"
},
"scripts": {},
"scripts": {
"build": "tsc",
"watch": "tsc --watch"
},
"devDependencies": {
"@types/eventsource": "^1.1.2",
"@types/lodash": "^4.14.149",
"@types/node": "^13.1.1",
"@types/pino": "^5.15.1",
"@types/yargs": "^15.0.0"
"@types/yargs": "^15.0.0",
"typescript": "^3.8.3"
}
}
226 changes: 0 additions & 226 deletions src/channel.ts

This file was deleted.

15 changes: 15 additions & 0 deletions src/marks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Marks } from 'urbit-airlock/lib/marks';
import { NotificationMessage, RequestMessage } from "vscode-languageserver";

export const REQUEST_MARK = "language-server-rpc-request";
export const NOTIFICATION_MARK = "language-server-rpc-notification";
export const RESPONSE_MARK = "language-server-rpc-response";


declare module "urbit-airlock/lib/marks" {
interface Marks {
readonly [REQUEST_MARK]: RequestMessage;
readonly [NOTIFICATION_MARK]: NotificationMessage;
readonly [RESPONSE_MARK]: any;
}
}
Loading

0 comments on commit 42c2635

Please sign in to comment.