File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/lsptoolshost/dotnetRuntime Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 55
66// Contains APIs defined by the vscode-dotnet-runtime extension
77
8+ /**
9+ * https://github.com/dotnet/vscode-dotnet-runtime/blob/main/vscode-dotnet-runtime-library/src/IDotnetAcquireResult.ts
10+ */
811export interface IDotnetAcquireResult {
912 dotnetPath : string ;
1013}
1114
15+ /**
16+ * https://github.com/dotnet/vscode-dotnet-runtime/blob/main/vscode-dotnet-runtime-library/src/IDotnetFindPathContext.ts
17+ */
1218export interface IDotnetFindPathContext {
1319 acquireContext : IDotnetAcquireContext ;
1420 versionSpecRequirement : DotnetVersionSpecRequirement ;
21+ rejectPreviews ?: boolean ;
1522}
1623
1724/**
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
5151 mode : 'runtime' ,
5252 } ,
5353 versionSpecRequirement : 'greater_than_or_equal' ,
54+ // Reject previews because we are not setting `DOTNET_ROLL_FORWARD_TO_PRERELEASE` when starting the server.
55+ rejectPreviews : true ,
5456 } ;
5557 let acquireResult = await vscode . commands . executeCommand < IDotnetAcquireResult | undefined > (
5658 'dotnet.findPath' ,
You can’t perform that action at this time.
0 commit comments