Skip to content

Commit ccba4e6

Browse files
authored
Merge pull request microsoft#44239 from mklement0/patch-2
Update package.json to support PowerShell Core shebang lines.
2 parents efd3ac4 + f198b6f commit ccba4e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/powershell/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"id": "powershell",
1111
"extensions": [ ".ps1", ".psm1", ".psd1", ".pssc", ".psrc" ],
1212
"aliases": [ "PowerShell", "powershell", "ps", "ps1" ],
13+
"firstLine": "^#!/.*\\bpwsh\\b",
1314
"configuration": "./language-configuration.json"
1415
}],
1516
"grammars": [{
@@ -25,4 +26,4 @@
2526
"scripts": {
2627
"update-grammar": "node ../../build/npm/update-grammar.js PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"
2728
}
28-
}
29+
}

0 commit comments

Comments
 (0)