redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.05k stars 420 forks source link

vscode Java no definition found no references found Java #3650

Open zmwxiaoming opened 1 month ago

zmwxiaoming commented 1 month ago

[provide a description of the issue]

Environment
Steps To Reproduce
  1. no definition found

    image image
  2. no references found

    image
  3. no declaration found

    image image

Since I upgraded vscode When I click on a method to query its definition, " no definition found " When I click on a class declaration, " no declaration found" , no, no, no every Java no. This problem has been bothering me for two days. Could you please help me solve it, great master?

if (StringUtils.isBlank(token)) {
            return ResponseCommon.fail(-1, "token为空");
        }
        UserInfoOutput output = (UserInfoOutput) session.getAttribute(CommonConstant.SESSION_USER_KEY);
        if (output == null && ObjectUtils.notEqual(output.getToken(), token)) {
            return ResponseCommon.fail(-1, "token错误");
        }
@Data
public class UserInfoOutput {
    private String userName;
    private String phone;
    private String avatar;
    private String token;
}

Please attach logs

Current Result
Expected Result
Additional Informations
zmwxiaoming commented 1 month ago

Reinstall vscode to solve the problem