Use dotnet/razor-tooling repo for razor grammar (#163898)

This commit is contained in:
Alex Ross 2022-10-18 01:26:25 +02:00 committed by GitHub
parent bad3dcca69
commit 42d99283fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -11,8 +11,8 @@ function patchGrammar(grammar) {
return grammar;
}
const razorGrammarRepo = 'OmniSharp/omnisharp-vscode';
const grammarPath = 'src/razor/syntaxes/aspnetcorerazor.tmLanguage.json';
vscodeGrammarUpdater.update(razorGrammarRepo, grammarPath, './syntaxes/cshtml.tmLanguage.json', grammar => patchGrammar(grammar));
const razorGrammarRepo = 'dotnet/razor-tooling';
const grammarPath = 'src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.Extension/syntaxes/aspnetcorerazor.tmLanguage.json';
vscodeGrammarUpdater.update(razorGrammarRepo, grammarPath, './syntaxes/cshtml.tmLanguage.json', grammar => patchGrammar(grammar), 'main');

View file

@ -4,13 +4,13 @@
"component": {
"type": "git",
"git": {
"name": "OmniSharp/omnisharp-vscode",
"repositoryUrl": "https://github.com/OmniSharp/omnisharp-vscode",
"commitHash": "85d6eeea14e9aef51934697de78c77fbddbf1aa8"
"name": "dotnet/razor-tooling",
"repositoryUrl": "https://github.com/dotnet/razor-tooling",
"commitHash": "558b502fbef5ecdf386ccd6d47b0b40b5f8800a7"
}
},
"license": "MIT",
"version": "1.24.0",
"version": "1.0.0",
"licenseDetail": [
"MIT License",
"",

View file

@ -1,10 +1,10 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/razor/syntaxes/aspnetcorerazor.tmLanguage.json",
"This file has been converted from https://github.com/dotnet/razor-tooling/blob/master/src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.Extension/syntaxes/aspnetcorerazor.tmLanguage.json",
"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/OmniSharp/omnisharp-vscode/commit/85d6eeea14e9aef51934697de78c77fbddbf1aa8",
"version": "https://github.com/dotnet/razor-tooling/commit/558b502fbef5ecdf386ccd6d47b0b40b5f8800a7",
"name": "ASP.NET Razor",
"scopeName": "text.html.cshtml",
"patterns": [