-
Notifications
You must be signed in to change notification settings - Fork 13
Scope DocumentSelector with baseUri #303
Conversation
3f08bbb
to
3015548
Compare
Am I correct that publishing this will break all current instances? |
No, it should not. Current instances will ignore the |
But we’re no longer setting pattern so won’t no providers be registered correctly on old instances? |
But the |
(please sanity check what I'm saying, it's late 😅 ) |
Go to bed I’ll test it later tonight and merge |
I ran this and it works neither with DotCom (#8858 has been merged by now and the site version has a rev after that merge commit) nor with a private instance before the merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs more manual testing.
I'm very confused. I thought the Go issue were fixed by #292 (the revert), and we only had double hovers now? |
I found the issue, fix in https://github.com/sourcegraph/sourcegraph/pull/8877. The issue was in the extension host, i.e. the changes in this PR are correct. Verified that codeintel works: |
This is a proper fix for both https://github.com/sourcegraph/sourcegraph/issues/8602 and broken codeintel for root files (Slack thread).
Codeintel extensions need to be able to scope providers to workspace roots. Doing so in
pattern
does not work, becauseminimatch
is not built for working with URIs (in particular it broke for files in the root).Instead, uses the new
baseUri
introduced in https://github.com/sourcegraph/sourcegraph/pull/8858.Closes #295.
Fixes sourcegraph/sourcegraph#8602.