From 4c85acaaaa284821b1fc90afa4ae4b691ec2d202 Mon Sep 17 00:00:00 2001 From: Blazej Kustra Date: Sun, 3 May 2026 11:31:04 +0200 Subject: [PATCH 1/2] docs: update VS Code installation instructions to include Antigravity --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7dce40..2f540a3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ | IDE | Installation | |------|--------------| -| VS Code / Cursor | [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=blazejkustra.react-compiler-marker) \| [Open VSX](https://open-vsx.org/extension/blazejkustra/react-compiler-marker) | +| VS Code / Cursor / Antigravity | [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=blazejkustra.react-compiler-marker) \| [Open VSX](https://open-vsx.org/extension/blazejkustra/react-compiler-marker) | | WebStorm / IntelliJ IDEA | [IntelliJ marketplace](https://plugins.jetbrains.com/plugin/29540-react-compiler-marker) | | Neovim | [Setup instructions](packages/nvim-client/README.md) | | Zed (alpha) | [Setup instructions](packages/zed-client/README.md) | @@ -68,7 +68,7 @@ npx react-compiler-marker --format json . > report.json See the [CLI README](packages/cli/README.md) for all options. -### VS Code / Cursor +### VS Code / Cursor / Antigravity 1. Install from [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=blazejkustra.react-compiler-marker) or search "React Compiler Marker" in Extensions 3. Open a React component file - markers appear automatically From 5f95a8244cc29974417c6c5be380a022b8edc6f8 Mon Sep 17 00:00:00 2001 From: Blazej Kustra Date: Sun, 3 May 2026 11:46:48 +0200 Subject: [PATCH 2/2] fix(server): correctly resolve workspace folder URI on Windows Use Node's fileURLToPath to convert the LSP workspace folder URI to a filesystem path, replacing the manual slice(7) that left URL-encoded characters in place and kept the leading slash on Windows drive paths. Fixes #68. --- packages/server/src/server.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/server/src/server.ts b/packages/server/src/server.ts index 75b03b0..f8fbcc7 100644 --- a/packages/server/src/server.ts +++ b/packages/server/src/server.ts @@ -13,6 +13,7 @@ import { } from "vscode-languageserver/node"; import { TextDocument } from "vscode-languageserver-textdocument"; +import { fileURLToPath } from "node:url"; import { checkReactCompiler, getCompiledOutput, @@ -78,9 +79,11 @@ function logError(error: string): void { } connection.onInitialize((params: InitializeParams): InitializeResult => { - workspaceFolder = params.workspaceFolders?.[0]?.uri; - if (workspaceFolder?.startsWith("file://")) { - workspaceFolder = workspaceFolder.slice(7); + const workspaceFolderUri = params.workspaceFolders?.[0]?.uri; + if (workspaceFolderUri?.startsWith("file://")) { + workspaceFolder = fileURLToPath(workspaceFolderUri); + } else { + workspaceFolder = workspaceFolderUri; } // Store client name for feature detection