Skip to content

export RPC functions #108

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
mhartington opened this issue Mar 3, 2019 · 3 comments
Open

export RPC functions #108

mhartington opened this issue Mar 3, 2019 · 3 comments

Comments

@mhartington
Copy link
Contributor

This is more a tracking issue.

Pynvim offers the ability to export RPC functions from the plugin decorator. This should be supported by node-client as well.

@justinmk justinmk changed the title Supporting RPC functions export RPC functions Feb 22, 2020
@justinmk
Copy link
Member

what would this look like? I'm not aware of "decorator" in node.js

@rhysd
Copy link
Member

rhysd commented Feb 23, 2020

Decorator is a feature proposed to ECMAScript, but it's still on stage2 and not implemented in V8. TypeScript offers to transpile decorators via --experimentalDecorators compiler flag. So the decorator is only usable when this package is used via TypeScript.

https://www.typescriptlang.org/docs/handbook/decorators.html

@justinmk
Copy link
Member

Instead of a decorator, this should be easy to do with a simple util function, which the node plugin can call at startup. See neovim/neovim#27949

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants