-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[plug-in] Need to implement "files.associations" configuration property #4581
Comments
"files.associations" is documented as a VS Code preference here: https://code.visualstudio.com/docs/getstarted/settings |
I see two problems here:
|
In a first step, let's add the preference key and find out whether there is more work that we need to do. |
I believe it was not fixed and an incomplete solution was merged on master, i.e. there is a confusing preference now which does not change anything. This preference should affect editors in order a PR to be merged. @tolusha Please revert if you are not going to submit the rest today and reopen with complete solution. |
@akosyakov |
AFAIK step1 is done as announced. Also it's great to see that php VS Code extension could run as well. |
To quote myself (hehe):
So is there more to do, @tolusha? |
it is not a regression, true, just a new bug, before Theia does not provide this preference in UI anywhere, now it does, but does not support |
There should not be dependencies between editor and filesystem extensions. It could be a tricky part. I think you can go ahead and implement, and then we can refactor it a bit together during review to break a dependency if it appears. |
I'm not sure fixing this would introduce such a dependency. @tolusha could you explain how your fix would look? It's not obvious to me from looking at the references sources. |
@tsmaeder [1] https://github.com/Microsoft/vscode/blob/master/src/vs/base/common/mime.ts#L109 |
That points to VSCode. Where does this code live in Theia, @tolusha ? |
It should already be in Monaco. It would be nice introduce something like |
https://code.visualstudio.com/docs/languages/identifiers
Configuration example:
https://github.com/Microsoft/vscode/blob/master/src/vs/platform/files/common/files.ts#L681
It is impossible to install intelephense extension as Theia extension plugin because it requires a defined object (even an empty one is valid) to be returned when it requests for the
associations
preference in sectionfiles
, otherwise, the following code (that is invoked when it's being activated):results into the following exception and failure:
In order to run the
intelephense
in my local environment I've workarounded this issue with the following change, but for sure it can't be used in production:Reference issues:
eclipse-che/che#12796
eclipse-che/che#12797
#1106
#4716
The text was updated successfully, but these errors were encountered: