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

View File

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