Skip to content

Commit f0964b5

Browse files
committed
feat: enhance VSCode extension with activation command and launch configuration
1 parent 6b7bfdf commit f0964b5

7 files changed

Lines changed: 72 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ lerna-debug.log*
3030
# Editor directories and files
3131
.vscode/*
3232
!.vscode/settings.json
33-
!.vscode/extensions.json
33+
!.vscode/launch.json
3434
.idea
3535
.DS_Store
3636
*.suo

.vscode/launch.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Quickmock Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": ["--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-extension"],
9+
"outFiles": ["${workspaceFolder}/packages/vscode-extension/dist/**/*.mjs"]
10+
}
11+
]
12+
}

packages/mcp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"type": "module",
55
"exports": {
66
".": {
7-
"types": "./dist/index.d.ts",
8-
"default": "./dist/index.js"
7+
"types": "./dist/index.d.mts",
8+
"default": "./dist/index.mjs"
99
}
1010
},
1111
"imports": {
3.31 KB
Loading

packages/vscode-extension/package.json

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"name": "@lemoncode/quickmock-vscode-extension",
33
"version": "0.0.0",
44
"type": "module",
5-
"exports": {
6-
".": {
7-
"types": "./dist/index.d.ts",
8-
"default": "./dist/index.js"
9-
}
10-
},
5+
"main": "./dist/index.mjs",
116
"imports": {
127
"#*": "./src/*"
138
},
@@ -18,6 +13,7 @@
1813
"provenance": true
1914
},
2015
"scripts": {
16+
"dev": "node --run build -- --watch --sourcemap",
2117
"build": "tsdown",
2218
"check-types": "tsc --noEmit",
2319
"test": "vitest run",
@@ -30,5 +26,43 @@
3026
"@lemoncode/vitest-config": "*",
3127
"@types/vscode": "1.116.0",
3228
"@vscode/vsce": "3.9.0"
29+
},
30+
"publisher": "Lemoncoders",
31+
"displayName": "Quickmock",
32+
"description": "Quickmock VSCode extension for your free, open source wireframing tool. Share your ideas as low-fidelity mocks in minutes, perfect for getting started.",
33+
"keywords": [
34+
"wireframe",
35+
"mockup",
36+
"prototype",
37+
"low-fidelity",
38+
"design",
39+
"ui",
40+
"ux",
41+
"sketch",
42+
"quickmock"
43+
],
44+
"categories": [
45+
"Visualization",
46+
"Other"
47+
],
48+
"author": "Lemoncode",
49+
"license": "MIT",
50+
"engines": {
51+
"vscode": "^1.105.0"
52+
},
53+
"icon": "./assets/app-icon.webp",
54+
"galleryBanner": {
55+
"color": "#17191E",
56+
"theme": "dark"
57+
},
58+
"qna": false,
59+
"activationEvents": [],
60+
"contributes": {
61+
"commands": [
62+
{
63+
"command": "quickmock.helloWorld",
64+
"title": "Quickmock: Hello World"
65+
}
66+
]
3367
}
3468
}
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
export {};
1+
import * as vscode from 'vscode';
2+
3+
export const activate = (context: vscode.ExtensionContext) => {
4+
const disposable = vscode.commands.registerCommand(
5+
'quickmock.helloWorld',
6+
() => {
7+
vscode.window.showInformationMessage(
8+
'Quickmock extension is running!'
9+
);
10+
}
11+
);
12+
13+
context.subscriptions.push(disposable);
14+
};
15+
16+
export const deactivate = () => {};

packages/vscode-extension/tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import { baseTsdownConfig } from '@lemoncode/tsdown-config/base';
33
export default {
44
...baseTsdownConfig,
55
entry: ['src/index.ts'],
6+
external: ['vscode'],
67
};

0 commit comments

Comments
 (0)