提交 98fd5aa1 编写于 作者: B Benjamin Pasero

cli: verboseLogging => verbose

上级 e3eaa27e
......@@ -28,7 +28,7 @@ export interface IProcessEnvironment {
}
export interface ICommandLineArguments {
verboseLogging: boolean;
verbose: boolean;
debugExtensionHostPort: number;
debugBrkExtensionHost: boolean;
debugBrkFileWatcherPort: number;
......@@ -170,7 +170,7 @@ export class EnvService implements IEnvService {
pathArguments: pathArguments,
programStart: types.isNumber(timestamp) ? timestamp : 0,
enablePerformance: argv.performance,
verboseLogging: argv.verbose,
verbose: argv.verbose,
debugExtensionHostPort: debugBrkExtensionHostPort || debugExtensionHostPort,
debugBrkExtensionHost: !!debugBrkExtensionHostPort,
logExtensionHostCommunication: argv.logExtensionHostCommunication,
......
......@@ -23,9 +23,9 @@ export class MainLogService implements ILogService {
}
log(...args: any[]): void {
const { verboseLogging } = this.envService.cliArgs;
const { verbose } = this.envService.cliArgs;
if (verboseLogging) {
if (verbose) {
console.log(`(${new Date().toLocaleTimeString()})`, ...args);
}
}
......
......@@ -122,7 +122,7 @@ function main(accessor: ServicesAccessor, mainIpcServer: Server, userEnv: IProce
// Spawn shared process
const sharedProcess = spawnSharedProcess({
allowOutput: !envService.isBuilt || envService.cliArgs.verboseLogging,
allowOutput: !envService.isBuilt || envService.cliArgs.verbose,
debugPort: envService.isBuilt ? null : 5871
});
......
......@@ -93,7 +93,7 @@ export class StorageService implements IStorageService {
try {
return JSON.parse(fs.readFileSync(this.dbPath).toString()); // invalid JSON or permission issue can happen here
} catch (error) {
if (this.envService.cliArgs.verboseLogging) {
if (this.envService.cliArgs.verbose) {
console.error(error);
}
......@@ -105,7 +105,7 @@ export class StorageService implements IStorageService {
try {
fs.writeFileSync(this.dbPath, JSON.stringify(this.database, null, 4)); // permission issue can happen here
} catch (error) {
if (this.envService.cliArgs.verboseLogging) {
if (this.envService.cliArgs.verbose) {
console.error(error);
}
}
......
......@@ -408,7 +408,7 @@ export class VSCodeWindow {
// Some configuration things get inherited if the window is being reloaded and we are
// in plugin development mode. These options are all development related.
if (this.isPluginDevelopmentHost && cli) {
configuration.verboseLogging = cli.verboseLogging;
configuration.verbose = cli.verbose;
configuration.logExtensionHostCommunication = cli.logExtensionHostCommunication;
configuration.debugBrkFileWatcherPort = cli.debugBrkFileWatcherPort;
configuration.debugExtensionHostPort = cli.debugExtensionHostPort;
......
......@@ -923,7 +923,7 @@ export class WindowsManager implements IWindowsService {
let currentWindowConfig = vscodeWindow.config;
if (!configuration.extensionDevelopmentPath && currentWindowConfig && !!currentWindowConfig.extensionDevelopmentPath) {
configuration.extensionDevelopmentPath = currentWindowConfig.extensionDevelopmentPath;
configuration.verboseLogging = currentWindowConfig.verboseLogging;
configuration.verbose = currentWindowConfig.verbose;
configuration.logExtensionHostCommunication = currentWindowConfig.logExtensionHostCommunication;
configuration.debugBrkFileWatcherPort = currentWindowConfig.debugBrkFileWatcherPort;
configuration.debugBrkExtensionHost = currentWindowConfig.debugBrkExtensionHost;
......
......@@ -124,7 +124,6 @@ export interface IEnvironment {
logExtensionHostCommunication: boolean;
debugBrkFileWatcherPort: number;
verboseLogging: boolean;
enablePerformance: boolean;
userExtensionsHome: string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册