forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Switch over to executeCommand from sendText #24078
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
2413118
vscode engine to 1.93
anthonykim1 5de9ca5
use executeCommand
anthonykim1 6d1f522
codeaction mock
anthonykim1 c9fc4f1
compile
anthonykim1 0d78806
switching version allows debugging - magically
anthonykim1 a16a102
pin version to equal to or above 1.93
anthonykim1 ea24d50
try to fix unit test
anthonykim1 2cb1eb3
Debt: switch Promise<void> in ensureTerminal to Promise<Terminal>
anthonykim1 88b4e9f
passing test when shell integration disabled
anthonykim1 6ecf4fc
please
anthonykim1 831f893
// @ts-ignore: TS6133
anthonykim1 f3aa28e
a
anthonykim1 342587a
stop
anthonykim1 3efaf9a
try idisposable
anthonykim1 d3b2238
more trials
anthonykim1 28ef3c1
lint
anthonykim1 2375490
slowly migrate test from sendText to executeCommand
anthonykim1 a75656b
TODO: test for when shellIntegration is active, mock and fire onDidEn…
anthonykim1 a51b6b4
onDidEndTerminalShellExecution never gets fired
anthonykim1 7c01537
switch up the order
anthonykim1 923df5c
add test onDidEndTerminalShellExecutionEmitter.fire(event)
anthonykim1 16839c9
attach callback to executeCommand so onDidEndTerminalShellExecutionEm…
anthonykim1 e30bb77
switch up the order abit + comment
anthonykim1 e69c490
wow
anthonykim1 e2e71d0
remove junk
anthonykim1 3d31d1a
remove unused
anthonykim1 46d28d2
remove comment
anthonykim1 5d3878f
TODO: smart send smoke test are flaky on windows
anthonykim1 dfe61de
a
anthonykim1 8f9ab0d
take recommended feedbacks
anthonykim1 6d095c8
remove leftover comments - done
anthonykim1 563fb12
final
anthonykim1 145e2fd
remove weird import
anthonykim1 8bc3951
last missed comment
anthonykim1 610d0fb
upgrade actions/download-artifact@v4
anthonykim1 c6a4713
why
anthonykim1 2b4c2bf
try with actions/download-artifact@v3
anthonykim1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ import * as internalScripts from '../process/internal/scripts'; | |
import { createDeferred, Deferred } from '../utils/async'; | ||
import { noop } from '../utils/misc'; | ||
import { TerminalService } from './service'; | ||
import { ITerminalService } from './types'; | ||
import { ITerminalService, ITerminalExecutedCommand } from './types'; | ||
|
||
enum State { | ||
notStarted = 0, | ||
|
@@ -146,9 +146,13 @@ export class SynchronousTerminalService implements ITerminalService, Disposable | |
lockFile.dispose(); | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should use less of these services when possible. |
||
/** @deprecated */ | ||
public sendText(text: string): Promise<void> { | ||
return this.terminalService.sendText(text); | ||
} | ||
public executeCommand(commandLine: string): Promise<ITerminalExecutedCommand | undefined> { | ||
return this.terminalService.executeCommand(commandLine); | ||
} | ||
public show(preserveFocus?: boolean | undefined): Promise<void> { | ||
return this.terminalService.show(preserveFocus); | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.