ReasonML syntax support and language server integration#1488
Conversation
…gration to vscode extension. Work in progress, not quite there yet.
|
@zth: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
|
@zth for some reason, it looks like the extension is having trouble starting up. When clicking the apollo logo at the bottom right, the |
|
@zth Okay, from what I can tell, there are a couple issues, but I'm not 100% sure the cause of either. The first is that there may be something wrong with the The second is something config-related. It errors and says it can't get the schema file, because it doesn't exist (although it does). It looks like it's trying to load the schema from the root of the repo (??). If I change the localSchemaFile path to |
|
@JakeDawkins thank you for testing! I was able to get syntax highlighting working with the Anyway, I'll look into this a bit more in due time and get back here when I have any updates. Thanks! |
|
Your |
… vscode-extension-add-reason-relay-support
… vscode-extension-add-reason-relay-support
|
@JakeDawkins I finally got this working! 😅 I think this should be good then, I've verified locally and added a pretty simple test. However, something unrelated seems to fail in CI, and I can't think of anything I did that should affect that test. Any idea? Thanks! |
… vscode-extension-add-reason-relay-support
|
@JakeDawkins sorry to ping you, just very excited about this 😀 Anything I can do to help move this one along? Thanks! |
|
@zth Sorry I forgot all about this!! I'll get this out in the next release :) |
Hi!
This is a draft PR of adding ReasonML support to the vscode apollo extension. It does not work yet from what I can tell, although I'm not quite sure if I'm testing it the right way.
I've tried to mimic how support was added for python/Ruby, and I'm looking for guidance on how to proceed here. Maybe someone from the team could have a look?
It can be tested by cloning https://github.com/zth/reason-relay, and opening the
examplefolder.example/src/BookOverview.recontains something that looks roughly like this:...where
{| <graphql code here> |}is what should be syntax highlighted and sent to the language server.I've added tests to make sure that the right code block is successfully extracted from the document, so that should be working, but I haven't managed to get the extension working locally here. Or something's not right with my changes.
There's a bunch of changes I've made, primarily to the
graphql.re.jsonsyntax file, that I've just copied and search replaced from the Python/Ruby, and that I honestly don't know whether they are right or if I'm missing something.Anyway, I'd be very helpful for any help and guidance I can get. Thanks in advance!