-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add terminal location API #131028
Add terminal location API #131028
Conversation
src/vs/workbench/contrib/terminal/browser/terminalEditorService.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Daniel Imms <[email protected]>
Co-authored-by: Daniel Imms <[email protected]>
@@ -639,11 +651,27 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I | |||
if (!profile || !('options' in profile)) { | |||
throw new Error(`No terminal profile options provided for id "${id}"`); | |||
} | |||
|
|||
const internalOptions: ITerminalInternalOptions = this._resolveParentTerminal(options); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
export interface ITerminalInternalOptions { | ||
isFeatureTerminal?: boolean; | ||
useShellEnvironment?: boolean; | ||
isSplitTerminal?: boolean; | ||
target?: TerminalLocation; | ||
resolvedExtHostTerminal?: ExtHostTerminal; | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Co-authored-by: Daniel Imms <[email protected]>
This PR fixes #45407