From 3aba62a6ed34501c4ff6a7a6497720f6ffb7663b Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Wed, 23 Oct 2024 01:40:47 -0700 Subject: [PATCH] update contrib + ctrlk hello world works! --- CONTRIBUTING.md | 6 +++--- extensions/void/package-lock.json | 22 ++++++++++++++++++++++ extensions/void/package.json | 2 ++ extensions/void/src/extension.ts | 4 ++-- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fc579c46..8198f061 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,13 +45,13 @@ This will start a new instance of VSCode with the extension enabled. If this doe ## 2. Building the full IDE -If you want to work on the full IDE, please follow the steps below. If you have any questions/issues, you can refer to VSCode's full [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute) page, which is where the steps below come from. Also feel free to submit an issue or get in touch with any build errors. +If you want to work on the full IDE, please follow the steps below. If you have any questions/issues, you can refer to VSCode's full [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute) page, which is where the steps below come from. Also feel free to submit an issue or get in touch with us with any build errors. ### a. Building on a Mac -To build on a Mac, first make sure you've built the extension (follow the steps in the above section on Building the Extension). Then, close out of `void/extensions/void` and open `void/` in VSCode. Also make sure you have Python and XCode installed on your system (you probably do by default). +To build on a Mac, open `void/` in VSCode. Make sure you've built the extension (`cd ./extensions/void && npm run build && npm run compile && cd ../..`). Also make sure you have Python and XCode installed on your system (you probably do by default). 1. Install all dependencies. @@ -73,7 +73,7 @@ This can take ~5 min. It's done when you see something like: -3. Run `./scripts/code.sh` in a new terminal. +3. In a new terminal, run `./scripts/code.sh`. This should open up the built IDE after loading for some time. To see new changes without restarting the build, use Ctrl+Shift+P and run "Reload Window". diff --git a/extensions/void/package-lock.json b/extensions/void/package-lock.json index 3dcf058b..e9bbd5a5 100644 --- a/extensions/void/package-lock.json +++ b/extensions/void/package-lock.json @@ -11,6 +11,7 @@ "@anthropic-ai/sdk": "^0.29.2", "@eslint/js": "^9.9.1", "@monaco-editor/react": "^4.6.0", + "@rrweb/types": "^2.0.0-alpha.17", "@types/diff": "^5.2.2", "@types/diff-match-patch": "^1.0.36", "@types/jest": "^29.5.12", @@ -42,6 +43,7 @@ "react-markdown": "^9.0.1", "react-syntax-highlighter": "^15.6.1", "rimraf": "^6.0.1", + "rrweb-snapshot": "^2.0.0-alpha.4", "tailwindcss": "^3.4.10", "typescript": "5.5.4", "typescript-eslint": "^8.3.0", @@ -1026,6 +1028,16 @@ "node": ">=14" } }, + "node_modules/@rrweb/types": { + "version": "2.0.0-alpha.17", + "resolved": "https://registry.npmjs.org/@rrweb/types/-/types-2.0.0-alpha.17.tgz", + "integrity": "sha512-AfDTVUuCyCaIG0lTSqYtrZqJX39ZEYzs4fYKnexhQ+id+kbZIpIJtaut5cto6dWZbB3SEe4fW0o90Po3LvTmfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "rrweb-snapshot": "^2.0.0-alpha.17" + } + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -7460,6 +7472,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/rrweb-snapshot": { + "version": "2.0.0-alpha.17", + "resolved": "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-2.0.0-alpha.17.tgz", + "integrity": "sha512-GBg5pV8LHOTbeVmH2VHLEFR0mc2QpQMzAvcoxEGfPNWgWHc8UvKCyq7pqN1vA+fDZ+yXXbixeO0kB2pzVvFCBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss": "^8.4.38" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", diff --git a/extensions/void/package.json b/extensions/void/package.json index b1c8d6a5..90b3fb6d 100644 --- a/extensions/void/package.json +++ b/extensions/void/package.json @@ -112,6 +112,7 @@ "@anthropic-ai/sdk": "^0.29.2", "@eslint/js": "^9.9.1", "@monaco-editor/react": "^4.6.0", + "@rrweb/types": "^2.0.0-alpha.17", "@types/diff": "^5.2.2", "@types/diff-match-patch": "^1.0.36", "@types/jest": "^29.5.12", @@ -143,6 +144,7 @@ "react-markdown": "^9.0.1", "react-syntax-highlighter": "^15.6.1", "rimraf": "^6.0.1", + "rrweb-snapshot": "^2.0.0-alpha.4", "tailwindcss": "^3.4.10", "typescript": "5.5.4", "typescript-eslint": "^8.3.0", diff --git a/extensions/void/src/extension.ts b/extensions/void/src/extension.ts index 18a5bc5e..bebc3bf0 100644 --- a/extensions/void/src/extension.ts +++ b/extensions/void/src/extension.ts @@ -47,10 +47,10 @@ export function activate(context: vscode.ExtensionContext) { if (!editor) return - // const inset = vscode.window.createWebviewTextEditorInset(editor, 10, 200, {}) + // const inset = vscode.window.createWebviewTextEditorInset(editor, 10, 10, {}) // inset.webview.html = ` // - // Hello World! + // Hello World! // // `;