Skip to content

Commit f0013a2

Browse files
committed
Fix running the extension in debug mode on a Windows machine
1 parent c5716da commit f0013a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/extension.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export function activate(context: ExtensionContext) {
2626
transport: TransportKind.stdio
2727
}
2828
if (debugMode) {
29+
const commandName = process.platform === 'win32' ? 'dotnet.exe' : 'dotnet';
30+
2931
serverOptions = {
30-
command: findInPath('dotnet'),
32+
command: findInPath(commandName),
3133
args: ['run', '--project', 'src/FSharpLanguageServer'],
3234
transport: TransportKind.stdio,
3335
options: { cwd: context.extensionPath }

0 commit comments

Comments
 (0)