We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b306fbd commit 7b3f97eCopy full SHA for 7b3f97e
src/command/render/render-contexts.ts
@@ -656,8 +656,12 @@ const readExtensionFormat = async (
656
// Read the yaml file and resolve / bucketize
657
const extensionFormat = extension?.contributes.formats;
658
if (extensionFormat) {
659
+ const fmtTarget = formatDesc.modifiers
660
+ ? `${formatDesc.baseFormat}${formatDesc.modifiers.join("")}`
661
+ : formatDesc.baseFormat;
662
const extensionMetadata =
- (extensionFormat[formatDesc.baseFormat] || {}) as Metadata;
663
+ (extensionFormat[fmtTarget] || extensionFormat[formatDesc.baseFormat] ||
664
+ {}) as Metadata;
665
extensionMetadata[kExtensionName] = extensionMetadata[kExtensionName] ||
666
formatDesc.extension;
667
0 commit comments