Skip to content

Feature/more quick fixes#1662

Merged
chrisdp merged 18 commits intomasterfrom
feature/more-quick-fixes
Mar 27, 2026
Merged

Feature/more quick fixes#1662
chrisdp merged 18 commits intomasterfrom
feature/more-quick-fixes

Conversation

@chrisdp
Copy link
Copy Markdown
Contributor

@chrisdp chrisdp commented Mar 26, 2026

Add new quick fixes and fix-all code actions

Expands the code actions processor with several new quick fixes and "fix all" variants:

  • Missing imports: "Fix all: Auto fixable missing imports" aggregates all unambiguous missing import fixes across the file in a single action
  • Void return values: fix or fix-all for removing return values from subs/void functions
  • Return type declarations: fix or fix-all for removing return types from sub declarations, and adding void return types to function declarations
  • Convert function to sub: quick fix for functions that should be subs (single only, no fix-all)
  • Script import cleanup: fix or fix-all for removing redundant parent script imports, unnecessary codebehind imports, and correcting import path casing (now preserving relative paths)

Also introduces a shared emitOrFixAll() helper that standardizes the pattern of emitting a single fix vs. a "fix all" composite action.

@chrisdp chrisdp requested a review from TwitchBronBron March 26, 2026 12:52
@chrisdp chrisdp added the enhancement New feature or request label Mar 26, 2026
@chrisdp chrisdp merged commit fca93b6 into master Mar 27, 2026
10 of 12 checks passed
@chrisdp chrisdp deleted the feature/more-quick-fixes branch March 27, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants