Update package.json

PowerShell Core, whose executable filename is `pwsh`, supports shebang lines on Unix platforms. This change would make VSCode properly recognize extension-less PowerShell Core scripts that have a shebang line.
This commit is contained in:
Michael Klement 2018-02-22 17:04:29 -05:00 committed by GitHub
parent 6fb3e81569
commit f198b6fdd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@
"id": "powershell",
"extensions": [ ".ps1", ".psm1", ".psd1", ".pssc", ".psrc" ],
"aliases": [ "PowerShell", "powershell", "ps", "ps1" ],
"firstLine": "^#!/.*\\bpwsh\\b",
"configuration": "./language-configuration.json"
}],
"grammars": [{
@ -25,4 +26,4 @@
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"
}
}
}