Skip to content

Commit

Permalink
Clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Feb 10, 2025
1 parent efdda17 commit 82bd4e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export class MultiDiffEditorInput extends EditorInput implements ILanguageSuppor
const resources = this.resources.read(reader);
const label = this.label ?? localize('name', "Multi Diff Editor");
if (resources && resources.length === 1) {
this._name = localize('nameWithOneFile', "{0} (1 file)", label);
this._name = localize({ key: 'nameWithOneFile', comment: ['{0} is the name of the editor'] }, "{0} (1 file)", label);
} else if (resources) {
this._name = localize({ key: 'nameWithFiles', comment: ['the name of the editor', 'the number of files being shown'] }, "{0} ({1} files)", label, resources.length);
this._name = localize({ key: 'nameWithFiles', comment: ['{0} is the name of the editor', '{1} is the number of files being shown'] }, "{0} ({1} files)", label, resources.length);
} else {
this._name = label;
}
Expand Down

0 comments on commit 82bd4e6

Please sign in to comment.