Skip to content

Commit

Permalink
[swc-plugin][vscode-plugin] Init
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Sep 8, 2024
1 parent 1d26f0d commit 76e07b7
Show file tree
Hide file tree
Showing 24 changed files with 4,626 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These command aliases are not final, may change
[alias]
# Alias to build actual plugin binary for the specified target.
build-wasi = "build --target wasm32-wasip1"
build-wasm32 = "build --target wasm32-unknown-unknown"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ logs
*.log
npm-debug.log*
.DS_Store

dist

# rust
/target
^target/
target
12 changes: 12 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"tamasfe.even-better-toml",
"rust-lang.rust-analyzer",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"connor4312.esbuild-problem-matchers",
"ms-vscode.extension-test-runner"
]
}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Gem Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-gem-plugin"],
"outFiles": ["${workspaceFolder}/packages/vscode-gem-plugin/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
16 changes: 14 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,25 @@
"eslint.validate": ["typescript", "typescriptreact"],
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"[xml]": {
"editor.defaultFormatter": null
},
"[typescript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
22 changes: 22 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"label": "VS Code gem plugin watch",
"type": "shell",
"command": "yarn --cwd packages/vscode-gem-plugin run watch",
"problemMatcher": "$esbuild-watch",
"isBackground": true,
"presentation": {
"group": "watch",
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Loading

0 comments on commit 76e07b7

Please sign in to comment.