Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe pull request removes catalog-related completion and definition providers from the VS Code extension and migrates their functionality to a new language service plugin. Specifically, it removes the Possibly related PRs
🚥 Pre-merge checks | ❌ 1❌ Failed checks (1 inconclusive)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/language-service/src/plugins/catalog.ts (1)
105-110: Add a guard to checkworkspaceDocumentfor defensive consistency.The
context.documents.get()call at line 110 directly uses its return value without checking forundefined. Whilst this approach suggests the API guarantees a non-undefined return given valid inputs, adding a guard would be consistent with the defensive pattern already present throughout the function (checks at lines 82–108). If the document cannot be loaded, the early return prevents unnecessary processing.Suggested guard
const workspaceDocument = context.documents.get(sourceScript.id, sourceScript.languageId, sourceScript.snapshot) + if (!workspaceDocument) + return const [targetStart, targetEnd] = targetDependency.specRange
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c036267b-1c18-4fd8-8f60-ec7d6d6799c6
📒 Files selected for processing (10)
extensions/vscode/src/index.tsextensions/vscode/src/providers/completion-item/catalog.tsextensions/vscode/src/providers/completion-item/index.tsextensions/vscode/src/providers/definition/catalog.tsextensions/vscode/src/providers/definition/index.tsextensions/vscode/src/utils/constants.tspackages/language-core/package.jsonpackages/language-server/package.jsonpackages/language-service/src/index.tspackages/language-service/src/plugins/catalog.ts
💤 Files with no reviewable changes (5)
- extensions/vscode/src/index.ts
- extensions/vscode/src/providers/definition/index.ts
- extensions/vscode/src/utils/constants.ts
- extensions/vscode/src/providers/completion-item/catalog.ts
- extensions/vscode/src/providers/definition/catalog.ts
No description provided.