Skip to content

Commit 4f2b5a0

Browse files
authored
Merge pull request #6960 from dotnet/dev/maryamariyan/sourcegen-bkpoint
Add option to specify for roslyn server the razor output directory path
2 parents c33812c + 1c89668 commit 4f2b5a0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
},
3939
"defaults": {
40-
"roslyn": "4.10.0-3.24168.7",
40+
"roslyn": "4.10.0-3.24168.8",
4141
"omniSharp": "1.39.11",
4242
"razor": "7.0.0-preview.24175.3",
4343
"razorOmnisharp": "7.0.0-preview.23363.1",
@@ -5657,4 +5657,4 @@
56575657
}
56585658
]
56595659
}
5660-
}
5660+
}

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,11 @@ export class RoslynLanguageServer {
510510
args.push('--extension', extensionPath);
511511
}
512512

513+
args.push(
514+
'--razorSourceGenerator',
515+
path.join(context.extension.extensionPath, '.razor', 'Microsoft.CodeAnalysis.Razor.Compiler.dll')
516+
);
517+
513518
// Get the brokered service pipe name from C# Dev Kit (if installed).
514519
// We explicitly call this in the LSP server start action instead of awaiting it
515520
// in our activation because C# Dev Kit depends on C# activation completing.

0 commit comments

Comments
 (0)