Skip to content

Commit 738dece

Browse files
committed
more tracelogs for debugging
1 parent e4995f7 commit 738dece

File tree

1 file changed

+7
-7
lines changed
  • src/client/terminals/envCollectionActivation

1 file changed

+7
-7
lines changed

src/client/terminals/envCollectionActivation/service.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
174174

175175
private async _applyCollectionImpl(resource: Resource, shell = this.applicationEnvironment.shell): Promise<void> {
176176
const workspaceFolder = this.getWorkspaceFolder(resource);
177-
traceLog(`Inside _applyCollectionImpl in service.ts, workspace folder is: ${workspaceFolder}`);
177+
traceLog(`$$$$$$Inside _applyCollectionImpl in service.ts, workspace folder is: ${workspaceFolder}`);
178178
const settings = this.configurationService.getSettings(resource);
179179
const envVarCollection = this.getEnvironmentVariableCollection({ workspaceFolder });
180180
if (useEnvExtension()) {
181181
envVarCollection.clear();
182-
traceVerbose('Do not activate terminal env vars as env extension is being used');
182+
traceVerbose('$$$$$$Do not activate terminal env vars as env extension is being used');
183183
return;
184184
}
185185

@@ -318,7 +318,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
318318
private terminalPromptIsUnknown(resource: Resource) {
319319
const key = this.getWorkspaceFolder(resource)?.index;
320320
this.isPromptSet.delete(key);
321-
traceLog(`Inside terminalPromptIsUnknown in service.ts: this.PromptSet.delete: ${key}\n`);
321+
traceLog(`$$$$$$Inside terminalPromptIsUnknown in service.ts: this.PromptSet.delete: ${key}\n`);
322322
}
323323

324324
/**
@@ -327,7 +327,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
327327
private async trackTerminalPrompt(shell: string, resource: Resource, env: EnvironmentVariables | undefined) {
328328
this.terminalPromptIsUnknown(resource);
329329
traceLog(
330-
`Inside trackTerminalPrompt in service.ts: just called terminalPromptIsUnknown with resource: ${resource}\n`,
330+
`$$$$$$Inside trackTerminalPrompt in service.ts: just called terminalPromptIsUnknown with resource: ${resource}\n`,
331331
);
332332
if (!env) {
333333
this.terminalPromptIsCorrect(resource);
@@ -359,9 +359,9 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
359359
// PS1 returned by shell is not predictable: #22078
360360
// Hence calculate it ourselves where possible. Should no longer be needed once #22128 is available.
361361
const customShellType = identifyShellFromShellPath(shell);
362-
traceLog(`Inside getPS1 in service.ts: Custom shell type is ${customShellType}`);
362+
traceLog(`$$$$$$Inside getPS1 in service.ts: Custom shell type is ${customShellType}`);
363363
if (this.noPromptVariableShells.includes(customShellType)) {
364-
traceLog(`Inside getPS1 in service.ts: No prompt variable shells\n`);
364+
traceLog(`$$$$$$Inside getPS1 in service.ts: No prompt variable shells\n`);
365365
return env.PS1;
366366
}
367367
if (this.platform.osType !== OSType.Windows) {
@@ -377,7 +377,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
377377
}
378378
if (env.PS1) {
379379
// Prefer PS1 set by env vars, as env.PS1 may or may not contain the full PS1: #22056.
380-
traceLog(`Inside getPS1 in service.ts: Returning PS1 from env vars`);
380+
traceLog(`$$$$$$Inside getPS1 in service.ts: Returning PS1 from env vars`);
381381
return env.PS1;
382382
}
383383
return undefined;

0 commit comments

Comments
 (0)