Skip to content

Use firstLine in package.json so syntax hignlights for #!/usr/bin/env python* and similar #3892

@cgahlon

Description

@cgahlon

Environment data

  • VS Code version: 1.27.2 (mac)
  • Extension version (available under the Extensions sidebar): 2018.12.1
  • OS and version: MacOS Sierra and Windows 10

Expected behaviour

Syntax highlight for python happens on extensionless files when #! /usr/bin/env python[0-9] or similar is the first line of a file.

Actual behaviour

Files without extensions are not syntax highlighted as python code.

Steps to reproduce:

Create file with '#!/usr/bin/env python' as the first line
run: code filenameWithoutExtension

Observe the lack of syntax highlighting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions