Open
Conversation
Thin VSCode extension that delegates all language intelligence (hover, completion, go-to-definition, outline, diagnostics) to the reqstool LSP server via stdio. Includes YAML snippets, CI workflows, and UI tests. Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
Add skipLibCheck for vscode-jsonrpc type mismatch with TS 5.x, and use explicit .js extension for Node16 module resolution. Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
- Commit package-lock.json so CI can run npm ci - Add .vscode/launch.json + tasks.json for F5 debug workflow - Add headless smoke test (extension registered, refresh command registered) - Handle rejected promise from reqstool.refresh sendRequest - Expand CONTRIBUTING.md with Option A (F5) and Option B (vsix) local testing Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
Without isTrusted = true, any command: links the LSP server embeds in hover content (e.g. go-to-definition, quick-fix actions) are silently stripped by VS Code and rendered as plain text. Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reqstool lspserver over stdioreqstool-vscode-extension(deprecated) which used direct CLI invocation and custom hover providersWorkspaceManager,hoverProvider,WebViewProvider, ortypes.ts— the LSP server handles all of thatWhat's included
src/extension.ts— startsreqstool lsp, guards if not installed, registersreqstool.refreshcommandsrc/snippets.ts— YAML structural snippets (Requirement, SVC, MVR) with tabstops and choice placeholderssrc/test/ui/extension.ui.test.ts— UI tests (activation without errors, extension installed check)src/test/fixtures/—requirements.ymlandtest.code-workspace.github/workflows/— lint, build (installs reqstool before tests), semantic PR check, release check, publishpackage.json,tsconfig.json,eslint.config.mjs,.vscode-test.mjs,.gitignore,.vscodeignore,.npmrc,renovate.json5README.mdandCONTRIBUTING.mdLSP features (no client-side code needed)
Test plan
npm install && npm run compile— zero errorsnpm run lint— cleannpm run build— produces.vsix.vsix, open a workspace withrequirements.yml→ extension activatesCtrl+Shift+Oin requirements YAML → Outline shows symbols