Skip to content

feat!: modernize Nuxtr for Nuxt 3 and 4 - #197

Open
BayBreezy wants to merge 97 commits into
nuxtrdev:mainfrom
BayBreezy:contrib/nuxt-modernization
Open

BayBreezy wants to merge 97 commits into
nuxtrdev:mainfrom
BayBreezy:contrib/nuxt-modernization

Conversation

@BayBreezy

@BayBreezy BayBreezy commented Oct 11, 2026 •

Copy link
Copy Markdown

🔗 Linked issue / Discussion

Related issues: #194, #49, #150, #177, #196, #182, #183, #188, #189, #130, #179, #172 and #191.

Related discussions: #103, #118, #195, #178, #187, #180, #134, #154 and #144.

These references describe implementation scope and regression coverage. All six submission-candidate platform checks passed; actual WSL reproduction remains outstanding.

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Modernize Nuxtr for Nuxt 3 and 4 while retaining existing command IDs, settings and practical Nuxt 2 behavior. The extension now resolves the selected application's directories, runs package commands consistently, and supports current scaffolding and API snippets. Regression tests cover reported failures, complete sidebar flows and packaged extension activation.

This is a draft for maintainer feedback on the combined scope and compatibility choices. The work was developed in focused, individually validated branches. It can be divided into smaller PRs if preferred.

Project compatibility and reliability

  • Register project-creation commands in empty windows; discover nested applications and multiple workspace projects; offer explicit project selection.
  • Resolve Nuxt 3/4 application, server, public and shared directories separately, including custom and legacy layouts. Reject unsafe guesses for computed or inherited settings.
  • Handle npm, pnpm, Yarn and both Bun lockfiles through shared process services, with complete output, failure, timeout and cancellation handling. Preserve pnpm default/named catalog references during updates.
  • Load snippets through extension resources, apply toggles dynamically and suppress boilerplate in import statements.
  • Separate module installation errors from configuration-edit errors; preserve config content and use canonical package names. Successful installation proceeds without waiting for the documentation notification to close.
  • Repair first-click module/layer navigation, sidebar Install payloads/retry behavior, Explorer actions on app/server folders, and the duplicated Nitro-task palette entry.
  • Respect indentation, normalize file extensions and protect existing files. Remove the global log-language override.

Community discussion requests implemented

The following features connect this work directly to community requests:

Discussion Request Implemented behavior
#103 Component and server API templates Reusable .component-template and .api-template files, selectable from the sidebar and configurable as scaffold defaults.
#118 Configurable file extensions nuxtr.scaffolding.defaultLanguage selects JavaScript or TypeScript for non-Vue scaffolds; Vue scripts retain their existing language setting.
#195 Composable templates and use-prefixed filenames Reusable .composable-template files and optional nuxtr.scaffolding.composableUsePrefix, generating names such as useFoo.ts. Existing defaults are preserved.
#178 A Create Nitro Task command Nuxtr: Create Nitro Task, including nested names such as db:migrate, resolved server directories and an explicit action to enable experimental tasks.
#187 Release-note links during dependency updates Verified repository release links in dependency-update actions, with an npm package-page fallback.
#180 Official ESLint in the Modules view Include @nuxt/eslint in the module catalogue and offline snapshot; host-side refresh and caching keep the catalogue current.
#134 Wrap selections in Nuxt components Nuxtr: Wrap Selection in Nuxt Component for ClientOnly, NuxtLink, DevOnly, NuxtLayout and NuxtErrorBoundary, including multiple selections and one undo step.
#154 Reuse terminals Optional nuxtr.terminal.reuse, disabled by default. Reuse is restricted to idle Nuxtr-owned terminals in the same project/directory with reliable shell integration. This adapts the proposal: busy tasks are retained and receive a separate terminal.
#144 Module-name IntelliSense Canonical module-name completion in static Nuxt configuration arrays and tuples, using the shared cached/offline catalogue, excluding duplicates and known incompatible modules.

