Skip to content

Commit

Permalink
Merge pull request #1 from WordPress/migrate-vscode-extension
Browse files Browse the repository at this point in the history
Add VS Code extension code
  • Loading branch information
adamziel authored May 31, 2023
2 parents 526005f + 9f01024 commit 4067d04
Show file tree
Hide file tree
Showing 24 changed files with 1,278 additions and 146 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// 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": "Debug Playground for VS Code",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/dist/packages/vscode-extension"
],
"preLaunchTask": "build-vscode-extension"
}
]
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// BEGIN: 3f7a8b3d9b3c
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"group": "build:vscode-extension",
"label": "build-vscode-extension",
"script": "build:vscode-extension",
"problemMatcher": "$esbuild-watch"
}
]
}
// END: 3f7a8b3d9b3c
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

This repository contains the tools and applications built using [WordPress Playground](https://developer.wordpress.org/playground/):

* Interactive Code Block for Gutenberg
* [Interactive Code Block for Gutenberg](./packages/interactive-code-block/)
* [WordPress Playground for Visual Studio Code](./packages/vscode-extension/)

If you were looking for the Playground itself, you can find it here: [WordPress Playground](https://developer.wordpress.org/playground/)

![Interactive code block screenshot](packages/interactive-code-block/demo.png)

## Getting started

Clone the repo and build the projects:
Expand All @@ -20,7 +19,7 @@ npm run build
# or `npm run dev` to watch for changes
```

You'll find the built assets in the dist directory. You can make changes, install the interactive code plugin, and test them.
You'll find the built assets in the dist directory. You can make changes, run the VS Code extension or install the interactive code plugin, and test them.

## Contributing

Expand Down
Loading

0 comments on commit 4067d04

Please sign in to comment.