Skip to content
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

Switch over to executeCommand from sendText #24078

Merged
merged 37 commits into from
Sep 12, 2024

Conversation

anthonykim1
Copy link

@anthonykim1 anthonykim1 commented Sep 9, 2024

Resolves: #23929

TODO: (debt --> in separate PR) Have ensureTerminal return Promise instead of Promise and saving this in the TerminalService class. Would avoid many uses of the !, and maybe even get to throw away the TerminalService class itself.

@anthonykim1 anthonykim1 added feature-request Request for new features or functionality area-terminal labels Sep 9, 2024
@anthonykim1 anthonykim1 added this to the September 2024 milestone Sep 9, 2024
@anthonykim1 anthonykim1 self-assigned this Sep 9, 2024
@@ -146,9 +146,13 @@ export class SynchronousTerminalService implements ITerminalService, Disposable
lockFile.dispose();
}
}
Copy link
Member

Choose a reason for hiding this comment

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

We should use less of these services when possible.

@anthonykim1 anthonykim1 marked this pull request as ready for review September 11, 2024 19:57
src/client/common/terminal/service.ts Show resolved Hide resolved
src/client/common/terminal/service.ts Outdated Show resolved Hide resolved
src/client/common/terminal/service.ts Outdated Show resolved Hide resolved
src/test/common/terminals/service.unit.test.ts Outdated Show resolved Hide resolved
src/test/common/terminals/service.unit.test.ts Outdated Show resolved Hide resolved
@anthonykim1 anthonykim1 marked this pull request as draft September 12, 2024 01:16
@anthonykim1 anthonykim1 marked this pull request as ready for review September 12, 2024 01:22
await initialize();
return undefined;
});
// TODO: This test is being flaky for windows, need to investigate why only fails on windows
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a debt item for this? and also for the TODO to change how terminal is saved.

Copy link
Author

Choose a reason for hiding this comment

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

They are now here: #24105 and #24106

Copy link
Member

@karthiknadig karthiknadig left a comment

Choose a reason for hiding this comment

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

some minor things to change

karthiknadig
karthiknadig previously approved these changes Sep 12, 2024
karthiknadig
karthiknadig previously approved these changes Sep 12, 2024
@anthonykim1 anthonykim1 marked this pull request as draft September 12, 2024 18:47
@anthonykim1 anthonykim1 marked this pull request as ready for review September 12, 2024 19:35
@anthonykim1 anthonykim1 merged commit 216c7ed into microsoft:main Sep 12, 2024
40 checks passed
anthonykim1 added a commit to anthonykim1/vscode-python that referenced this pull request Sep 13, 2024
Resolves: microsoft#23929 

TODO: (debt --> in separate PR) Have ensureTerminal return
Promise<Terminal> instead of Promise<void> and saving this in the
TerminalService class. Would avoid many uses of the !, and maybe even
get to throw away the TerminalService class itself.
anthonykim1 added a commit to anthonykim1/vscode-python that referenced this pull request Sep 15, 2024
Resolves: microsoft#23929

TODO: (debt --> in separate PR) Have ensureTerminal return
Promise<Terminal> instead of Promise<void> and saving this in the
TerminalService class. Would avoid many uses of the !, and maybe even
get to throw away the TerminalService class itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-terminal feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use executeCommand instead of sendText to activate Start Terminal REPL
2 participants