Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

vscode-ruby does not auto-detect Ruby syntax from shebang #245

@mdub

Description

@mdub

Your environment

  • vscode-ruby version: 0.15.0
  • Ruby version: 2.4.2
  • VS Code version: 1.19.2
  • Operating System: OS X

Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue -- thank you !

Expected behavior

When opening a file with first line #! /usr/bin/env ruby, VS Code should automatically select "ruby" syntax (even if the file does not have an .rb extension).

Actual behavior

VS Code assumes the file is "Plain Text".

Steps to reproduce the problem

Create a file called "blah" with contents:

#! /usr/bin/env ruby
puts "Hello"

and open this in VS Code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions