Skip to content

Really screwing up Bash files #13

@tibmeister

Description

@tibmeister
  • VSCode Version: 1.28.2 (User Setup)
  • OS Version: Windows 10 (1803)

Steps to Reproduce:

  1. Create new file and set type to Shell Script
  2. Enter the following text
    `#!/bin/bash

#Set any Commandline Arguments passed
for ARGUMENT in "$@"
do
KEY=$(echo $ARGUMENT | cut -f1 -d=)
VALUE=$(echo $ARGUMENT | cut -f2 -d=)

case "$KEY" in
        CertThumbPrint)
           CertThumbPrint=${VALUE} ;;
        UserName)
           UserName=${VALUE} ;;
        Password)
           Password=${VALUE} ;;
        RemoteServer)
            RemoteServer=${VALUE} ;;
        Port)
           Port=${VALUE} ;;
        Depot)
           Depot=${VALUE} ;;
        Version)
           Version=${VALUE} ;;
    * )
esac

done`

  1. Save the file with .sh extension

  2. Press Enter on ANY line and observe the change, which what I see is this

`# !/bin/bash

#Set any Commandline Arguments passed
for ARGUMENT in "$@"
do
KEY = $(echo $ARGUMENT | cut - f1 - d = )
VALUE = $(echo $ARGUMENT | cut - f2 - d = )

case "$KEY" in
        CertThumbPrint)
           CertThumbPrint = $
                                            {VALUE}; ; 
        UserName)
           UserName = $
                                            {VALUE}; ; 
        Password)
           Password = $
                                            {VALUE}; ; 
        RemoteServer)
            RemoteServer = $
                                            {VALUE}; ; 
        Port)
           Port = $
                                            {VALUE}; ; 
        Depot)
           Depot = $
                                            {VALUE}; ; 
        Version)
           Version = $
                                            {VALUE}; ;  * )
esac

done

`

I have been able to isolate it to this one extension by painstakingly going one by one through each and every extension until this was the one that enabling it caused the issue, disabling it fixed the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions