-
Notifications
You must be signed in to change notification settings - Fork 30k
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
String DocumentFilter should only match scheme 'file' and 'untitled' #21886
Comments
@egamma FYI. |
@jrieken will do. Thanks! |
@jrieken This breaks the interactive playground. Adding |
Please share more details about your problem? Are you registering your document as |
The embedded editors use models with |
Yes, that is the new design. It's not enough for the languages to just register with |
fyi @dbaeumer |
The consequences of the old design was that the |
Chatted with @jrieken, he suggests to add |
We will revert the changes for March to give us more time for this |
Moving to April for further discussion |
Another way to look at it is that the Playground document is at odds with the layering, because it comes with languages that are not in the core, but in extensions. Longer term we could move the document out of the core, while keeping the Playground URI scheme and editor as language-agnostic support for playgrounds in the core. That would allow for special-casing the Playground scheme in the core similarly to |
IMO we should not have any playground specific URI knowledge in the core. A Playground should be contributable by an extension without it being necessary to modify the core. I know that due to limitation we need to, but we should push hard to improve our system to not require thus. |
Agree
Disagree. The extension API is there to enrich the core development cycle not these scenarios. IMO the playground should use the standalone editor with its language service implementation. It's problematic that playground samples bleed into the extension host and causing all kinds issues, like markers we don't really want. |
This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding! |
Revisiting this for April... |
… a 'generic' document selector, #21886
Idea is to educate because it's hard to make the right (breaking) decision for every extension. As a first step, I have added an info-message that gets logged once for extensions that are under development and that use a lax-selector. Next step is a page with more documentation/information that we can link to. |
@gregvanl Can you please review the text here: https://go.microsoft.com/fwlink/?linkid=872305. We should also find a place in the docs for this. /cc @egamma |
Document filters that are only string based should only match scheme file and untitled. So if an extension registers a feature provider for 'bat' for example the provider should only be invoked for 'file' and 'untitled' scheme and not for example for 'git' scheme.
The text was updated successfully, but these errors were encountered: