Skip to content

Commit 765562c

Browse files
committed
Add option to specify for roslyn server the razor output directory path
- Adds devKitRazorOutputPath option - Allows RazorSourceGenerator to be picked up by tooling rather than SDK - Fixes WorkItem 1926900 (https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1926900)
1 parent dce7766 commit 765562c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lsptoolshost/roslynLanguageServer.ts

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

513+
args.push('--devKitRazorOutputPath', 'C:/CodeHub/vscode-csharp/.razor');
514+
513515
// Get the brokered service pipe name from C# Dev Kit (if installed).
514516
// We explicitly call this in the LSP server start action instead of awaiting it
515517
// in our activation because C# Dev Kit depends on C# activation completing.

0 commit comments

Comments
 (0)