Conversation
…IResolverRegistry
… a port during start-up
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2641 +/- ##
========================================
- Coverage 46% 46% -1%
+ Complexity 6671 6670 -1
========================================
Files 795 801 +6
Lines 65913 66293 +380
Branches 9883 9907 +24
========================================
+ Hits 30705 30709 +4
- Misses 32826 33204 +378
+ Partials 2382 2380 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
toinehartman
left a comment
There was a problem hiding this comment.
All of this (and the companion PR usethesource/rascal-language-servers#967) look like a nice unification and clean-up of interfaces.
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
DavyLandman
left a comment
There was a problem hiding this comment.
It's making progress, but it's not there yet.
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
| return this.callbacks.isEmpty(); | ||
| } | ||
|
|
||
| public void publish(ISourceLocationWatcher.ISourceLocationChanged changed) { |
There was a problem hiding this comment.
this method should be called somewhere from the jsonrpc side?
| this.externalRegistry = externalRegistry; | ||
| watchers.setExternalRegistry(externalRegistry); | ||
| } | ||
|
|
There was a problem hiding this comment.
what if this is called after loadServices then it will never be seen. The rest of this URIRegistryResolver has a lot of logic to make sure it loads resolvers correctly, no matter which path is taken.
I think we should consider something like an environment setting or something like that to make sure we don't get into messy initialization bugs.
…IResolverRegistry can configure itself properly
…owards the Rascal side
src/org/rascalmpl/uri/remote/RemoteExternalResolverRegistry.java
Outdated
Show resolved
Hide resolved
…ns with their path only
Co-authored-by: Toine Hartman <toinehartman@users.noreply.github.com>
…s' into unify-vfs-interfaces
…ically tries to reconnect to the remote
|



Closes #2701