Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 (#15681)

* Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898

* Fixes and cleanup

* Distro

* Fix hygiene yarn

* delete no yarn lock changes file

* Fix hygiene

* Fix layer check

* Fix CI

* Skip lib checks

* Remove tests deleted in vs code

* Fix tests

* Distro

* Fix tests and add removed extension point

* Skip failing notebook tests for now

* Disable broken tests and cleanup build folder

* Update yarn.lock and fix smoke tests

* Bump sqlite

* fix contributed actions and file spacing

* Fix user data path

* Update yarn.locks

Co-authored-by: ADS Merger <karlb@microsoft.com>
This commit is contained in:
Charles Gagnon
2021-06-17 08:17:11 -07:00
committed by GitHub
parent fdcb97c7f7
commit 3cb2f552a6
2582 changed files with 124827 additions and 87099 deletions

View File

@@ -6,7 +6,7 @@
"git": {
"name": "PowerShell/EditorSyntax",
"repositoryUrl": "https://github.com/PowerShell/EditorSyntax",
"commitHash": "d10ae29c0d3ceb248172c383a159ae43b9ccfb4d"
"commitHash": "c150c15cca30cafd2159e3f53514f93ccf4c5649"
}
},
"license": "MIT",

View File

@@ -44,7 +44,7 @@
]
},
"scripts": {
"update-grammar": "node ../node_modules/.bin/vscode-grammar-updater PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"
},
"repository": {
"type": "git",

View File

@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/PowerShell/EditorSyntax/commit/d10ae29c0d3ceb248172c383a159ae43b9ccfb4d",
"version": "https://github.com/PowerShell/EditorSyntax/commit/c150c15cca30cafd2159e3f53514f93ccf4c5649",
"name": "PowerShell",
"scopeName": "source.powershell",
"patterns": [
@@ -42,7 +42,7 @@
"include": "#variable"
},
{
"include": "#interpolatedStringContent"
"include": "#subexpression"
},
{
"include": "#function"
@@ -70,13 +70,14 @@
"include": "#doubleQuotedStringEscapes"
},
{
"begin": "(?<!')'",
"begin": "['\\x{2018}-\\x{201B}]",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.powershell"
}
},
"end": "'(?!')",
"end": "['\\x{2018}-\\x{201B}]",
"applyEndPatternLast": true,
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.powershell"
@@ -85,14 +86,24 @@
"name": "string.quoted.single.powershell",
"patterns": [
{
"match": "''",
"match": "['\\x{2018}-\\x{201B}]{2}",
"name": "constant.character.escape.powershell"
}
]
},
{
"begin": "\\@\"(?=$)",
"end": "^\"@",
"begin": "(@[\"\\x{201C}-\\x{201E}])\\s*$",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.powershell"
}
},
"end": "^[\"\\x{201C}-\\x{201E}]@",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.powershell"
}
},
"name": "string.quoted.double.heredoc.powershell",
"patterns": [
{
@@ -107,15 +118,19 @@
]
},
{
"begin": "\\@'(?=$)",
"end": "^'@",
"name": "string.quoted.single.heredoc.powershell",
"patterns": [
{
"match": "''",
"name": "constant.character.escape.powershell"
"begin": "(@['\\x{2018}-\\x{201B}])\\s*$",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.powershell"
}
]
},
"end": "^['\\x{2018}-\\x{201B}]@",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.powershell"
}
},
"name": "string.quoted.single.heredoc.powershell"
},
{
"include": "#numericConstant"
@@ -144,12 +159,15 @@
]
},
{
"begin": "(\\$)(\\()",
"begin": "((\\$))(\\()",
"beginCaptures": {
"1": {
"name": "punctuation.definition.variable.powershell"
"name": "keyword.other.substatement.powershell"
},
"2": {
"name": "punctuation.definition.subexpression.powershell"
},
"3": {
"name": "punctuation.section.group.begin.powershell"
}
},
@@ -256,9 +274,9 @@
],
"repository": {
"commentLine": {
"begin": "(?<![`\\\\-])#",
"begin": "(?<![`\\\\-])(#)#*",
"captures": {
"0": {
"1": {
"name": "punctuation.definition.comment.powershell"
}
},
@@ -363,7 +381,8 @@
"name": "keyword.operator.documentation.powershell"
}
},
"match": "^(?i:(?:\\s?|#)+(\\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS))",
"comment": "these embedded doc keywords do not support arguments, must be the only thing on the line",
"match": "(?:^|\\G)(?i:\\s*(\\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\\s*$",
"name": "comment.documentation.embedded.powershell"
},
{
@@ -378,7 +397,8 @@
"name": "keyword.operator.documentation.powershell"
}
},
"match": "(?i:\\s?(\\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP)\\s+([a-z0-9-_]+))",
"comment": "these embedded doc keywords require arguments though the type required may be inconsistent, they may not all be able to use the same argument match",
"match": "(?:^|\\G)(?i:\\s*(\\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\\s+(.+?)\\s*$",
"name": "comment.documentation.embedded.powershell"
}
]
@@ -386,15 +406,11 @@
"doubleQuotedStringEscapes": {
"patterns": [
{
"match": "`[`0abefnrtv\"'$]",
"match": "`[`0abefnrtv'\"\\x{2018}-\\x{201E}$]",
"name": "constant.character.escape.powershell"
},
{
"include": "#unicodeEscape"
},
{
"match": "\"\"",
"name": "constant.character.escape.powershell"
}
]
},
@@ -434,58 +450,59 @@
}
]
},
"interpolatedStringContent": {
"subexpression": {
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "punctuation.section.group.begin.powershell"
}
},
"contentName": "interpolated.simple.source.powershell",
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.group.end.powershell"
}
},
"name": "meta.group.simple.subexpression.powershell",
"patterns": [
{
"include": "$self"
},
{
"include": "#interpolation"
},
{
"include": "#interpolatedStringContent"
}
]
},
"interpolation": {
"begin": "(\\$)(\\()",
"begin": "(((\\$)))((\\())",
"beginCaptures": {
"1": {
"name": "punctuation.definition.variable.powershell"
"name": "keyword.other.substatement.powershell"
},
"2": {
"name": "punctuation.definition.substatement.powershell"
},
"3": {
"name": "punctuation.section.embedded.substatement.begin.powershell"
},
"4": {
"name": "punctuation.section.group.begin.powershell"
},
"5": {
"name": "punctuation.section.embedded.substatement.begin.powershell"
}
},
"contentName": "interpolated.complex.source.powershell",
"end": "\\)",
"end": "(\\))",
"endCaptures": {
"0": {
"name": "punctuation.section.group.end.powershell"
},
"1": {
"name": "punctuation.section.embedded.substatement.end.powershell"
}
},
"name": "meta.embedded.substatement.powershell",
"patterns": [
{
"include": "$self"
},
{
"include": "#interpolation"
},
{
"include": "#interpolatedStringContent"
}
]
},
@@ -779,7 +796,7 @@
"name": "meta.requires.powershell",
"patterns": [
{
"match": "\\-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version)",
"match": "\\-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)",
"name": "keyword.other.powershell"
},
{
@@ -971,13 +988,14 @@
]
},
"doubleQuotedString": {
"begin": "(?<!(?<!`)\")\"",
"begin": "[\"\\x{201C}-\\x{201E}]",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.powershell"
}
},
"end": "\"(?!\")",
"end": "[\"\\x{201C}-\\x{201E}]",
"applyEndPatternLast": true,
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.powershell"
@@ -994,6 +1012,10 @@
{
"include": "#doubleQuotedStringEscapes"
},
{
"match": "[\"\\x{201C}-\\x{201E}]{2}",
"name": "constant.character.escape.powershell"
},
{
"include": "#interpolation"
},