apache / apache/netbeans

Default options for refactor are wrong when two projects are in workspace

Open
#7,944 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage VSCode Extension
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 23

### What happened

In code refactoring, when two different projects are open in the IDE, the default refactoring options are still pointing to the first project, even if the user attempts to refactor in the second project.

### Language / Project Type / NetBeans Component

_No response_

### How to reproduce

Open two different projects in the same workspace and attempt to refactor in the second project. You will notice that the default options are still pointing to the first project.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Mac

### JDK

21

### Apache NetBeans packaging

Apache VSNetBeans for VSCode

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem by opening two different projects in one Apache NetBeans workspace and starting a refactoring in the second project. Trace the refactoring entry point and default-option selection, then verify that the options target the project being refactored rather than the first open project.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
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.