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

Update only the modified lines and not the whole file when editor is changed #1970

Closed
wants to merge 0 commits into from

Conversation

devvaannsh
Copy link
Contributor

@devvaannsh devvaannsh commented Dec 5, 2024

This PR brings the following changes :

  1. Add comment support. Now colors are not displayed on commented lines. It works with any language and works both for single-line as well as multi-line comments
  2. Now on every editor change, this feature doesn't re-factor the whole file but just the modified lines.

src/extensionsIntegrated/CSSColorPreview/main.js Outdated Show resolved Hide resolved
src/extensionsIntegrated/CSSColorPreview/main.js Outdated Show resolved Hide resolved
@devvaannsh
Copy link
Contributor Author

Add support for inline comments. Works with any type of complex statements, whether the inline comment appears before, after, between the code.

Visual reference :-
image

src/extensionsIntegrated/CSSColorPreview/main.js Outdated Show resolved Hide resolved
src/extensionsIntegrated/CSSColorPreview/main.js Outdated Show resolved Hide resolved
src/extensionsIntegrated/CSSColorPreview/main.js Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Dec 7, 2024

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