Remove PHP File Associations
Closed this issue · 2 comments
chaoticnull commented
I have to disable this extension when working on a PHP project so that my PHP extension functions correctly. Not huge but kinda annoying, especially as hack/hhvm no longer supports PHP.
PranayAgarwal commented
This isn't going to work because a lot of Hack codebases (including at Slack) have a large number of .php
files (.hack
as an extension was added relatively recently). A good workaround is to add a file association in your workspace config in the PHP-only project. This way the files will be detected as PHP and picked up by the PHP extension(s).
"files.associations": {
"*.php": "php"
},
chaoticnull commented
Thanks for the workaround Pranay, I'll give that a try.