-
Notifications
You must be signed in to change notification settings - Fork 9
WIP: Publish TS server plugin as standalone npm package #548
Copy link
Copy link
Open
Milestone
Description
Overview
This issue collects work items for publishing the scratchpad TS server plugin (documentdb-scratchpad-ts-plugin) as a standalone npm package with its own release pipeline.
Currently, the plugin is bundled inline by webpack and requires a runtime node_modules stub created during extension activation (see ClustersExtension.ts). This workaround exists because:
- VS Code's
typescriptServerPluginsresolves plugins vianode_modules/<name>under the extension root @vscode/vscehardcodesignore: 'node_modules/**'in its file collection, so the stub cannot be shipped inside the VSIX- The official VS Code docs recommend TS plugins be published as separate npm packages listed in
dependencies
Steps (to be expanded)
- Publish
documentdb-scratchpad-ts-pluginas an npm package (private or scoped) - Add it as a production
dependencyinpackage.json - Remove the runtime stub creation code from
ClustersExtension.ts(marked withTODO) - Remove the
--no-dependenciesflag fromvsce package(or usepackagedDependenciesto include only the plugin) - Remove the webpack entry point for
scratchpadTsPluginand the CopyWebpackPlugin stub entry (if still present) - Verify the plugin loads correctly from the shipped VSIX in all environments
References
- Runtime stub code:
src/documentdb/ClustersExtension.ts(search forTODO: Remove this runtime stub) - Plugin source:
src/documentdb/scratchpad/tsPlugin/index.ts - VS Code docs: contributes.typescriptServerPlugins
- Vue/Volar uses the same runtime stub pattern: vuejs/language-tools
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status