-
Notifications
You must be signed in to change notification settings - Fork 0
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
From URI to file, line, column #1
Comments
Ok. I need a little more information. Who produces and who consumes which information? We have code for this kind of thing we can steal/reuse from other IDEs probably. |
As I see it the extension is very simple and only calls a Rascal script (in a certain directory with a fixed name). This way we do not need to upgrade the extension when new architectural rules become available. |
Ok that's a cool setup for now, we could use the RASCAL.MF file to configure the name of the module and the name of the main function. However, what was your question wrt the source location? |
Somehow we need a conversion from URI (Rascal) to file, line, column (VS). |
Yes that sounds ok. Let's first decide how we will let the VScode extension communicate with Rascal. Starting up a JVM takes time, so usually it's best to:
We could use JSON-RPC for that, if C# has a library for that. That way we can send file, line, column objects If the JSON-RPC connection is bi-directional, then we can implement the IDEServices interface going in the other direction,
We can start small and only implement the diagnostics. This way people can write their analysis code in the VScode or Eclipse IDE and test them, and then run them in MS Visual Studio without changing a line of code. |
BTW, JSON-RPC is also used to implement the Rascal VScode extension, so that is also a motivation (to keep things simple and consistent and to share as much code as possible.) |
We need something to get from URI to file, line, column in Rascal (scripts)
The text was updated successfully, but these errors were encountered: