Skip to content
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

Not detecting language for PHP files using shebang #26580

Closed
mappu opened this issue May 13, 2017 · 0 comments · Fixed by #26581
Closed

Not detecting language for PHP files using shebang #26580

mappu opened this issue May 13, 2017 · 0 comments · Fixed by #26581
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug languages-basic Basic language support issues verified Verification succeeded
Milestone

Comments

@mappu
Copy link
Contributor

mappu commented May 13, 2017

  • VSCode Version: 1.12.1
  • OS Version: debian stretch

Steps to Reproduce:

  1. Open file with #!/usr/bin/php shebang header but not .php extension
  2. File is not detected as PHP code, instead uses 'Plain Text' highlighter

It should be easy to fix in vscode/extensions/php/package.json adding a firstLine property, as is done for e.g. Python.

mappu added a commit to mappu/vscode that referenced this issue May 13, 2017
@mjbvz mjbvz self-assigned this May 13, 2017
@mjbvz mjbvz added the bug Issue identified by VS Code Team member as probable bug label May 13, 2017
@mjbvz mjbvz added this to the May 2017 milestone May 13, 2017
@mjbvz mjbvz added the languages-basic Basic language support issues label May 13, 2017
marckassay pushed a commit to marckassay/vscode that referenced this issue May 15, 2017
@roblourens roblourens added the verified Verification succeeded label Jun 1, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug languages-basic Basic language support issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants