Add CodeLens annotations for Server/Client Components#8
Open
yongsk0066 wants to merge 2 commits intodev-five-git:mainfrom
Open
Add CodeLens annotations for Server/Client Components#8yongsk0066 wants to merge 2 commits intodev-five-git:mainfrom
yongsk0066 wants to merge 2 commits intodev-five-git:mainfrom
Conversation
- Add ComponentCodeLensProvider with component kind labels above code lines - Respect global enabled setting to properly disable all features - Add codelens.enabled, codelens.clientComponent, codelens.serverComponent settings - Move signature helpers to resolver.ts for contextual locality - Add tests for CodeLens scope behavior
Use analyzer.findComponentDeclaration() to resolve the declaration offset in source files, enabling peek preview at the actual component definition instead of the file start.
Changepacksreact-component-lens@0.2.2 - package.jsonMaybe you forgot to write the following files to the latest version |
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.
안녕하세요! 너무 좋은 기능같아서 개인적으로 codelens 형태로도 보여주면 좋겠다 생각해서 PR 올려봅니다.
Adds CodeLens annotations that display "Server Component" or "Client Component" above import statements, component declarations, and JSX tags. Clicking a CodeLens opens a peek preview of the component's source file at its declaration.
What it does
editor.action.peekLocationsenabledsettingSettings
codelens.enabledfalsecodelens.clientComponenttruecodelens.serverComponenttrueDemo