Template, task, release-link, catalogue, wrapping, terminal and module-completion regressions are included in the test suite. Platform/runtime limits are listed below; linking a discussion does not imply that its broader proposal or every runtime combination has been verified.

Additional developer features

  • Project health checks with an editor report to review before explicitly copying diagnostics; no automatic submission or project modification.
  • Nuxt API and H3 v1 server snippets with documentation links and editable placeholders.
  • Tailwind 4/Vite and legacy Tailwind 3/module recipes.
  • Sidebar padding, persistent filter labels, clickable cursor states and keyboard controls.

Toolchain and documentation

  • Update dependencies across the extension and Vue sidebar; use Node 24.20.0 and pnpm 12.10.1 for contributors/CI, frozen installs and explicit build permissions.
  • Keep the CommonJS extension entrypoint and tsup; remove deprecated Webview UI Toolkit and nightly/private Nuxt CLI coupling.
  • Build ignored sidebar output under out/sidebar and verify actual packaged assets. Add unit, browser, real generated-project and official VS Code host checks, plus a six-job OS/editor CI matrix with retained artifacts.
  • Keep the README's original branding, screenshots and feature-tour layout while documenting new features and local development. Add contributor instructions, source purpose/JSDoc comments and a release-validation checklist.

Breaking changes and compatibility limits

  • Minimum VS Code version is raised to 1.141.0. Contributor/CI tooling requires Node 24.20.0 and pnpm 12.10.1; ordinary extension use relies on the editor's extension-host runtime.
  • The unrelated global .log language contribution is removed.
  • TypeScript 7 remains deferred pending compatible vue-tsc and ESLint peers. Nuxt 2 generated-project builds and Nitro 3 runtime behavior remain unverified.
  • Module-name completion supports static default-export modules arrays. Selection wrapping supports inline HTML Vue templates. Terminal reuse requires reliable shell integration and an observed idle terminal belonging to the same project/directory.

Validation evidence

  • Submission candidate d5b64094571bb8cf1490117295c2a8ff019affd0 passed validation on macOS/arm64 with Node 24.20.0 and pnpm 12.10.1: frozen install, both typechecks, lint, documentation checks, 146 unit tests, production build/VSIX asset checks, production-sidebar browser checks, ten development-host scenarios and four extracted-VSIX scenarios. The tested VSIX SHA-256 is a3e0f0e427e9af8b66099cd0f0b0d391a85316749cce48e0cdb186c1336e8468.
  • The dedicated submission branch includes the reviewed README and all product changes; fork-specific AI skills/configuration are excluded from the final PR diff.
  • Earlier Nuxt 3/4 generated-project fixture builds passed; these checks do not establish every supported version or third-party module combination.
  • All six hosted OS/editor jobs passed for earlier candidate 3dbba63: https://github.com/BayBreezy/nuxtr-vscode/actions/runs/38108013057. That run does not cover the later features or current candidate.
  • All six hosted CI jobs passed for submission candidate d5b64094571bb8cf1490117295c2a8ff019affd0: Windows/Linux/macOS × minimum/stable CI, covering VS Code 1.141.0 and current stable on all three operating systems. The complete installed-VSIX Mac walkthrough and mandatory actual Windows/WSL Nuxt 3/4 sign-off remain pending release evidence.
  • The last recorded dependency audit (2026-10-10) retained one low-severity development-tool advisory; no critical/high/moderate findings were recorded. Details and supported-range limits are in the contributor guide.

See docs/RELEASE_VALIDATION.md for the issue-to-regression table and manual checks.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.
  • Local shared validation passed.
  • Dedicated submission branch prepared without fork-specific AI skills/configuration.
  • Submission candidate passes all six hosted CI combinations.
  • Installed-VSIX Mac walkthrough recorded.
  • Mandatory actual WSL Nuxt 3/4 sign-off recorded.

@BayBreezy
BayBreezy marked this pull request as ready for review October 11, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant