Skip to content

Commit 85ba58f

Browse files
committed
PR feedback
1 parent f5c325c commit 85ba58f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/coreclr-debug/activate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class DebugAdapterExecutableFactory implements vscode.DebugAdapterDescrip
179179
// use the executable specified in the package.json if it exists or determine it based on some other information (e.g. the session)
180180
if (!executable) {
181181
const command = path.join(common.getExtensionPath(), ".debugger", targetArchitecture, "vsdbg-ui" + CoreClrDebugUtil.getPlatformExeExtension());
182-
executable = new vscode.DebugAdapterExecutable(command, [], { env: { 'DOTNET_ROOT' : dotNetInfo.CliPath } });
182+
executable = new vscode.DebugAdapterExecutable(command, [], { env: { 'DOTNET_ROOT' : dotNetInfo.CliPath ? path.dirname(dotNetInfo.CliPath) : '' } });
183183
}
184184

185185
// make VS Code launch the DA executable

src/features/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function registerCommands(context: vscode.ExtensionContext, serve
5353
// Register command for generating tasks.json and launch.json assets.
5454
disposable.add(vscode.commands.registerCommand('dotnet.generateAssets', async (selectedIndex) => generateAssets(server, selectedIndex)));
5555

56-
disposable.add(vscode.commands.registerCommand('csharp.reportIssue', async () => reportIssue(vscode, eventStream, getDotnetInfo, platformInfo.isValidPlatformForMono(), optionProvider.GetLatestOptions(), monoResolver, dotnetResolver, )));
56+
disposable.add(vscode.commands.registerCommand('csharp.reportIssue', async () => reportIssue(vscode, eventStream, getDotnetInfo, platformInfo.isValidPlatformForMono(), optionProvider.GetLatestOptions(), monoResolver, dotnetResolver)));
5757

5858
disposable.add(vscode.commands.registerCommand('csharp.showDecompilationTerms', async () => showDecompilationTerms(context, server, optionProvider)));
5959

test/unitTests/Fakes/FakeOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ export function getEmptyOptions(): Options {
5757
/* excludePaths */null,
5858
/* maxProjectFileCountForDiagnosticAnalysis */null,
5959
/* testRunSettings */"",
60-
/* dotNetCliPaths */null);
60+
/* dotNetCliPaths */[]);
6161
}

0 commit comments

Comments
 (0)