You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add Rewrite with new syntax code lens on top level classes and code actions. (#1317)
* show `Rewrite with new syntax` code lens on first level classes of java documents.
* add code action to inspect java code selection
* implement `Inspection.highlight` to highlight the first line of an inspeciton.
* delegate to copilot inline chat to fix inspection
* chore: Use `sendInfo` to attach properties to telemetry event
* rename symbols.
* resolve command: renaming/inline/js docs.
* extract interface InspectionProblem and rename inspection.problem.symbol as `inspection.problem.indicator` to avoid conflicts
// @PROBLEM: problem of the code in less than 10 words, should be as short as possible, starts with a gerund/noun word, e.g., "Using".
18
19
// @SOLUTION: solution to fix the problem in less than 10 words, should be as short as possible, starts with a verb.
19
-
// @SYMBOL: symbol of the problematic code block, must be a single word contained by the problematic code. it's usually a Java keyword, a method/field/variable name, or a value(e.g. magic number)... but NOT multiple, '<null>' if cannot be identified
20
+
// @INDICATOR: indicator of the problematic code block, must be a single word contained by the problematic code. it's usually a Java keyword, a method/field/variable name, or a value(e.g. magic number)... but NOT multiple, '<null>' if cannot be identified
20
21
// @SEVERITY: severity of the problem, must be one of **[HIGH, MIDDLE, LOW]**, *HIGH* for Probable bugs, Security risks, Exception handling or Resource management(e.g. memory leaks); *MIDDLE* for Error handling, Performance, Reflective accesses issues and Verbose or redundant code; *LOW* for others
voidwindow.showInformationMessage(`Inspected ${symbolKind}${symbolName}... of \"${path.basename(document.fileName)}\" and got ${inspections.length} suggestions.`,"Go to").then(selection=>{
0 commit comments