During my tests I have found that when I add file.associations to the settings.json file, the PHP language features are gone and the syntax highlighting stops working, the association with other extensions (.inc) to the PHP language doesn't work too.
docker pull theiaide/theia-phpdocker run -it --init -p 3000:3000 theiaide/theia-php"vscode-builtin-php": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/php-1.39.1-prel.vsix",
"vscode-builtin-php-language-features": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/php-language-features-1.39.1-prel.vsix",
"vscode-php-intellisense": "https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.5/php-intellisense.vsix",
"vscode-php-debug": "https://github.com/felixfbecker/vscode-php-debug/releases/download/v1.13.0/php-debug.vsix"
file.associations preference (save):{
"files.associations": {
"*.php": "php",
"*.gitignore": "php"
}
}
Additional Information
Working without file.associations:

Not working with file.associations:

I attempted to reproduce the problem in this repo by including the extensions
(taken from theia-php):
"vscode-builtin-php": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/php-1.39.1-prel.vsix",
"vscode-builtin-php-language-features": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/php-language-features-1.39.1-prel.vsix",
"vscode-php-intellisense": "https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.5/php-intellisense.vsix",
"vscode-php-debug": "https://github.com/felixfbecker/vscode-php-debug/releases/download/v1.13.0/php-debug.vsix"
I was unable to reproduce the problem, and adding associations to php also worked correctly:
{
"files.associations": {
"*.php": "php",
"*.gitignore": "php"
}
}
I'll need to verify if the behavior in the image is also consistent.

@joazvsoares I am unable to reproduce the issue on the docker image theia-php as well.
@vince-fugnitto it only stops working for me after I change the preferences and reload the page, could you try that?
@vince-fugnitto it only stops working for me after I changed the preferences and reloaded the page, could you try that?
I see the issue now (after reloading), I'll update the issue to be a bit clearer :)
Sorry, I should have mentioned that step in the description! Thank you!
Hi @akosyakov @vince-fugnitto
I can try to help on this one if I get some hints on what could be causing the issue, is there any guess?
trying to investigate...
@vince-fugnitto btw why we don't have vscode-builtin-php by default in our example applications, we should have as much as possible, do you know whether we excluded something else?
I think it is caused by https://github.com/eclipse-theia/theia/issues/5017, i.e. on reload:
.gitignore is opened as plain text first.gitingore is not covered for phpI will send a PR. It is a bit tricky since we have to trigger internal Monaco event.