Skip to content

Commit 5c535cd

Browse files
committed
Lint sources
1 parent 17c7782 commit 5c535cd

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

src/common/localize.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as vscode from 'vscode';
22

3-
43
export class TranslatedQuickPickItem<T> implements vscode.QuickPickItem {
54
label: string;
65
value: T;

src/extension/extension.ts

+11-23
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ async function handleRemovePetMessage(
224224
return new PetQuickPickItem(val.name, val.type, val.color);
225225
}),
226226
{
227-
placeHolder: vscode.l10n.t(
228-
'Select the pet to remove.',
229-
),
227+
placeHolder: vscode.l10n.t('Select the pet to remove.'),
230228
},
231229
)
232230
.then((pet: PetQuickPickItem | undefined) => {
@@ -402,9 +400,7 @@ export function activate(context: vscode.ExtensionContext) {
402400
const selectedPetType = await vscode.window.showQuickPick(
403401
localize.stringListAsQuickPickItemList<PetType>(ALL_PETS),
404402
{
405-
placeHolder: vscode.l10n.t(
406-
'Select a pet',
407-
),
403+
placeHolder: vscode.l10n.t('Select a pet'),
408404
},
409405
);
410406
if (selectedPetType === undefined) {
@@ -434,9 +430,7 @@ export function activate(context: vscode.ExtensionContext) {
434430
choices,
435431
),
436432
{
437-
placeHolder: vscode.l10n.t(
438-
'Select a color',
439-
),
433+
placeHolder: vscode.l10n.t('Select a color'),
440434
},
441435
);
442436
if (selectedColor === undefined) {
@@ -456,9 +450,7 @@ export function activate(context: vscode.ExtensionContext) {
456450
choices,
457451
),
458452
{
459-
placeHolder: vscode.l10n.t(
460-
'Select a color',
461-
),
453+
placeHolder: vscode.l10n.t('Select a color'),
462454
},
463455
);
464456
if (selectedColor === undefined) {
@@ -478,9 +470,7 @@ export function activate(context: vscode.ExtensionContext) {
478470
choices,
479471
),
480472
{
481-
placeHolder: vscode.l10n.t(
482-
'Select a color',
483-
),
473+
placeHolder: vscode.l10n.t('Select a color'),
484474
},
485475
);
486476
if (selectedColor === undefined) {
@@ -507,9 +497,7 @@ export function activate(context: vscode.ExtensionContext) {
507497
}
508498

509499
const name = await vscode.window.showInputBox({
510-
placeHolder: vscode.l10n.t(
511-
'Leave blank for a random name',
512-
),
500+
placeHolder: vscode.l10n.t('Leave blank for a random name'),
513501
prompt: vscode.l10n.t('Name your pet'),
514502
value: randomName(selectedPetType.value),
515503
});
@@ -521,9 +509,7 @@ export function activate(context: vscode.ExtensionContext) {
521509
);
522510
if (!spec.type || !spec.color || !spec.size) {
523511
return vscode.window.showWarningMessage(
524-
vscode.l10n.t(
525-
'Cancelled Spawning Pet',
526-
),
512+
vscode.l10n.t('Cancelled Spawning Pet'),
527513
);
528514
} else if (spec) {
529515
panel.spawnPet(spec);
@@ -1121,8 +1107,10 @@ class PetWebviewViewProvider extends PetWebviewContainer {
11211107

11221108
getWebview(): vscode.Webview {
11231109
if (this._webviewView === undefined) {
1124-
throw new Error(vscode.l10n.t(
1125-
'Panel not active, make sure the pets view is visible before running this command.'),
1110+
throw new Error(
1111+
vscode.l10n.t(
1112+
'Panel not active, make sure the pets view is visible before running this command.',
1113+
),
11261114
);
11271115
} else {
11281116
return this._webviewView.webview;

0 commit comments

Comments
 (0)