diff --git a/src/goDocumentSymbols.ts b/src/goDocumentSymbols.ts index ef6959c699..5809237e8d 100644 --- a/src/goDocumentSymbols.ts +++ b/src/goDocumentSymbols.ts @@ -102,5 +102,5 @@ async function listImports( ] }; const resp = await languageClient?.sendRequest(ExecuteCommandRequest.type, params); - return resp.Imports; + return resp.PackageImports; } diff --git a/src/testUtils.ts b/src/testUtils.ts index 53228a58d9..e9a43b5d94 100644 --- a/src/testUtils.ts +++ b/src/testUtils.ts @@ -158,6 +158,9 @@ export async function getTestFunctions( return; } const children = symbol.children; + + // With gopls dymbol provider symbols, the symbols have the imports of all + // the package, so suite tests from all files will be found. const testify = importsTestify(symbols); return children.filter( (sym) =>