Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

VSC Integration: Syntax highlight & code assist #746

Open
josephjclark opened this issue Aug 15, 2024 · 0 comments
Open

VSC Integration: Syntax highlight & code assist #746

josephjclark opened this issue Aug 15, 2024 · 0 comments

Comments

@josephjclark
Copy link
Collaborator

Step 1 for VSC integration:

  • Create an extension which adds JS language support
  • Associate with .ofn files (you can of course manually set any .js file to use the extension)
  • If there is an adaptor declaration at the top (// @openfn/languge<lang>[@<version>), download that adaptor and extract the .dts
  • Expose those typings to the Typescript engine (like we do in Monaco)

This gets us almost to parity with Lightning in VSC, with code completions provided by the adaptor. No magic functions yet though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant