Added alias and category back to statically registered commands. Added additional check to create ILocalizedString only for title or category.

This commit is contained in:
Michel Kaporin
2017-03-24 10:44:40 +01:00
parent 1f84bfe86a
commit 2199d94d33
2 changed files with 7 additions and 7 deletions

View File

@@ -201,7 +201,7 @@ class ExtensionManifestNLSReplacer extends ExtensionManifestHandler {
// FF3B and FF3D is the Unicode zenkaku representation for [ and ]
message = '\uFF3B' + message.replace(/[aouei]/g, '$&$&') + '\uFF3D';
}
obj[key] = command && originalMessages ? { value: message, original: originalMessages[messageKey] } : message;
obj[key] = command && (key === 'title' || key === 'category') && originalMessages ? { value: message, original: originalMessages[messageKey] } : message;
} else {
collector.warn(messageScope, nls.localize('missingNLSKey', "Couldn't find message for key {0}.", messageKey));
}