Skip to content

Commit 37612f9

Browse files
authored
new: Implement initial VSCode extension infrastructure. (#10)
* Scaffold ext. * Rework build. * Start on projects view. * Add lang icons. * Add empty states. * Fix build. * Update moon. * Add run target. * Fix errors. * Add commands. * Add activity bar section. * Monitor config file for changes. * Start on run webview. * Polish run view. * Allow multiple targets. * Add view project. * Update deps. * Polish docs. * Add images. * Update readme. * Add license. * Fix ignore.
1 parent 4241a2b commit 37612f9

44 files changed

Lines changed: 3173 additions & 123 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ logs/
66
.eslintcache
77
.idea
88
.npm
9-
.vscode
109
.yarnclean
1110

1211
# Directories
@@ -38,4 +37,3 @@ node_modules/
3837

3938
# Moon
4039
.moon/cache
41-
.moon/types

.moon/oss/project-packages.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ tasks:
2727
- '--declaration'
2828
- '--declarationConfig'
2929
- 'tsconfig.build.json'
30-
deps:
31-
- '^:build'
3230
inputs:
3331
- '@globs(sources)'
3432
- 'package.json'
@@ -50,8 +48,6 @@ tasks:
5048
- '@in(3)'
5149
- '--check'
5250
- '.'
53-
deps:
54-
- '^:build'
5551
inputs:
5652
- '@globs(sources)'
5753
- '@globs(tests)'
@@ -74,8 +70,6 @@ tasks:
7470
- '--ignore-path'
7571
- '@in(4)'
7672
- '.'
77-
deps:
78-
- '^:build'
7973
inputs:
8074
- '@globs(sources)'
8175
- '@globs(tests)'
@@ -87,8 +81,6 @@ tasks:
8781
# https://moonrepo.dev/docs/guides/examples/jest
8882
test:
8983
command: 'jest'
90-
deps:
91-
- '^:build'
9284
args:
9385
- '--coverage'
9486
- '--passWithNoTests'
@@ -103,8 +95,6 @@ tasks:
10395
args:
10496
- '--build'
10597
- '--pretty'
106-
deps:
107-
- '^:build'
10898
inputs:
10999
- '@globs(sources)'
110100
- '@globs(tests)'

.moon/oss/workspace.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ node:
55
packageManager: 'yarn'
66
yarn:
77
version: '3.2.3'
8+
plugins:
9+
- 'interactive-tools'
10+
- 'version'
11+
- 'workspace-tools'
812
dedupeOnLockfileChange: true
913
dependencyVersionFormat: 'workspace-caret'
1014
syncProjectWorkspaceDependencies: true
@@ -19,9 +23,12 @@ node:
1923

2024
typescript:
2125
createMissingConfig: false
26+
routeOutDirToCache: true
2227
syncProjectReferences: true
2328

2429
runner:
30+
implicitDeps:
31+
- '^:build'
2532
inheritColorsForPipedTasks: true
2633
logRunningCommand: true
2734

.vscode/launch.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-extension"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/packages/vscode-extension/lib/**/*.js"
17+
],
18+
"preLaunchTask": "${defaultBuildTask}"
19+
}
20+
// {
21+
// "name": "Extension Tests",
22+
// "type": "extensionHost",
23+
// "request": "launch",
24+
// "args": [
25+
// "--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-extension",
26+
// "--extensionTestsPath=${workspaceFolder}/packages/vscode-extension/out/test/suite/index"
27+
// ],
28+
// "outFiles": [
29+
// "${workspaceFolder}/packages/vscode-extension/out/**/*.js",
30+
// "${workspaceFolder}/packages/vscode-extension/dist/**/*.js"
31+
// ],
32+
// "preLaunchTask": "tasks: watch-tests"
33+
// }
34+
]
35+
}

.vscode/tasks.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"isBackground": true,
10+
"presentation": {
11+
"reveal": "never",
12+
"group": "watchers"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
},
18+
"options": {
19+
"cwd": "${workspaceRoot}/packages/vscode-extension"
20+
}
21+
}
22+
// {
23+
// "label": "tasks: watch-tests",
24+
// "dependsOn": [
25+
// "npm: watch",
26+
// "npm: watch-tests"
27+
// ],
28+
// "problemMatcher": [],
29+
// "options": {
30+
// "cwd": "${workspaceRoot}/packages/vscode-extension"
31+
// }
32+
// }
33+
]
34+
}

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 497 additions & 33 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-version.cjs

Lines changed: 550 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ enableGlobalCache: true
22

33
enableTelemetry: false
44

5-
nodeLinker: node-modules
6-
7-
plugins:
8-
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
9-
spec: '@yarnpkg/plugin-interactive-tools'
10-
11-
yarnPath: .yarn/releases/yarn-3.2.3.cjs
12-
13-
# https://github.com/yarnpkg/berry/issues/4165
145
logFilters:
156
- code: YN0007
167
level: discard
178
- code: YN0008
189
level: discard
1910
- code: YN0013
2011
level: discard
12+
13+
nodeLinker: node-modules
14+
15+
plugins:
16+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
17+
spec: "@yarnpkg/plugin-interactive-tools"
18+
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
19+
spec: "@yarnpkg/plugin-version"
20+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
21+
spec: "@yarnpkg/plugin-workspace-tools"
22+
23+
yarnPath: .yarn/releases/yarn-3.2.3.cjs

lerna.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
"useWorkspaces": true,
55
"command": {
66
"publish": {
7-
"ignoreChanges": ["*.md"]
7+
"ignoreChanges": [
8+
"*.md"
9+
],
10+
"noPrivate": true
11+
},
12+
"version": {
13+
"noPrivate": true
814
}
915
}
1016
}

0 commit comments

Comments
 (0)