Skip to content

Commit 6db0573

Browse files
authored
Merge pull request #3 from dev-five-git/support-type-and-declare-and-export-import-expression
Support type and declare and export import expression
2 parents 92a7d11 + da775aa commit 6db0573

File tree

10 files changed

+1628
-232
lines changed

10 files changed

+1628
-232
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"package.json":"Minor"},"note":"Support type, declare, import, export expression","date":"2026-03-15T08:33:55.986255800Z"}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
[![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)
6+
7+
![React Component Lens demo](medias/demo.png)
8+
59
## Why
610

711
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.

bunfig.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[test]
22
coverage = true
33
coverageSkipTestFiles = true
4-
# coverageThreshold = 1
4+
coverageThreshold = 1
55
coverageReporter = ["text", "lcov"]

medias/demo.png

67.4 KB
Loading

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,31 @@
4949
"maximum": 2000,
5050
"description": "Debounce delay, in milliseconds, before recomputing decorations after workspace changes."
5151
},
52+
"reactComponentLens.scope.element": {
53+
"type": "boolean",
54+
"default": true,
55+
"description": "Highlight JSX element tags (<Component />, </Component>)."
56+
},
57+
"reactComponentLens.scope.declaration": {
58+
"type": "boolean",
59+
"default": true,
60+
"description": "Highlight component declaration names (function, class, variable)."
61+
},
62+
"reactComponentLens.scope.export": {
63+
"type": "boolean",
64+
"default": true,
65+
"description": "Highlight component names in export declarations (export { Component }, export default Component)."
66+
},
67+
"reactComponentLens.scope.import": {
68+
"type": "boolean",
69+
"default": true,
70+
"description": "Highlight component names in import declarations (import { Component } from ...)."
71+
},
72+
"reactComponentLens.scope.type": {
73+
"type": "boolean",
74+
"default": true,
75+
"description": "Highlight TypeScript interface and type alias declaration names."
76+
},
5277
"reactComponentLens.highlightColors": {
5378
"type": "object",
5479
"default": {

0 commit comments

Comments
 (0)