Skip to content

Commit

Permalink
fix: compile errors (#492)
Browse files Browse the repository at this point in the history
* fix: compile errors

Fixes compile errors introduced by using the wrong variables
with the toString method

* chore: remove pr none
  • Loading branch information
rzhao271 committed Feb 22, 2024
1 parent bb57df5 commit 42a7f30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion build/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ trigger:
branches:
include:
- main
pr: none

resources:
repositories:
Expand Down
6 changes: 3 additions & 3 deletions src/statusSelectionCount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export default class StatusSelectionCount extends Disposable {
const nFocus = focused !== undefined ? numberFormat.format(focused) : undefined;
const nSelected = selected > 1 ? numberFormat.format(selected) : undefined;
if (nFocus && nSelected) {
this.item.text = vscode.l10n.t("Byte {0}/0x{1} ({2}/0x{3} selected)", nFocus, nFocus.toString(16).toUpperCase(), nSelected, nSelected.toString(16).toUpperCase());
this.item.text = vscode.l10n.t("Byte {0}/0x{1} ({2}/0x{3} selected)", nFocus, focused!.toString(16).toUpperCase(), nSelected, selected.toString(16).toUpperCase());
} else if (nSelected) {
this.item.text = vscode.l10n.t("{0}/0x{1} selected", nSelected, nSelected.toString(16).toUpperCase());
this.item.text = vscode.l10n.t("{0}/0x{1} selected", nSelected, selected.toString(16).toUpperCase());
} else if (nFocus) {
this.item.text = vscode.l10n.t("Byte {0}/0x{1}", nFocus, nFocus.toString(16).toUpperCase());
this.item.text = vscode.l10n.t("Byte {0}/0x{1}", nFocus, focused!.toString(16).toUpperCase());
} else {
this.item.hide();
return;
Expand Down

0 comments on commit 42a7f30

Please sign in to comment.