Skip to content

Commit f6c9242

Browse files
committed
Simplify cwd fetching
1 parent d1f33e8 commit f6c9242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function refreshShellIntegrationInfoStatus(instance: ITerminalInstance) {
9595
if (instance.shellType) {
9696
detailedAdditions.push(`Shell type: \`${instance.shellType}\``);
9797
}
98-
const cwd = instance.capabilities.get(TerminalCapability.CwdDetection)?.getCwd() || instance.cwd;
98+
const cwd = instance.cwd;
9999
if (cwd) {
100100
detailedAdditions.push(`Current working directory: \`${cwd}\``);
101101
}

0 commit comments

Comments
 (0)