redhat-developer/vscode-java

Imports are not included in the document symbols returned from "getDocumentSymbols" API

Open

#1,658 建立於 2020年10月16日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (543 fork)auto 404
APIhelp wanted

倉庫指標

Star
 (2,295 star)
PR 合併指標
 (PR 指標待抓取)

描述

Hi

I am writing a vscode extension and I want to get the symbols of a JAVA file.

Environment Operating System: windows 10 Visual Studio Code version: 1.50.0

Steps To Reproduce If I run this sample code :

`const vscodeCDSExtension = extensions.getExtension("redhat.java"); const javaDocParams : DocumentSymbolParams = { textDocument: { uri: Uri.file(filePath).toString() } };

if (vscodeCDSExtension && vscodeCDSExtension.isActive) { const symbols = await vscodeCDSExtension.exports.getDocumentSymbols(javaDocParams); console.log(symbols.length); }`

Current Result The "imports" of the file are not included in the returned symbols (only "package", classes and methods are returned)

Expected Result The "imports" also should be included in the result

The JAVA file is attached

CatalogServiceHandler.zip

貢獻者指南