Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
docs(vscode): transfer development guide to official docs
Matthew Espino7f801030e07a
diff --git a/packages/vscode-plugin/development-guide.md b/packages/vscode-plugin/development-guide.mdindex 6fd16ee06..e43533ac6 100644--- a/packages/vscode-plugin/development-guide.md+++ b/packages/vscode-plugin/development-guide.md@@ -1,48 +1,3 @@# Development Guide-This document details how to develop the extension locally. If you're interested in how it's packaged for distribution, you can checkout the [Package VS Code Plugin](/.github/workflows/package_vscode_plugin.yml) workflow.--## Notes--- The extension code and its tests live in the `src` directory. Most changes you'll need to make will be there.-- VS Code can only pickup the tasks and launch configurations set in `packages/vscode-plugin/.vscode` if this directory, `packages/vscode-plugin`, not the root of the Harper repository, is open.-- You can look at the project's [`justfile`](/justfile) to see exactly what running the `just` recipes below do.--## Prerequisites--- Make sure to read the [Contributing guide](/CONTRIBUTING.md) and follow the "Setup Your Environment" section.-- Before running or testing the extension using VS Code's Debugger, make sure you have `harper-ls` in `packages/vscode-plugin/bin`. You can either manually create the directory, compile `harper-ls`, and put it there or you can run `just test-vscode` or `just package-vscode` which will do that for you.--## Running the Extension--1. Open the Run and Debug view by selecting it from the Activity Bar or by pressing `Ctrl+Shift+D`.-2. Choose `Run Extension`, if not chosen already.-3. Click the play (Start Debugging) button or press `F5`.--## Running the Tests--### Using VS Code's Debugger--1. Open the Run and Debug view by selecting it from the Activity Bar or by pressing `Ctrl+Shift+D`.-2. Choose `Test Extension`, if not chosen already.-3. Click the play (Start Debugging) button or press `F5`.--### Using the Command Line--```console-just test-vscode-```--## Packaging and Installing the Extension--1. Package the extension:-- ```console- just package-vscode- ```--2. Install the extension:-- ```console- code --install-extension path/to/created/.vsix- ```+This document has been moved to the [official documentation](https://writewithharper.com/docs/contributors/visual-studio-code).diff --git a/packages/web/src/app.css b/packages/web/src/app.cssindex ae428a8c0..77d8428e8 100644--- a/packages/web/src/app.css+++ b/packages/web/src/app.css@@ -7,6 +7,10 @@@apply list-disc pl-4;}+ ol {+ @apply list-decimal pl-4;+ }+h1 {@apply text-5xl py-4;}diff --git a/packages/web/src/routes/docs/contributors/visual-studio-code/+page.md b/packages/web/src/routes/docs/contributors/visual-studio-code/+page.mdnew file mode 100644index 000000000..2d262da44--- /dev/null+++ b/packages/web/src/routes/docs/contributors/visual-studio-code/+page.md@@ -0,0 +1,50 @@+---+title: Visual Studio Code+---++This document details how to develop the Visual Studio Code extension locally. If you're interested in how it's packaged and distributed, you can checkout the [Release VS Code Plugin](https://github.com/Automattic/harper/blob/master/.github/workflows/release_vscode_plugin.yml) workflow.++## Notes++- The extension code and its tests live in the `src` directory. Most changes you'll need to make will be there.+- VS Code can only pickup the tasks and launch configurations set in `packages/vscode-plugin/.vscode` if this directory, `packages/vscode-plugin`, not the root of the Harper repository, is open.+- You can look at the project's [`justfile`](https://github.com/Automattic/harper/blob/master/justfile) to see exactly what running the `just` recipes below do.++## Prerequisites++- Make sure to [set up your environment](./environment).+- Before running or testing the extension using VS Code's Debugger, make sure you have `harper-ls` in `packages/vscode-plugin/bin`. You can either manually create the directory, compile `harper-ls`, and put it there or you can run `just test-vscode` or `just package-vscode` which will do that for you.++## Running the Extension++1. Open the Run and Debug view by selecting it from the Activity Bar or by pressing `Ctrl+Shift+D`.+2. Choose `Run Extension`, if not chosen already.+3. Click the play (Start Debugging) button or press `F5`.++## Running the Tests++### Using VS Code's Debugger++1. Open the Run and Debug view by selecting it from the Activity Bar or by pressing `Ctrl+Shift+D`.+2. Choose `Test Extension`, if not chosen already.+3. Click the play (Start Debugging) button or press `F5`.++### Using the Command Line++```bash+just test-vscode+```++## Packaging and Installing the Extension++1. Package the extension:++ ```bash+ just package-vscode+ ```++2. Install the extension:++ ```bash+ code --install-extension path/to/created/.vsix+ ```diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.tsindex 8e5601bb2..786a9a697 100644--- a/packages/web/vite.config.ts+++ b/packages/web/vite.config.ts@@ -1,8 +1,8 @@-import wasm from 'vite-plugin-wasm';-import topLevelAwait from 'vite-plugin-top-level-await';-import { defineConfig } from 'vite';-import { sveltepress } from '@sveltepress/vite';import { defaultTheme } from '@sveltepress/theme-default';+import { sveltepress } from '@sveltepress/vite';+import { defineConfig } from 'vite';+import topLevelAwait from 'vite-plugin-top-level-await';+import wasm from 'vite-plugin-wasm';export default defineConfig({server: {@@ -122,6 +122,10 @@ export default defineConfig({title: 'Author a Rule',to: '/docs/contributors/author-a-rule'},+ {+ title: 'Visual Studio Code',+ to: '/docs/contributors/visual-studio-code'+ },{title: 'Reviewing Pull Requests',to: '/docs/contributors/review'