Skip to content

Add terminal location API - #131028

Merged
Megan Rogge (meganrogge) merged 29 commits into
mainfrom
merogge/split-api
Aug 20, 2021
Merged

Megan Rogge (meganrogge) merged 29 commits into
mainfrom
merogge/split-api

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

This PR fixes #45407

@Tyriar Daniel Imms (Tyriar) changed the title Add split terminal API Add terminal location API Aug 17, 2021
throw new Error(`No terminal profile options provided for id "${id}"`);
}

const internalOptions: ITerminalInternalOptions = this._resolveParentTerminal(options);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we convert to/from ExtHostTerminalIdentifier whenever we go between mainThread and extHost, can we avoid this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no because this is the very way we are able to pass between them. perhaps I'm not understanding

Comment on lines 51 to 55
export interface ITerminalInternalOptions {
isFeatureTerminal?: boolean;
useShellEnvironment?: boolean;
isSplitTerminal?: boolean;
target?: TerminalLocation;
resolvedExtHostTerminal?: ExtHostTerminal;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to move location to the actual options instead of internal options?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not possible because the types of location differ between MainThread and extHostTerminalService, but they share the TerminalLaunchConfig interface

@meganrogge
Megan Rogge (meganrogge) deleted the merogge/split-api branch August 20, 2021 02:08
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an API for specifying terminal location

2 participants