apache / apache/netbeans

[nbcode] An "Enable preview" code action for relevant compiler message

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

Description

### Description

When editing a file which uses a preview feature (for example unnamed) classes, the LS reports the compiler message which includes "--enable-preview". Whenever the diagnostic contains such message, the codeAction could return a quick-fix to "Enable Preview".

### Use case/motivation

_No response_

### Related issues

_No response_

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

No

Contributor guide

Open the contributing guide

Research direction

Start at the language server's codeAction handling for diagnostics and trace how compiler messages containing "--enable-preview" are processed. Determine how a quick-fix can enable preview for the relevant file, then verify that the code action is offered only for matching diagnostics and applies the expected setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.