Change the remove unused local code fix message

This commit is contained in:
Zhengbo Li
2017-01-10 16:58:43 -08:00
parent 0df7ba0086
commit 54f1230760
2 changed files with 2 additions and 2 deletions

View File

@@ -3247,7 +3247,7 @@
"category": "Message",
"code": 90003
},
"Remove unused identifiers.": {
"Remove the unused identifier: {0}": {
"category": "Message",
"code": 90004
},

View File

@@ -146,7 +146,7 @@ namespace ts.codefix {
function createCodeFix(newText: string, start: number, length: number): CodeAction[] {
return [{
description: getLocaleSpecificMessage(Diagnostics.Remove_unused_identifiers),
description: formatStringFromArgs(getLocaleSpecificMessage(Diagnostics.Remove_the_unused_identifier_Colon_0), { 0: token.getText() }),
changes: [{
fileName: sourceFile.fileName,
textChanges: [{ newText, span: { start, length } }]