Skip to content

Commit f233eb9

Browse files
committed
Adds oxc plugin for prettier (faster)
1 parent c17370b commit f233eb9

File tree

4 files changed

+181
-3
lines changed

4 files changed

+181
-3
lines changed

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"singleQuote": true,
77
"tabWidth": 4,
88
"useTabs": true,
9+
"plugins": ["@prettier/plugin-oxc"],
910
"overrides": [
1011
{
1112
"files": ".prettierrc",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24351,6 +24351,7 @@
2435124351
"@eslint/compat": "1.3.0",
2435224352
"@eslint/js": "9.29.0",
2435324353
"@playwright/test": "1.53.1",
24354+
"@prettier/plugin-oxc": "0.0.3",
2435424355
"@swc/core": "1.12.5",
2435524356
"@twbs/fantasticon": "3.1.0",
2435624357
"@types/mocha": "10.0.10",

pnpm-lock.yaml

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/viewBase.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export abstract class ViewBase<
270270
if (this.container.debugging || configuration.get('debug')) {
271271
function addDebuggingInfo(item: TreeItem, node: ViewNode, parent: ViewNode | undefined) {
272272
item.tooltip ??= new MarkdownString(
273-
item.label != null && typeof item.label !== 'string' ? item.label.label : item.label ?? '',
273+
item.label != null && typeof item.label !== 'string' ? item.label.label : (item.label ?? ''),
274274
);
275275

276276
if (typeof item.tooltip === 'string') {
@@ -566,8 +566,8 @@ export abstract class ViewBase<
566566
(this.grouped
567567
? `${this.name.toLocaleLowerCase()}${count != null ? ` (${count})` : ''}`
568568
: count != null
569-
? `(${count})`
570-
: '') || undefined
569+
? `(${count})`
570+
: '') || undefined
571571
);
572572
}
573573

0 commit comments

Comments
 (0)