-
Notifications
You must be signed in to change notification settings - Fork 177
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 hover tooltip for scss #367
feat: support hover tooltip for scss #367
Conversation
@microsoft-github-policy-service agree |
@aeschli ? |
src/services/cssHover.ts
Outdated
const matches = node.getText().match(regex); | ||
flagOpts = { | ||
isMedia:true, | ||
text:matches?.[0].toString()! |
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.
toString()!
is not necessary
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.
ok, I removed it.
src/services/cssHover.ts
Outdated
|
||
for (let i = 0; i < nodepath.length; i++) { | ||
const node = nodepath[i]; | ||
|
||
if (node instanceof nodes.Media){ |
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.
Please run the formatter (default Typescript formatter)
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.
Is this ok now, I runned default prettier.
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.
Should I rise an issue for format script. It might helps other engineers to follow common format configuration.
a1a5c2e
to
dfb8281
Compare
@aeschli have any prettier config? {
"semi": true,
"singleQuote": true,
"useTabs": true,
"trailingComma": "all",
"arrowParens": "always",
"bracketSpacing": true,
"printWidth": 200
} |
No prettier, just the built-in TypeScript compiler with default settings. |
dfb8281
to
a6f7ec9
Compare
@aeschli any update? |
fix: microsoft/vscode#194707 #271