Skip to content

Commit f02cc27

Browse files
Convert architechture and requirement to lowercase (#2009)
1 parent c269248 commit f02cc27

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sample/src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,22 @@ ${stderr}`);
200200
prompt: 'The .NET runtime version.',
201201
});
202202

203-
const arch = await vscode.window.showInputBox({
203+
let arch = await vscode.window.showInputBox({
204204
placeHolder: 'x64',
205205
value: 'x64',
206206
prompt: 'The .NET runtime architecture.',
207207
});
208208

209-
const requirement = await vscode.window.showInputBox({
209+
arch = arch?.toLowerCase();
210+
211+
let requirement = await vscode.window.showInputBox({
210212
placeHolder: 'greater_than_or_equal',
211213
value: 'greater_than_or_equal',
212214
prompt: 'The condition to search for a requirement.',
213215
});
214216

217+
requirement = requirement?.toLowerCase();
218+
215219
let commandContext : IDotnetFindPathContext = { acquireContext: {version: version, requestingExtensionId: requestingExtensionId, architecture : arch, mode : 'runtime'} as IDotnetAcquireContext,
216220
versionSpecRequirement: requirement as DotnetVersionSpecRequirement};
217221

0 commit comments

Comments
 (0)