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 hover tooltip for scss #367

Merged

Conversation

balaji-sivasakthi
Copy link
Contributor

@balaji-sivasakthi balaji-sivasakthi commented Oct 6, 2023

@balaji-sivasakthi
Copy link
Contributor Author

balaji-sivasakthi commented Oct 6, 2023

@microsoft-github-policy-service agree

@balaji-sivasakthi
Copy link
Contributor Author

@aeschli ?

const matches = node.getText().match(regex);
flagOpts = {
isMedia:true,
text:matches?.[0].toString()!
Copy link
Contributor

Choose a reason for hiding this comment

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

toString()! is not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I removed it.


for (let i = 0; i < nodepath.length; i++) {
const node = nodepath[i];

if (node instanceof nodes.Media){
Copy link
Contributor

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)

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@balaji-sivasakthi balaji-sivasakthi force-pushed the balaji-sivasakthi/peaceful-guanaco branch 3 times, most recently from a1a5c2e to dfb8281 Compare February 22, 2024 17:10
@balaji-sivasakthi
Copy link
Contributor Author

balaji-sivasakthi commented Feb 22, 2024

@aeschli have any prettier config?

{
	"semi": true,
	"singleQuote": true,
	"useTabs": true,
	"trailingComma": "all",
	"arrowParens": "always",
	"bracketSpacing": true,
	"printWidth": 200
}

@aeschli
Copy link
Contributor

aeschli commented Feb 23, 2024

No prettier, just the built-in TypeScript compiler with default settings.

@balaji-sivasakthi
Copy link
Contributor Author

@aeschli any update?

@aeschli aeschli enabled auto-merge (squash) February 28, 2024 08:11
@vscodenpa vscodenpa added this to the March 2024 milestone Feb 28, 2024
@aeschli aeschli merged commit c17c287 into microsoft:main Feb 28, 2024
6 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.

[scss] Hover tooltip should show media queries
4 participants