Conversation
8383533 to
1b4686f
Compare
|
| Reader.nullReader(), | ||
| logWriter(customLog, Level.INFO), | ||
| logWriter(customLog, Level.ERROR), | ||
| services |
There was a problem hiding this comment.
I'm unsure if this is unused.
What if a DSL does edit from a VS Code action, how will that get wired through to VS Code?
I think the bird IDE contains an example like that.
It might also mean we have to grow our test set before we start working on #1010
There was a problem hiding this comment.
All the places where services have been replaced with monitor expected an IRascalMonitor, not a more specialized type like the removed LSPIDEServices. All of the IDE services have been moved in #856 IIUC. :edit is here:
There was a problem hiding this comment.
Extending the test coverage before rewiring all of this is definitely a good idea.
There was a problem hiding this comment.
Btw, we already have a test for :edit:
There was a problem hiding this comment.
My concern is about the util::IDEServices::edit function. For which the evaluator casts the monitor to an IDEServices interface if it implements it.
So imagine a VS Code action that has as a side effect edit or perhaps applyDocumentsEdits. This can be both from a rascal evaluator, or a dsl (aka parametric) evaluator.
There was a problem hiding this comment.
I think this log from the failing test answers your question:
Warning: 1 07:42:29.631 [warning] [parametric-40] org.rascalmpl.vscode.lsp.parametric.InterpretedLanguageContributions[Pico] |unknown:///| : Could not execute FileSystemChange due to File system error: ENOPRO: No file system provider found for resource 'lsp
+file:/' data: "Unavailable" (@1774942949631 ms)
I'll investigate with @rodinaarssen whether we missed something in #856 or how we can solve this otherwise.
|
This was premature and not as unused as thought. |



While working on the design for #1010, I ran into some unused/obsolete classes.