Skip to content

feat: Enable declarative features in vscode web#2937

Open
andrevcaseiro wants to merge 3 commits intosveltejs:masterfrom
andrevcaseiro:master
Open

feat: Enable declarative features in vscode web#2937
andrevcaseiro wants to merge 3 commits intosveltejs:masterfrom
andrevcaseiro:master

Conversation

@andrevcaseiro
Copy link

Enables the Svelte extension to run on vscode.dev and github.dev with declarative features: syntax highlighting, snippets, and language configuration.

This is a first step toward full web support. Language server features remain disabled.

Changes

  • ✅ Added browser entry point (extension.browser.ts)
  • ✅ Added !isWeb conditions to hide unimplemented commands when running as a web extension
  • ✅ Updated virtualWorkspaces capability with web limitations
  • ✅ Added run-in-browser testing script
  • ✅ Added instructions on testing

What Works on Web

✅ Syntax highlighting
✅ Code snippets
✅ Language configuration (brackets, comments, etc.)

❌ Language server (IntelliSense, diagnostics, formatting)
❌ Commands (restart server, extract component, etc.)
❌ TypeScript plugin

Future Work

To achieve full language server support on web (addressing #1190 completely):

  1. Bundle dependencies - Add webpack/esbuild to create proper web bundle
  2. Web worker language server - Port language server to run in web worker

This PR provides immediate value (syntax highlighting) without compromising future work.

Relates to

#1190 - Full web extension support

Checklist

  • Fork and branch from master
  • Code lints (pnpm lint)
  • Tests pass (pnpm test)
  • Code formatted (pnpm format)
  • Tested in browser (pnpm run-in-browser)

Notes

This is my first public open source PR — feedback very welcome!

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: 72df051

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@andrevcaseiro andrevcaseiro marked this pull request as ready for review February 13, 2026 17:02
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