microsoft / microsoft/vscode-java-pack

Bug: Intellisense shows types in packages that are not exported in the module.

Open
#1,311 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged
Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Description

Environment:

  • VS Code Version: 1.88.1
  • Extension Version: v0.26.0
  • JDK Type & Version: OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
  • OS Type & Version: Windows 11

Step to Reproduce:

  1. New project
  2. Add a ref to this package:
          <dependency>
            <groupId>com.azure</groupId>
            <artifactId>azure-messaging-eventgrid-namespaces</artifactId>
            <version>1.0.0-beta.1</version>
        </dependency>
  1. add a module-info.java
  2. Ensure the language level is set to 9+

Expected Behavior:
new EventGrid typed presents types in intellisense that are available

Actual Behavior:
Typing new EventGrid shows types that are in our implementation package which is not exported from the module.

Related Issues:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a Java project using the azure-messaging-eventgrid-namespaces Maven dependency, a module-info.java file, and Java language level 9 or later. Compare IntelliSense results for new EventGrid with the types exported by the module; done means non-exported implementation types no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.