We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff0d0a commit 0ae12d0Copy full SHA for 0ae12d0
src/goTest/resolve.ts
@@ -304,11 +304,11 @@ export class GoTestResolver {
304
let item: TestItem;
305
306
const nested = getGoConfig(uri).get('testExplorer.packageDisplayMode') === 'nested';
307
- const modDir = await getModFolderPath(uri, true);
+ const modDir = Uri.file(await getModFolderPath(uri, true)); // TODO support non-file schemes
308
const wsfolder = workspace.getWorkspaceFolder(uri);
309
if (modDir) {
310
// If the package is in a module, add it as a child of the module
311
- let parent = await this.getModule(uri.with({ path: modDir, query: '', fragment: '' }));
+ let parent = await this.getModule(modDir);
312
if (uri.path === parent.uri.path) {
313
return parent;
314
}
0 commit comments