Refresh master with initial release/0.24 snapshot (#332)

* Initial port of release/0.24 source code

* Fix additional headers

* Fix a typo in launch.json
This commit is contained in:
Karl Burtram
2017-12-15 15:38:57 -08:00
committed by GitHub
parent 271b3a0b82
commit 6ad0df0e3e
7118 changed files with 107999 additions and 56466 deletions

View File

@@ -9,7 +9,6 @@ import * as assert from 'assert';
import { firstIndex } from 'vs/base/common/arrays';
import { localize } from 'vs/nls';
import { ParsedArgs } from '../common/environment';
import product from 'vs/platform/node/product';
const options: minimist.Opts = {
string: [
@@ -23,8 +22,12 @@ const options: minimist.Opts = {
'debugId',
'debugPluginHost',
'debugBrkPluginHost',
'debugSearch',
'debugBrkSearch',
'open-url',
'enable-proposed-api'
'enable-proposed-api',
'export-default-configuration',
'install-source'
],
boolean: [
'help',
@@ -44,7 +47,11 @@ const options: minimist.Opts = {
'list-extensions',
'show-versions',
'nolazy',
'skip-getting-started'
'skip-getting-started',
'sticky-quickopen',
'disable-telemetry',
'disable-updates',
'disable-crash-reporter'
],
alias: {
add: 'a',
@@ -60,6 +67,8 @@ const options: minimist.Opts = {
'extensions-dir': 'extensionHomePath',
'debugPluginHost': 'inspect-extensions',
'debugBrkPluginHost': 'inspect-brk-extensions',
'debugSearch': 'inspect-search',
'debugBrkSearch': 'inspect-brk-search',
}
};
@@ -125,7 +134,7 @@ export const optionsHelp: { [name: string]: string; } = {
'-r, --reuse-window': localize('reuseWindow', "Force opening a file or folder in the last active window."),
'--user-data-dir <dir>': localize('userDataDir', "Specifies the directory that user data is kept in, useful when running as root."),
'--verbose': localize('verbose', "Print verbose output (implies --wait)."),
'-w, --wait': localize('wait', "Wait for the window to be closed before returning."),
'-w, --wait': localize('wait', "Wait for the files to be closed before returning."),
'--extensions-dir <dir>': localize('extensionHomePath', "Set the root path for extensions."),
'--list-extensions': localize('listExtensions', "List the installed extensions."),
'--show-versions': localize('showVersions', "Show versions of installed extensions, when using --list-extension."),
@@ -138,11 +147,6 @@ export const optionsHelp: { [name: string]: string; } = {
'-h, --help': localize('help', "Print usage.")
};
// TODO@Ben multi root
if (product.quality === 'stable') {
delete optionsHelp['-a, --add'];
}
export function formatOptions(options: { [name: string]: string; }, columns: number): string {
let keys = Object.keys(options);
let argLength = Math.max.apply(null, keys.map(k => k.length)) + 2/*left padding*/ + 1/*right padding*/;