ide-mode flag cleanup (#5531)
This commit is contained in:
parent
2180dd13dc
commit
dca040908a
|
@ -62,7 +62,6 @@ export interface CliArgs {
|
||||||
experimentalAcp: boolean | undefined;
|
experimentalAcp: boolean | undefined;
|
||||||
extensions: string[] | undefined;
|
extensions: string[] | undefined;
|
||||||
listExtensions: boolean | undefined;
|
listExtensions: boolean | undefined;
|
||||||
ideMode?: boolean | undefined;
|
|
||||||
ideModeFeature: boolean | undefined;
|
ideModeFeature: boolean | undefined;
|
||||||
proxy: string | undefined;
|
proxy: string | undefined;
|
||||||
includeDirectories: string[] | undefined;
|
includeDirectories: string[] | undefined;
|
||||||
|
@ -287,9 +286,7 @@ export async function loadCliConfig(
|
||||||
) ||
|
) ||
|
||||||
false;
|
false;
|
||||||
const memoryImportFormat = settings.memoryImportFormat || 'tree';
|
const memoryImportFormat = settings.memoryImportFormat || 'tree';
|
||||||
const ideMode =
|
const ideMode = settings.ideMode ?? false;
|
||||||
(argv.ideMode ?? settings.ideMode ?? false) &&
|
|
||||||
process.env.TERM_PROGRAM === 'vscode';
|
|
||||||
|
|
||||||
const ideModeFeature =
|
const ideModeFeature =
|
||||||
(argv.ideModeFeature ?? settings.ideModeFeature ?? false) &&
|
(argv.ideModeFeature ?? settings.ideModeFeature ?? false) &&
|
||||||
|
|
|
@ -302,7 +302,7 @@ export class Config {
|
||||||
this.noBrowser = params.noBrowser ?? false;
|
this.noBrowser = params.noBrowser ?? false;
|
||||||
this.summarizeToolOutput = params.summarizeToolOutput;
|
this.summarizeToolOutput = params.summarizeToolOutput;
|
||||||
this.ideModeFeature = params.ideModeFeature ?? false;
|
this.ideModeFeature = params.ideModeFeature ?? false;
|
||||||
this.ideMode = params.ideMode ?? true;
|
this.ideMode = params.ideMode ?? false;
|
||||||
this.ideClient = params.ideClient;
|
this.ideClient = params.ideClient;
|
||||||
|
|
||||||
if (params.contextFileName) {
|
if (params.contextFileName) {
|
||||||
|
|
Loading…
Reference in New Issue