提交 6473016c 编写于 作者: S Sandeep Somavarapu

Fix #62917

上级 b5732d84
......@@ -333,7 +333,7 @@ const OVERRIDE_PROPERTY = '\\[.*\\]$';
const OVERRIDE_PATTERN_WITH_SUBSTITUTION = '\\[(${0})\\]$';
export const OVERRIDE_PROPERTY_PATTERN = new RegExp(OVERRIDE_PROPERTY);
function getDefaultValue(type: string | string[] | undefined): any {
export function getDefaultValue(type: string | string[] | undefined): any {
const t = Array.isArray(type) ? (<string[]>type)[0] : <string>type;
switch (t) {
case 'boolean':
......
......@@ -49,6 +49,8 @@ import { ShowCurrentReleaseNotesAction } from 'vs/workbench/parts/update/electro
import { KeybindingParser } from 'vs/base/common/keybindingParser';
import { IStorageService } from 'vs/platform/storage/common/storage';
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
import { getDefaultValue } from 'vs/platform/configuration/common/configurationRegistry';
import { isUndefined } from 'vs/base/common/types';
function renderBody(body: string): string {
const styleSheetPath = require.toUrl('./media/markdown.css').replace('file://', 'vscode-core-resource://');
......@@ -706,7 +708,7 @@ export class ExtensionEditor extends BaseEditor {
...contrib.map(key => $('tr', null,
$('td', null, $('code', null, key)),
$('td', null, properties[key].description),
$('td', null, $('code', null, properties[key].default))
$('td', null, $('code', null, `${isUndefined(properties[key].default) ? getDefaultValue(properties[key].type) : properties[key].default}`))
))
)
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册