mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
![Andy Schwartzmeyer](/assets/img/avatar_default.png)
These two snippets conflict with the PowerShell comment syntax (`<#`), and since snippet suggestions are enabled by default, it means it's not possible to type `<#` followed by an enter, which is very often desired. The enter unfortunately chooses to insert an entirely unhelpful `#endregion` snippet.
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"name": "powershell",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"vscode": "*"
|
|
},
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "powershell",
|
|
"extensions": [
|
|
".ps1",
|
|
".psm1",
|
|
".psd1",
|
|
".pssc",
|
|
".psrc"
|
|
],
|
|
"aliases": [
|
|
"PowerShell",
|
|
"powershell",
|
|
"ps",
|
|
"ps1"
|
|
],
|
|
"firstLine": "^#!\\s*/.*\\bpwsh\\b",
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "powershell",
|
|
"scopeName": "source.powershell",
|
|
"path": "./syntaxes/powershell.tmLanguage.json"
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode.git"
|
|
}
|
|
}
|