Please see CONTRIBUTING.md in the root of the repository for more details on contributing. This file shows how to develop the extension locally.
npm install in this folder and in client.cargo is installedRun Installed Extension (pyrefly) from the drop down."pyrefly.trace.server": "verbose" to the VSCode config. Then all the LSP JSON requests and responses will be logged together with stderr of language server in the output pane.lsp/bin/pyrefly(.exe) by running node build-pyrefly.js release in this folder. Alternatively, build it yourself with buck2 build pyrefly @fbcode//mode/opt --show-output or cargo build and either:lsp/bin/pyrefly(.exe)pyrefly.lspPath configuration key to point at it after extension startup.npm install vscenpm exec vsce packagepyrefly-1.0.0.vsix file that was produced.Every few months security advisories will arrive about pinned versions of packages.
npm audit to see which packages have security updates.npm audit fix to fix those issues.npm audit, if it still has issues run npm update.npm exec vsce package to confirm everything still works.