提交 e2287690 编写于 作者: M Martin Aeschlimann

Polish configuration section labels & add link

上级 9f1e006b
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
"path": "./snippets/css.json" "path": "./snippets/css.json"
}], }],
"configuration": { "configuration": {
"order": 20,
"allOf": [{ "allOf": [{
"id": "css", "id": "css",
"order": 20, "title": "CSS",
"title": "CSS configuration",
"allOf": [ "allOf": [
{ {
"title": "Controls CSS validation and problem severities.", "title": "Controls CSS validation and problem severities.",
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
{ {
"id": "scss", "id": "scss",
"order": 24, "order": 24,
"title": "SCSS (Sass) configuration", "title": "SCSS (Sass)",
"allOf": [ "allOf": [
{ {
"title": "Controls SCSS validation and problem severities.", "title": "Controls SCSS validation and problem severities.",
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
"id": "less", "id": "less",
"order": 22, "order": 22,
"type": "object", "type": "object",
"title": "LESS configuration", "title": "LESS",
"allOf": [ "allOf": [
{ {
"title": "Controls LESS validation and problem severities.", "title": "Controls LESS validation and problem severities.",
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
"id": "json", "id": "json",
"order": 20, "order": 20,
"type": "object", "type": "object",
"title": "JSON configuration", "title": "JSON",
"properties" : { "properties" : {
"json.schemas" : { "json.schemas" : {
"type": "array", "type": "array",
......
...@@ -111,7 +111,8 @@ ...@@ -111,7 +111,8 @@
], ],
"configuration": { "configuration": {
"type": "object", "type": "object",
"title": "Markdown preview configuration", "title": "Markdown",
"order": 20,
"properties": { "properties": {
"markdown.styles": { "markdown.styles": {
"type": "array", "type": "array",
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
"configuration": { "configuration": {
"title": "%configuration.title%", "title": "%configuration.title%",
"type": "object", "type": "object",
"order": 20,
"properties": { "properties": {
"php.validate.enable": { "php.validate.enable": {
"type": "boolean", "type": "boolean",
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"configuration.validate.enable": "Whether php validation is enabled or not.", "configuration.validate.enable": "Whether php validation is enabled or not.",
"configuration.validate.executablePath": "Points to the php executable.", "configuration.validate.executablePath": "Points to the php executable.",
"configuration.validate.run": "Whether the linter is run on save or on type.", "configuration.validate.run": "Whether the linter is run on save or on type.",
"configuration.title": "PHP Configuration options" "configuration.title": "PHP"
} }
\ No newline at end of file
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
"configuration": { "configuration": {
"type": "object", "type": "object",
"title": "%configuration.typescript%", "title": "%configuration.typescript%",
"order": 20,
"properties": { "properties": {
"typescript.tsdk": { "typescript.tsdk": {
"type": ["string", "null"], "type": ["string", "null"],
......
{ {
"typescript.reloadProjects.title": "Reload TypeScript Project", "typescript.reloadProjects.title": "Reload TypeScript Project",
"javascript.reloadProjects.title": "Reload JavaScript Project", "javascript.reloadProjects.title": "Reload JavaScript Project",
"configuration.typescript": "TypeScript configuration", "configuration.typescript": "TypeScript",
"typescript.useCodeSnippetsOnMethodSuggest.dec": "Complete functions with their parameter signature.", "typescript.useCodeSnippetsOnMethodSuggest.dec": "Complete functions with their parameter signature.",
"typescript.tsdk.desc": "Specifies the folder path containing the tsserver and lib*.d.ts files to use.", "typescript.tsdk.desc": "Specifies the folder path containing the tsserver and lib*.d.ts files to use.",
"typescript.tsserver.trace": "Enables tracing of messages send to the TS server", "typescript.tsserver.trace": "Enables tracing of messages send to the TS server",
......
...@@ -529,7 +529,7 @@ let editorConfiguration:IConfigurationNode = { ...@@ -529,7 +529,7 @@ let editorConfiguration:IConfigurationNode = {
'id': 'editor', 'id': 'editor',
'order': 5, 'order': 5,
'type': 'object', 'type': 'object',
'title': nls.localize('editorConfigurationTitle', "Editor configuration"), 'title': nls.localize('editorConfigurationTitle', "Editor"),
'properties' : { 'properties' : {
'editor.fontFamily' : { 'editor.fontFamily' : {
'type': 'string', 'type': 'string',
......
...@@ -25,7 +25,7 @@ configurationRegistry.registerConfiguration({ ...@@ -25,7 +25,7 @@ configurationRegistry.registerConfiguration({
'id': 'html', 'id': 'html',
'order': 20, 'order': 20,
'type': 'object', 'type': 'object',
'title': nls.localize('htmlConfigurationTitle', "HTML configuration"), 'title': nls.localize('htmlConfigurationTitle', "HTML"),
'properties': { 'properties': {
'html.format.wrapLineLength': { 'html.format.wrapLineLength': {
'type': 'integer', 'type': 'integer',
......
...@@ -140,7 +140,11 @@ function processDefaultValues(withConfig: (config: configurationRegistry.IConfig ...@@ -140,7 +140,11 @@ function processDefaultValues(withConfig: (config: configurationRegistry.IConfig
if (typeof c2.order !== 'number') { if (typeof c2.order !== 'number') {
return -1; return -1;
} }
if (c1.order === c2.order) {
let title1 = c1.title || '';
let title2 = c2.title || '';
return title1.localeCompare(title2);
}
return c1.order - c2.order; return c1.order - c2.order;
}).forEach((config) => { }).forEach((config) => {
visit(config, 0); visit(config, 0);
...@@ -182,7 +186,7 @@ export function getDefaultValuesContent(indent: string): string { ...@@ -182,7 +186,7 @@ export function getDefaultValuesContent(indent: string): string {
handled = true; handled = true;
if (isTop) { if (isTop) {
result.push(''); result.push('');
result.push('//-------- ' + config.title + ' --------'); result.push('// ' + config.title);
} else { } else {
result.push(indent + '// ' + config.title); result.push(indent + '// ' + config.title);
} }
......
...@@ -158,9 +158,9 @@ const TELEMETRY_SECTION_ID = 'telemetry'; ...@@ -158,9 +158,9 @@ const TELEMETRY_SECTION_ID = 'telemetry';
Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfiguration({ Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfiguration({
'id': TELEMETRY_SECTION_ID, 'id': TELEMETRY_SECTION_ID,
'order': 20, 'order': 110,
'type': 'object', 'type': 'object',
'title': localize('telemetryConfigurationTitle', "Telemetry configuration"), 'title': localize('telemetryConfigurationTitle', "Telemetry"),
'properties': { 'properties': {
'telemetry.enableTelemetry': { 'telemetry.enableTelemetry': {
'type': 'boolean', 'type': 'boolean',
......
...@@ -211,6 +211,7 @@ class DefaultSettingsInput extends StringEditorInput { ...@@ -211,6 +211,7 @@ class DefaultSettingsInput extends StringEditorInput {
let defaults = getDefaultValuesContent(editorConfig.editor.insertSpaces ? strings.repeat(' ', editorConfig.editor.tabSize) : '\t'); let defaults = getDefaultValuesContent(editorConfig.editor.insertSpaces ? strings.repeat(' ', editorConfig.editor.tabSize) : '\t');
let defaultsHeader = '// ' + nls.localize('defaultSettingsHeader', "Overwrite settings by placing them into your settings file."); let defaultsHeader = '// ' + nls.localize('defaultSettingsHeader', "Overwrite settings by placing them into your settings file.");
defaultsHeader += '\n// ' + nls.localize('defaultSettingsHeader2', "See http://go.microsoft.com/fwlink/?LinkId=808995 for the most commonly used settings.");
DefaultSettingsInput.INSTANCE = instantiationService.createInstance(DefaultSettingsInput, nls.localize('defaultName', "Default Settings"), null, defaultsHeader + '\n' + defaults, 'application/json', false); DefaultSettingsInput.INSTANCE = instantiationService.createInstance(DefaultSettingsInput, nls.localize('defaultName', "Default Settings"), null, defaultsHeader + '\n' + defaults, 'application/json', false);
} }
......
...@@ -378,7 +378,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationExt ...@@ -378,7 +378,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationExt
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'workbench', 'id': 'workbench',
'order': 7, 'order': 7,
'title': nls.localize('workbenchConfigurationTitle', "Workbench configuration"), 'title': nls.localize('workbenchConfigurationTitle', "Workbench"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'workbench.editor.showTabs': { 'workbench.editor.showTabs': {
......
...@@ -19,9 +19,8 @@ let TELEMETRY_SECTION_ID = 'telemetry'; ...@@ -19,9 +19,8 @@ let TELEMETRY_SECTION_ID = 'telemetry';
let configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Configuration); let configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Configuration);
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': TELEMETRY_SECTION_ID, 'id': TELEMETRY_SECTION_ID,
'order': 20, 'order': 110.5,
'type': 'object', 'type': 'object',
'title': nls.localize('telemetryConfigurationTitle', "Telemetry configuration"),
'properties': { 'properties': {
'telemetry.enableCrashReporter': { 'telemetry.enableCrashReporter': {
'type': 'boolean', 'type': 'boolean',
......
...@@ -42,7 +42,7 @@ const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationE ...@@ -42,7 +42,7 @@ const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationE
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'window', 'id': 'window',
'order': 8, 'order': 8,
'title': nls.localize('windowConfigurationTitle', "Window configuration"), 'title': nls.localize('windowConfigurationTitle', "Window"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'window.openFilesInNewWindow': { 'window.openFilesInNewWindow': {
...@@ -73,7 +73,7 @@ configurationRegistry.registerConfiguration({ ...@@ -73,7 +73,7 @@ configurationRegistry.registerConfiguration({
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'update', 'id': 'update',
'order': 15, 'order': 15,
'title': nls.localize('updateConfigurationTitle', "Update configuration"), 'title': nls.localize('updateConfigurationTitle', "Update"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'update.channel': { 'update.channel': {
......
...@@ -130,7 +130,7 @@ export var schemaId = 'vscode://schemas/launch'; ...@@ -130,7 +130,7 @@ export var schemaId = 'vscode://schemas/launch';
const schema: IJSONSchema = { const schema: IJSONSchema = {
id: schemaId, id: schemaId,
type: 'object', type: 'object',
title: nls.localize('app.launch.json.title', "Launch configuration"), title: nls.localize('app.launch.json.title', "Launch"),
required: ['version', 'configurations'], required: ['version', 'configurations'],
properties: { properties: {
version: { version: {
......
...@@ -31,7 +31,7 @@ const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationE ...@@ -31,7 +31,7 @@ const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationE
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'emmet', 'id': 'emmet',
'order': 6, 'order': 6,
'title': nls.localize('emmetConfigurationTitle', "Emmet configuration"), 'title': nls.localize('emmetConfigurationTitle', "Emmet"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'emmet.triggerExpansionOnTab': { 'emmet.triggerExpansionOnTab': {
......
...@@ -28,7 +28,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Confi ...@@ -28,7 +28,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Confi
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'externalTerminal', 'id': 'externalTerminal',
'order': 100, 'order': 100,
'title': nls.localize('terminalConfigurationTitle', "External terminal configuration"), 'title': nls.localize('terminalConfigurationTitle', "External Terminal"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'terminal.external.windowsExec': { 'terminal.external.windowsExec': {
......
...@@ -162,7 +162,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationExt ...@@ -162,7 +162,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationExt
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'files', 'id': 'files',
'order': 9, 'order': 9,
'title': nls.localize('filesConfigurationTitle', "Files configuration"), 'title': nls.localize('filesConfigurationTitle', "Files"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'files.exclude': { 'files.exclude': {
...@@ -235,7 +235,7 @@ configurationRegistry.registerConfiguration({ ...@@ -235,7 +235,7 @@ configurationRegistry.registerConfiguration({
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'explorer', 'id': 'explorer',
'order': 10, 'order': 10,
'title': nls.localize('explorerConfigurationTitle', "File Explorer configuration"), 'title': nls.localize('explorerConfigurationTitle', "File Explorer"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'explorer.openEditors.visible': { 'explorer.openEditors.visible': {
......
...@@ -510,7 +510,7 @@ export function registerContributions(): void { ...@@ -510,7 +510,7 @@ export function registerContributions(): void {
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
id: 'git', id: 'git',
order: 15, order: 15,
title: nls.localize('gitConfigurationTitle', "Git configuration"), title: nls.localize('gitConfigurationTitle', "Git"),
type: 'object', type: 'object',
properties: { properties: {
'git.enabled': { 'git.enabled': {
......
...@@ -13,7 +13,7 @@ export default class Messages { ...@@ -13,7 +13,7 @@ export default class Messages {
public static MARKERS_PANEL_VIEW_CATEGORY:string= nls.localize('viewCategory', "View"); public static MARKERS_PANEL_VIEW_CATEGORY:string= nls.localize('viewCategory', "View");
public static MARKERS_PANEL_TOGGLE_LABEL:string= nls.localize('problems.view.show.label', "Show Problems"); public static MARKERS_PANEL_TOGGLE_LABEL:string= nls.localize('problems.view.show.label', "Show Problems");
public static PROBLEMS_PANEL_CONFIGURATION_TITLE:string= nls.localize('problems.panel.configuration.title', "Problems view configuration"); public static PROBLEMS_PANEL_CONFIGURATION_TITLE:string= nls.localize('problems.panel.configuration.title', "Problems View");
public static PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL:string= nls.localize('problems.panel.configuration.autoreveal', "Controls if Problems view should automatically reveal files when opening them"); public static PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL:string= nls.localize('problems.panel.configuration.autoreveal', "Controls if Problems view should automatically reveal files when opening them");
public static MARKERS_PANEL_TITLE_NO_PROBLEMS:string= nls.localize('markers.panel.title.no.problems', "No problems"); public static MARKERS_PANEL_TITLE_NO_PROBLEMS:string= nls.localize('markers.panel.title.no.problems', "No problems");
......
...@@ -160,7 +160,7 @@ const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationE ...@@ -160,7 +160,7 @@ const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigurationE
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'search', 'id': 'search',
'order': 13, 'order': 13,
'title': nls.localize('searchConfigurationTitle', "Search configuration"), 'title': nls.localize('searchConfigurationTitle', "Search"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'search.exclude': { 'search.exclude': {
......
...@@ -21,7 +21,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Confi ...@@ -21,7 +21,7 @@ let configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Confi
configurationRegistry.registerConfiguration({ configurationRegistry.registerConfiguration({
'id': 'terminal', 'id': 'terminal',
'order': 100, 'order': 100,
'title': nls.localize('terminalIntegratedConfigurationTitle', "Integrated terminal configuration"), 'title': nls.localize('terminalIntegratedConfigurationTitle', "Integrated Terminal"),
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'terminal.integrated.shell.linux': { 'terminal.integrated.shell.linux': {
......
...@@ -146,7 +146,7 @@ let confRegistry = <IConfigurationRegistry>platform.Registry.as(Extensions.Confi ...@@ -146,7 +146,7 @@ let confRegistry = <IConfigurationRegistry>platform.Registry.as(Extensions.Confi
confRegistry.registerConfiguration({ confRegistry.registerConfiguration({
id: 'http', id: 'http',
order: 15, order: 15,
title: nls.localize('httpConfigurationTitle', "HTTP configuration"), title: nls.localize('httpConfigurationTitle', "HTTP"),
type: 'object', type: 'object',
properties: { properties: {
'http.proxy': { 'http.proxy': {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册