10000 feat: add vscode package & add jsdoc by Groupguanfang · Pull Request #160 · iocjs/unioc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add vscode package & add jsdoc #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2025
Merged

feat: add vscode package & add jsdoc #160

merged 3 commits into from
Jun 26, 2025

Conversation

Groupguanfang
Copy link
Collaborator

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 26, 2025 08:44
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new @unioc/vscode package to support building VSCode extensions with Unioc, updates the monorepo workspace, and adds JS-doc for the BunApp.

  • Add packages/vscode with build, test, and TypeScript configs plus core extension scaffolding (bootstrap, CommandPlugin, Command decorator).
  • Update pnpm-workspace.yaml and packages/unioc/package.json to include the new VSCode package.
  • Enhance server/web-bun app with detailed JSDoc compatibility table.

Reviewed Changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Include packages/vscode and add @nestjs/core to built deps
packages/vscode/vitest.config.ts Add Vitest config with SWC plugin
packages/vscode/tsdown.config.ts Add tsdown build config with SWC rollup plugin
packages/vscode/tsconfig.json Define TypeScript compiler options for VSCode package
packages/vscode/src/plugins/command-plugin.ts Implement CommandPlugin to register VSCode commands
packages/vscode/src/index.ts Export public APIs (VSCodeBootstrap, Command, CommandPlugin)
packages/vscode/src/command.ts Define @Command decorator and Command interface
packages/vscode/src/bootstrap.ts Provide VSCodeBootstrap base class with activation/deactivation
packages/vscode/package.json Manifest for @unioc/vscode with dependencies and exports
packages/vscode/README.md Basic README pointing to Unioc documentation
packages/unioc/package.json Add workspace dependency on @unioc/vscode
packages/server/web-bun/src/app.ts Add JSDoc table detailing decorator compatibility for BunApp
.changeset/fancy-mice-boil.md Patch changeset for @unioc/vscode README
.changeset/easy-humans-sell.md Initial patch changeset for @unioc/vscode
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

packages/vscode/src/plugins/command-plugin.ts:8

  • [nitpick] The plugin name prefix naily is inconsistent with the package namespace. Consider renaming it to reflect the @unioc/vscode scope, e.g., unioc:vscode:command-plugin.
    name: 'naily:vscode:command-plugin',

decoratorVersion: '2021-12',
},
},
}) as any,
Copy link
Preview
Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid casting the SWC plugin to any. Consider providing the correct plugin type or extending the Vitest config typings instead of using as any.

Suggested change
}) as any,
}) as ReturnType<typeof swc.vite>,

Copilot uses AI. Check for mistakes.

* ### The function to be called before the extension is initialized.
*
* 🚄 All extensions will implement this method to run the extension.
* The sub-extensions normally will helps the user to call the {@linkcode vscode.Extension.activate} method.
Copy link
Preview
Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor grammar: change will helps to will help.

Suggested change
* The sub-extensions normally will helps the user to call the {@linkcode vscode.Extension.activate} method.
* The sub-extensions normally will help the user to call the {@linkcode vscode.Extension.activate} method.

Copilot uses AI. Check for mistakes.

@@ -0,0 +1,5 @@
---
"@unioc/vscode": patch
Copy link
Preview
Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two patch changesets for @unioc/vscode. Consider consolidating them into a single changeset to avoid conflicting version bumps.

Copilot uses AI. Check for mistakes.

Comment on lines +1 to +5
---
"@unioc/vscode": patch
---

feat: first commit
Copy link
Preview
Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate patch changeset found for @unioc/vscode. Merge with the other changeset to keep releases consistent.

Suggested change
---
"@unioc/vscode": patch
---
feat: first commit
# This changeset file has been removed because its contents were merged into another changeset for `@unioc/vscode`.

Copilot uses AI. Check for mistakes.

Copy link
pkg-pr-new bot commented Jun 26, 2025

Open in StackBlitz

unioc

npm i https://pkg.pr.new/iocjs/unioc@160

@unioc/adapter-midway

npm i https://pkg.pr.new/iocjs/unioc/@unioc/adapter-midway@160

@unioc/adapter-nestjs

npm i https://pkg.pr.new/iocjs/unioc/@unioc/adapter-nestjs@160

@unioc/commander

npm i https://pkg.pr.new/iocjs/unioc/@unioc/commander@160

create-unioc

npm i https://pkg.pr.new/iocjs/unioc/create-unioc@160

@unioc/core

npm i https://pkg.pr.new/iocjs/unioc/@unioc/core@160

@unioc/decorator

npm i https://pkg.pr.new/iocjs/unioc/@unioc/decorator@160

@unioc/meta

npm i https://pkg.pr.new/iocjs/unioc/@unioc/meta@160

@unioc/reflector

npm i https://pkg.pr.new/iocjs/unioc/@unioc/reflector@160

@unioc/shared

npm i https://pkg.pr.new/iocjs/unioc/@unioc/shared@160

@unioc/web

npm i https://pkg.pr.new/iocjs/unioc/@unioc/web@160

@unioc/web-bun

npm i https://pkg.pr.new/iocjs/unioc/@unioc/web-bun@160

@unioc/web-express

npm i https://pkg.pr.new/iocjs/unioc/@unioc/web-express@160

@unioc/web-koa

npm i https://pkg.pr.new/iocjs/unioc/@unioc/web-koa@160

commit: 645c3bf

@Groupguanfang Groupguanfang merged commit a0f62d9 into v1 Jun 26, 2025
9 checks passed
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.

2 participants
0