|
73 | 73 | "http-proxy-agent": "2.1.0", |
74 | 74 | "https-proxy-agent": "2.2.1", |
75 | 75 | "jsonc-parser": "1.0.0", |
| 76 | + "microsoft.aspnetcore.razor.vscode": "https://download.visualstudio.microsoft.com/download/pr/273c49f3-fc9b-4140-bc65-b47b9ac61267/84c3319bc81e794e873cb931084cb6c8/microsoft.aspnetcore.razor.vscode-1.0.0-alpha1-20181003.5.tgz", |
76 | 77 | "mkdirp": "0.5.1", |
77 | 78 | "node-filter-async": "0.0.4", |
78 | 79 | "open": "*", |
|
84 | 85 | "tmp": "0.0.33", |
85 | 86 | "vscode-debugprotocol": "1.6.1", |
86 | 87 | "vscode-extension-telemetry": "0.0.15", |
87 | | - "yauzl": "2.9.1" |
| 88 | + "yauzl": "2.10.0" |
88 | 89 | }, |
89 | 90 | "devDependencies": { |
90 | 91 | "@types/archiver": "2.1.1", |
|
268 | 269 | "./vsdbg" |
269 | 270 | ], |
270 | 271 | "installTestPath": "./.debugger/vsdbg-ui" |
| 272 | + }, |
| 273 | + { |
| 274 | + "description": "Razor Language Server (Windows / x64)", |
| 275 | + "url": "https://download.visualstudio.microsoft.com/download/pr/273c49f3-fc9b-4140-bc65-b47b9ac61267/f14ac3d133fbd3ec940741c7e5ea270a/razorlanguageserver-win-x64-1.0.0-alpha1-20181003.5.zip", |
| 276 | + "installPath": ".razor", |
| 277 | + "platforms": [ |
| 278 | + "win32" |
| 279 | + ], |
| 280 | + "architectures": [ |
| 281 | + "x86_64" |
| 282 | + ] |
| 283 | + }, |
| 284 | + { |
| 285 | + "description": "Razor Language Server (Windows / x86)", |
| 286 | + "url": "https://download.visualstudio.microsoft.com/download/pr/273c49f3-fc9b-4140-bc65-b47b9ac61267/2650922e18baf2470fa1e7eb3b7fcd6a/razorlanguageserver-win-x86-1.0.0-alpha1-20181003.5.zip", |
| 287 | + "installPath": ".razor", |
| 288 | + "platforms": [ |
| 289 | + "win32" |
| 290 | + ], |
| 291 | + "architectures": [ |
| 292 | + "x86" |
| 293 | + ] |
| 294 | + }, |
| 295 | + { |
| 296 | + "description": "Razor Language Server (Linux / x64)", |
| 297 | + "url": "https://download.visualstudio.microsoft.com/download/pr/273c49f3-fc9b-4140-bc65-b47b9ac61267/90ec9047fa008298d85e3abc15866818/razorlanguageserver-linux-x64-1.0.0-alpha1-20181003.5.zip", |
| 298 | + "installPath": ".razor", |
| 299 | + "platforms": [ |
| 300 | + "linux" |
| 301 | + ], |
| 302 | + "architectures": [ |
| 303 | + "x86_64" |
| 304 | + ], |
| 305 | + "binaries": [ |
| 306 | + "./rzls" |
| 307 | + ] |
| 308 | + }, |
| 309 | + { |
| 310 | + "description": "Razor Language Server (macOS / x64)", |
| 311 | + "url": "https://download.visualstudio.microsoft.com/download/pr/273c49f3-fc9b-4140-bc65-b47b9ac61267/ef4d3d9d01cd5cffd41095de48e466a8/razorlanguageserver-osx-x64-1.0.0-alpha1-20181003.5.zip", |
| 312 | + "installPath": ".razor", |
| 313 | + "platforms": [ |
| 314 | + "darwin" |
| 315 | + ], |
| 316 | + "architectures": [ |
| 317 | + "x86_64" |
| 318 | + ], |
| 319 | + "binaries": [ |
| 320 | + "./rzls" |
| 321 | + ] |
271 | 322 | } |
272 | 323 | ], |
273 | 324 | "engines": { |
|
276 | 327 | "activationEvents": [ |
277 | 328 | "onDebug", |
278 | 329 | "onLanguage:csharp", |
| 330 | + "onLanguage:aspnetcorerazor", |
279 | 331 | "onCommand:o.restart", |
280 | 332 | "onCommand:o.pickProjectAndStart", |
281 | 333 | "onCommand:o.showOutput", |
|
602 | 654 | "type": "boolean", |
603 | 655 | "default": false, |
604 | 656 | "description": "Specifies whether notifications should be shown if OmniSharp encounters warnings or errors loading a project. Note that these warnings/errors are always emitted to the OmniSharp log" |
| 657 | + }, |
| 658 | + "razor.disabled": { |
| 659 | + "type": "boolean", |
| 660 | + "default": false, |
| 661 | + "description": "Specifies whether to disable Razor language features." |
| 662 | + }, |
| 663 | + "razor.languageServer.directory": { |
| 664 | + "type": [ |
| 665 | + "string", |
| 666 | + "null" |
| 667 | + ], |
| 668 | + "default": null, |
| 669 | + "description": "Overrides the path to the Razor Language Server directory." |
| 670 | + }, |
| 671 | + "razor.languageServer.debug": { |
| 672 | + "type": "boolean", |
| 673 | + "default": false, |
| 674 | + "description": "Specifies whether to wait for debug attach when launching the language server." |
| 675 | + }, |
| 676 | + "razor.languageServer.trace": { |
| 677 | + "type": "string", |
| 678 | + "default": "Off", |
| 679 | + "enum": [ |
| 680 | + "Off", |
| 681 | + "Messages", |
| 682 | + "Verbose" |
| 683 | + ], |
| 684 | + "enumDescriptions": [ |
| 685 | + "Does not log messages from Razor Language Server", |
| 686 | + "Logs only some messages from Razor Language Server", |
| 687 | + "Logs all messages from Razor Language Server" |
| 688 | + ], |
| 689 | + "description": "Specifies whether to output all messages [Verbose], some messages [Messages] or not at all [Off]." |
605 | 690 | } |
606 | 691 | } |
607 | 692 | }, |
|
660 | 745 | "command": "csharp.reportIssue", |
661 | 746 | "title": "Start authoring a new issue on GitHub", |
662 | 747 | "category": "CSharp" |
| 748 | + }, |
| 749 | + { |
| 750 | + "command": "extension.showRazorCSharpWindow", |
| 751 | + "title": "Show Razor CSharp", |
| 752 | + "category": "Razor" |
| 753 | + }, |
| 754 | + { |
| 755 | + "command": "extension.showRazorHtmlWindow", |
| 756 | + "title": "Show Razor Html", |
| 757 | + "category": "Razor" |
663 | 758 | } |
664 | 759 | ], |
665 | 760 | "keybindings": [ |
|
682 | 777 | "enableBreakpointsFor": { |
683 | 778 | "languageIds": [ |
684 | 779 | "csharp", |
685 | | - "razor" |
| 780 | + "razor", |
| 781 | + "aspnetcorerazor" |
686 | 782 | ] |
687 | 783 | }, |
688 | 784 | "variables": { |
|
1749 | 1845 | "enableBreakpointsFor": { |
1750 | 1846 | "languageIds": [ |
1751 | 1847 | "csharp", |
1752 | | - "razor" |
| 1848 | + "razor", |
| 1849 | + "aspnetcorerazor" |
1753 | 1850 | ] |
1754 | 1851 | }, |
1755 | 1852 | "variables": { |
|
2712 | 2809 | } |
2713 | 2810 | } |
2714 | 2811 | } |
2715 | | - ] |
| 2812 | + ], |
| 2813 | + "languages": [ |
| 2814 | + { |
| 2815 | + "id": "aspnetcorerazor", |
| 2816 | + "extensions": [ |
| 2817 | + ".cshtml" |
| 2818 | + ], |
| 2819 | + "mimetypes": [ |
| 2820 | + "text/x-cshtml" |
| 2821 | + ], |
| 2822 | + "configuration": "./src/razor/language-configuration.json" |
| 2823 | + } |
| 2824 | + ], |
| 2825 | + "grammars": [ |
| 2826 | + { |
| 2827 | + "language": "aspnetcorerazor", |
| 2828 | + "scopeName": "text.aspnetcorerazor", |
| 2829 | + "path": "./src/razor/syntaxes/aspnetcorerazor.tmLanguage.json" |
| 2830 | + } |
| 2831 | + ], |
| 2832 | + "menus": { |
| 2833 | + "editor/title": [ |
| 2834 | + { |
| 2835 | + "command": "extension.showRazorCSharpWindow", |
| 2836 | + "when": "resourceLangId == aspnetcorerazor" |
| 2837 | + }, |
| 2838 | + { |
| 2839 | + "command": "extension.showRazorHtmlWindow", |
| 2840 | + "when": "resourceLangId == aspnetcorerazor" |
| 2841 | + } |
| 2842 | + ] |
| 2843 | + } |
2716 | 2844 | } |
2717 | 2845 | } |
0 commit comments