Skip to content

Commit 6194395

Browse files
authored
Merge pull request microsoft#254650 from microsoft/copilot/fix-254649
Add current working directory to shell integration section in terminal hover
2 parents 769275a + f6c9242 commit 6194395

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/terminal/browser/terminalTooltip.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ export function refreshShellIntegrationInfoStatus(instance: ITerminalInstance) {
9595
if (instance.shellType) {
9696
detailedAdditions.push(`Shell type: \`${instance.shellType}\``);
9797
}
98+
const cwd = instance.cwd;
99+
if (cwd) {
100+
detailedAdditions.push(`Current working directory: \`${cwd}\``);
101+
}
98102
const seenSequences = Array.from(instance.xterm.shellIntegration.seenSequences);
99103
if (seenSequences.length > 0) {
100104
detailedAdditions.push(`Seen sequences: ${seenSequences.map(e => `\`${e}\``).join(', ')}`);

0 commit comments

Comments
 (0)