Merge pull request #13404 from zhengbli/13131

Change the remove unused local code fix message
This commit is contained in:
Zhengbo Li 2017-01-10 18:15:58 -08:00 committed by GitHub
commit 5e6c5ef2f0
2 changed files with 2 additions and 2 deletions

View File

@ -3247,7 +3247,7 @@
"category": "Message",
"code": 90003
},
"Remove unused identifiers.": {
"Remove declaration for: {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_declaration_for_Colon_0), { 0: token.getText() }),
changes: [{
fileName: sourceFile.fileName,
textChanges: [{ newText, span: { start, length } }]