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

chore: highlight HTML code #581

Merged
merged 2 commits into from
Dec 22, 2024
Merged

chore: highlight HTML code #581

merged 2 commits into from
Dec 22, 2024

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Dec 20, 2024

Screenshot 2024-12-20 at 17 42 50

@Skn0tt Skn0tt self-assigned this Dec 20, 2024

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • .vscode/extensions.json: Language not supported
Comments suppressed due to low confidence (1)

src/locatorsView.ts:119

  • Ensure that the new behavior introduced by the html function is covered by tests for htmlForWebview.
return html`
@@ -0,0 +1,5 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

Those are some giant indentations!

src/utils.ts Outdated

// this is a no-op template tag. it instructs the "bierner.lit-html" vscode extension to highlight the string as HTML.
export function html(strings: TemplateStringsArray, ...expressions: unknown[]) {
let result = strings[0];
Copy link
Member

Choose a reason for hiding this comment

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

copilot is saying this:

return strings.reduce((acc, str, i) => acc + expressions[i - 1] + str);

@Skn0tt Skn0tt merged commit 4f44ba7 into microsoft:main Dec 22, 2024
5 of 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.

2 participants