Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jan 5, 2023
1 parent b5fa012 commit fe40d21
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2529,7 +2529,10 @@ export class TerminalLabelComputer extends Disposable {

// Only set cwdFolder if detection is on
if (templateProperties.cwd && detection && (!this._instance.shellLaunchConfig.isFeatureTerminal || labelType === TerminalLabelType.Title)) {
const cwdUri = URI.from({ scheme: this._instance.workspaceFolder?.uri.scheme || Schemas.file, path: path.resolve(this._instance.cwd) });
const cwdUri = URI.from({
scheme: this._instance.workspaceFolder?.uri.scheme || Schemas.file,
path: this._instance.cwd ? path.resolve(this._instance.cwd) : undefined
});
// Multi-root workspaces always show cwdFolder to disambiguate them, otherwise only show
// when it differs from the workspace folder in which it was launched from
let showCwd = false;
Expand Down

0 comments on commit fe40d21

Please sign in to comment.