Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support reactive decorationTypeOrOptions #21

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

howcasperwhat
Copy link
Contributor

@howcasperwhat howcasperwhat commented Feb 23, 2025

Currently useEditorDecorations does not support reactive decorationTypeOrOptions.

Why I need it:
In my extension, I will match some content/code in the document (just like what unocss and iconify do), and I allow users to change style of the matched content/code. So I should watch the configuration and reactively change styles of the decoration which only can set once when calling window.createTextEditorDecorationType.

Copy link
Owner

@kermanx kermanx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks~

Copy link

pkg-pr-new bot commented Feb 23, 2025

Open in Stackblitz

reactive-vscode

npm i https://pkg.pr.new/kermanx/reactive-vscode@21

create-reactive-vscode

npm i https://pkg.pr.new/kermanx/reactive-vscode/create-reactive-vscode@21

@reactive-vscode/mock

npm i https://pkg.pr.new/kermanx/reactive-vscode/@reactive-vscode/mock@21

@reactive-vscode/metadata

npm i https://pkg.pr.new/kermanx/reactive-vscode/@reactive-vscode/metadata@21

@reactive-vscode/reactivity

npm i https://pkg.pr.new/kermanx/reactive-vscode/@reactive-vscode/reactivity@21

@reactive-vscode/vueuse

npm i https://pkg.pr.new/kermanx/reactive-vscode/@reactive-vscode/vueuse@21

commit: 9b03bb7

@kermanx kermanx merged commit f64ace0 into kermanx:main Feb 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants