Restore extensions in core (#114921)

* bring back grammar extensions

* fix hygiene

* Revert "pull themes from the marketplace"

This reverts commit 0738f76dac.
This commit is contained in:
João Moreno
2021-01-25 17:07:56 +01:00
committed by GitHub
parent 5fcd9f7484
commit 3b03189afa
363 changed files with 130709 additions and 766 deletions

View File

@@ -0,0 +1,2 @@
test/**
cgmanifest.json

View File

@@ -0,0 +1,17 @@
{
"registrations": [
{
"component": {
"type": "git",
"git": {
"name": "PowerShell/EditorSyntax",
"repositoryUrl": "https://github.com/PowerShell/EditorSyntax",
"commitHash": "d10ae29c0d3ceb248172c383a159ae43b9ccfb4d"
}
},
"license": "MIT",
"version": "1.0.0"
}
],
"version": 1
}

View File

@@ -0,0 +1,34 @@
{
"comments": {
"lineComment": "#",
"blockComment": [ "<#", "#>" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "@'", "close": "\n'@", "notIn": ["string", "comment"]},
{ "open": "@\"", "close": "\n\"@", "notIn": ["string", "comment"]},
{ "open": "\"", "close": "\"", "notIn": ["string"]},
{ "open": "'", "close": "'", "notIn": ["string", "comment"]},
["<#", "#>"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"folding": {
"markers": {
"start": "^\\s*#[rR]egion\\b",
"end": "^\\s*#[eE]nd[rR]egion\\b"
}
}
}

View File

@@ -0,0 +1,30 @@
{
"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"
}],
"snippets": [{
"language": "powershell",
"path": "./snippets/powershell.code-snippets"
}]
},
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"
}
}

View File

@@ -0,0 +1,4 @@
{
"displayName": "Powershell Language Basics",
"description": "Provides snippets, syntax highlighting, bracket matching and folding in Powershell files."
}

View File

@@ -0,0 +1,16 @@
{
"Region Start": {
"prefix": "#region",
"body": [
"#region $0"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"#endregion"
],
"description": "Folding Region End"
}
}

File diff suppressed because it is too large Load Diff