Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
czfadmin committed Sep 29, 2024
2 parents d579197 + dd3fe0b commit a40b260
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# vsc-extension-helper

## 0.0.5

### Patch Changes

- 113b6e9: 命令注册更改为延迟注册

## 0.0.4

### Patch Changes
Expand Down
18 changes: 9 additions & 9 deletions examples/hello-world/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ export const activate = withActivate({
})(function helloworld(...args: any[]) {
vscode.window.showInformationMessage('group1: hello world');
});
});

function helloworld2(...args: any[]) {
vscode.window.showInformationMessage('group1: hello world2');
}
helloworld2.group = ['group2'];
function helloworld2(...args: any[]) {
vscode.window.showInformationMessage('group1: hello world2');
}
helloworld2.group = ['group2'];

// 4.
withCommand({
name: 'helloworld2',
})(helloworld2);
// 4.
withCommand({
name: 'helloworld2',
})(helloworld2);
});

// 2.
// export const activate = withActivate({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vsc-extension-helper",
"version": "0.0.4",
"version": "0.0.5",
"license": "MIT",
"author": "czfadmin",
"publisher": "czfadmin",
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ export interface WithActiveOptions {
export interface RegisterContextOption extends WithActiveOptions {
context: ExtensionContext;
}



0 comments on commit a40b260

Please sign in to comment.