Skip to content

Commit d68c55e

Browse files
committed
fix to uri parsing
1 parent 193b72e commit d68c55e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/copilotTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class GetEnvironmentInfoTool implements LanguageModelTool<IResourceRefere
5959
if (parameters.resourcePath === undefined || parameters.resourcePath === '') {
6060
throw new Error('Invalid input: resourcePath is required');
6161
}
62-
const resourcePath: Uri = Uri.file(parameters.resourcePath);
62+
const resourcePath: Uri = Uri.parse(parameters.resourcePath);
6363

6464
// environment info set to default values
6565
const envInfo: EnvironmentInfo = {

0 commit comments

Comments
 (0)