-
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
files.associations is breaking PHP features and probably affecting other languages too #7791
Comments
I attempted to reproduce the problem in this repo by including the extensions "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 {
"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 |
@vince-fugnitto it only stops working for me after I change the preferences and reload 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 |
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 #5017, i.e. on reload:
I will send a PR. It is a bit tricky since we have to trigger internal Monaco event. |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Bug Description:
During my tests I have found that when I add
file.associations
to thesettings.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.Steps to Reproduce:
docker pull theiaide/theia-php
docker run -it --init -p 3000:3000 theiaide/theia-php
file.associations
preference (save):Additional Information
Working without file.associations:
Not working with file.associations:
The text was updated successfully, but these errors were encountered: