-
Notifications
You must be signed in to change notification settings - Fork 34
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: inject custom styling [IDE-240] #535
Conversation
dfa0fa3
to
1be34e1
Compare
|
||
.example-line.removed { | ||
background-color: var(--example-line-removed-color); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we need to use a SASS file? I thought SASS is needed when we need things like nesting or mixins or other SASS magic ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly because we use SASS in VSCode so I wanted to be as consistent as possible across the two, but also because there are more features available in SASS (like you said) and in the future we will have more than Snyk Code styling but still want to share stylesheets or colours across Snyk OSS, Snyk IaC, and Snyk Container
@@ -108,7 +108,7 @@ class LanguageServerWrapper( | |||
try { | |||
val snykLanguageClient = SnykLanguageClient() | |||
languageClient = snykLanguageClient | |||
val logLevel = if (snykLanguageClient.logger.isDebugEnabled) "debug" else "info" | |||
val logLevel = if (snykLanguageClient.logger.isDebugEnabled) "trace" else "info" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this !!
d305b01
to
6eca164
Compare
6eca164
to
c56e584
Compare
Description
Extracts custom IntelliJ styling from
snyk-ls
and injects it into the HTML after compiling.scss
file to.css
using https://github.com/EtienneMiret/sass-gradle-plugin. This requires snyk/snyk-ls#522 so that${ideStyle}
is available.To test:
make build-debug
insnyk-ls
in the branch from feat: remove custom styling and inject it from IDE [IDE-240] snyk-ls#522make build
in the CLI after adding a replace directive forsnyk-ls
runIde
snykCodeConsistentIgnores
FF enabled (e.g.ide-consistent-ignores-test
)Checklist
Screenshots / GIFs
Without the LS change:
With the LS change: