lsp-editor-adapter
lsp-editor-adapter copied to clipboard
LspWsConnection does not implement on, off.
First off, thanks for devolving this adapter, it's very useful!
I am getting following error when trying to set-up the example from README:
Type "LspWsConnection" is not assignable to parameter of type "ILspConnction"
Type "LspWsConnection" is missing following properties from type "ILspConnction": on, off
I can @ts-ignore
it, but after looking through the sources it seems that the on & off implementation is indeed missing - or am I missing something?
Okey, it has to be something on my part/versions incompatibility. I've just realized that it is probably hidden within the EventEmitter.
Solved by:
npm install events
npm install @types/events
Should events and types for events be included in the package.json
's dependencies
/ devDependencies
?