Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changepacks/changepack_log_uSWu1SaFG_oJCtG2jljdM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"changes":{"package.json":"Minor"},"note":"Support type, declare, import, export expression","date":"2026-03-15T08:33:55.986255800Z"}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Visually distinguish Server Components and Client Components in React / Next.js projects directly in your editor.

[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/devfive.react-component-lens)](https://marketplace.visualstudio.com/items?itemName=devfive.react-component-lens)

![React Component Lens demo](medias/demo.png)

## Why

In Next.js App Router and React Server Components, the boundary between server and client execution is critical for performance and bundle size. But JSX like `<MyComponent />` gives no visual cue about where it runs.
Expand Down
2 changes: 1 addition & 1 deletion bunfig.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[test]
coverage = true
coverageSkipTestFiles = true
# coverageThreshold = 1
coverageThreshold = 1
coverageReporter = ["text", "lcov"]
Binary file added medias/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,31 @@
"maximum": 2000,
"description": "Debounce delay, in milliseconds, before recomputing decorations after workspace changes."
},
"reactComponentLens.scope.element": {
"type": "boolean",
"default": true,
"description": "Highlight JSX element tags (<Component />, </Component>)."
},
"reactComponentLens.scope.declaration": {
"type": "boolean",
"default": true,
"description": "Highlight component declaration names (function, class, variable)."
},
"reactComponentLens.scope.export": {
"type": "boolean",
"default": true,
"description": "Highlight component names in export declarations (export { Component }, export default Component)."
},
"reactComponentLens.scope.import": {
"type": "boolean",
"default": true,
"description": "Highlight component names in import declarations (import { Component } from ...)."
},
"reactComponentLens.scope.type": {
"type": "boolean",
"default": true,
"description": "Highlight TypeScript interface and type alias declaration names."
},
"reactComponentLens.highlightColors": {
"type": "object",
"default": {
Expand Down
Loading