Skip to content

Commit 5c44344

Browse files
author
Ravi Chande
authored
Merge pull request #2569 from rchande/revertRazorPR
Revert "Merge pull request #2554 from SteveSandersonMS/stevesa/initia…
2 parents 8641dd4 + b45e819 commit 5c44344

File tree

9 files changed

+15
-292
lines changed

9 files changed

+15
-292
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ out
55
.omnisharp-*/
66
.debugger
77
.vscode-test
8-
.razor
98

109
install.*
1110

package-lock.json

Lines changed: 7 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"http-proxy-agent": "2.1.0",
7474
"https-proxy-agent": "2.2.1",
7575
"jsonc-parser": "1.0.0",
76-
"microsoft.aspnetcore.razor.vscode": "https://download.visualstudio.microsoft.com/download/pr/d426e899-f31c-4405-81ca-1d17254c3721/ce32e93d4d2f9c165fde02c82dc408ad/microsoft.aspnetcore.razor.vscode-1.0.0-alpha1-20180928.2.tgz",
7776
"mkdirp": "0.5.1",
7877
"node-filter-async": "0.0.4",
7978
"open": "*",
@@ -85,7 +84,7 @@
8584
"tmp": "0.0.33",
8685
"vscode-debugprotocol": "1.6.1",
8786
"vscode-extension-telemetry": "0.0.15",
88-
"yauzl": "2.10.0"
87+
"yauzl": "2.9.1"
8988
},
9089
"devDependencies": {
9190
"@types/archiver": "2.1.1",
@@ -269,56 +268,6 @@
269268
"./vsdbg"
270269
],
271270
"installTestPath": "./.debugger/vsdbg-ui"
272-
},
273-
{
274-
"description": "Razor Language Server (Windows / x64)",
275-
"url": "https://download.visualstudio.microsoft.com/download/pr/d426e899-f31c-4405-81ca-1d17254c3721/d468ed9ab48f88c032d9eed7a53c8ef4/razorlanguageserver-win-x64-1.0.0-alpha1-20180928.2.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/d426e899-f31c-4405-81ca-1d17254c3721/99eb2f24eb073c70d5a8082bfbf5a965/razorlanguageserver-win-x86-1.0.0-alpha1-20180928.2.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/d426e899-f31c-4405-81ca-1d17254c3721/775ccdd8f99150fe3175359d54e2bb20/razorlanguageserver-linux-x64-1.0.0-alpha1-20180928.2.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/d426e899-f31c-4405-81ca-1d17254c3721/26c0909b773db807d0578c0a0eefb225/razorlanguageserver-osx-x64-1.0.0-alpha1-20180928.2.zip",
312-
"installPath": ".razor",
313-
"platforms": [
314-
"darwin"
315-
],
316-
"architectures": [
317-
"x86_64"
318-
],
319-
"binaries": [
320-
"./rzls"
321-
]
322271
}
323272
],
324273
"engines": {
@@ -327,7 +276,6 @@
327276
"activationEvents": [
328277
"onDebug",
329278
"onLanguage:csharp",
330-
"onLanguage:aspnetcorerazor",
331279
"onCommand:o.restart",
332280
"onCommand:o.pickProjectAndStart",
333281
"onCommand:o.showOutput",
@@ -654,39 +602,6 @@
654602
"type": "boolean",
655603
"default": false,
656604
"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]."
690605
}
691606
}
692607
},
@@ -745,16 +660,6 @@
745660
"command": "csharp.reportIssue",
746661
"title": "Start authoring a new issue on GitHub",
747662
"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"
758663
}
759664
],
760665
"keybindings": [
@@ -777,8 +682,7 @@
777682
"enableBreakpointsFor": {
778683
"languageIds": [
779684
"csharp",
780-
"razor",
781-
"aspnetcorerazor"
685+
"razor"
782686
]
783687
},
784688
"variables": {
@@ -1845,8 +1749,7 @@
18451749
"enableBreakpointsFor": {
18461750
"languageIds": [
18471751
"csharp",
1848-
"razor",
1849-
"aspnetcorerazor"
1752+
"razor"
18501753
]
18511754
},
18521755
"variables": {
@@ -2809,37 +2712,6 @@
28092712
}
28102713
}
28112714
}
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-
}
2715+
]
28442716
}
28452717
}

src/main.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import { ShowOmniSharpConfigChangePrompt } from './observers/OptionChangeObserve
3737
import createOptionStream from './observables/CreateOptionStream';
3838
import { CSharpExtensionId } from './constants/CSharpExtensionId';
3939
import { OpenURLObserver } from './observers/OpenURLObserver';
40-
import { activateRazorExtension } from './razor/razor';
4140

4241
export async function activate(context: vscode.ExtensionContext): Promise<CSharpExtensionExports> {
4342

@@ -135,10 +134,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<CSharp
135134
coreClrDebugPromise = coreclrdebug.activate(extension, context, platformInfo, eventStream);
136135
}
137136

138-
if (!optionProvider.GetLatestOptions().razorDisabled) {
139-
await activateRazorExtension(context, extension.extensionPath, eventStream);
140-
}
141-
142137
return {
143138
initializationFinished: async () => {
144139
let omniSharp = await omniSharpPromise;

src/omnisharp/options.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ export class Options {
2323
public minFindSymbolsFilterLength: number,
2424
public maxFindSymbolsItems: number,
2525
public defaultLaunchSolution?: string,
26-
public monoPath?: string,
27-
public razorDisabled?: boolean) { }
26+
public monoPath?: string) { }
2827

2928

3029
public static Read(vscode: vscode): Options {
@@ -37,7 +36,6 @@ export class Options {
3736

3837
const omnisharpConfig = vscode.workspace.getConfiguration('omnisharp');
3938
const csharpConfig = vscode.workspace.getConfiguration('csharp');
40-
const razorConfig = vscode.workspace.getConfiguration('razor');
4139

4240
const path = Options.readPathOption(csharpConfig, omnisharpConfig);
4341
const useGlobalMono = Options.readUseGlobalMonoOption(omnisharpConfig, csharpConfig);
@@ -70,8 +68,6 @@ export class Options {
7068
const minFindSymbolsFilterLength = omnisharpConfig.get<number>('minFindSymbolsFilterLength', 0);
7169
const maxFindSymbolsItems = omnisharpConfig.get<number>('maxFindSymbolsItems', 1000); // The limit is applied only when this setting is set to a number greater than zero
7270

73-
const razorDisabled = !!razorConfig && razorConfig.get<boolean>('disabled', false);
74-
7571
return new Options(
7672
path,
7773
useGlobalMono,
@@ -90,7 +86,6 @@ export class Options {
9086
maxFindSymbolsItems,
9187
defaultLaunchSolution,
9288
monoPath,
93-
razorDisabled
9489
);
9590
}
9691

0 commit comments

Comments
 (0)