File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/library/src/server/applications/terminal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export async function initializeStdout(
57
57
export async function sendStdin ( options : { tabId : TabId ; data : string } ) : Promise < void > {
58
58
const tabId = options . tabId . tabId
59
59
const app = terminals . get ( tabId )
60
- assert ( app !== undefined , `Terminal instance for clientId not found - cannot send stdin. Maybe it's not started yet?` )
60
+ assert ( app !== undefined , `Terminal instance for tabId not found - cannot send stdin. Maybe it's not started yet?` )
61
61
assert (
62
62
app . application ,
63
63
`Terminal application not found for client id ${ options . tabId . tabId } . Maybe it's not started yet?`
@@ -73,11 +73,11 @@ export async function runBlockingShellCommand(
73
73
) : Promise < BlockingShellCommandOutput > {
74
74
const tabId = input . tabId . tabId
75
75
const app = terminals . get ( tabId )
76
- assert ( app !== undefined , `Terminal instance for clientId not found - cannot send stdin. Maybe it's not started yet?` )
77
76
assert (
78
- app . application ,
79
- `Terminal application not found for client id ${ input . tabId . tabId } . Maybe it's not started yet?`
77
+ app !== undefined ,
78
+ `Terminal instance for tabId ${ input . tabId . tabId } not found - cannot send stdin . Maybe it's not started yet?`
80
79
)
80
+ assert ( app . application , `Terminal application not found for tabId ${ input . tabId . tabId } . Maybe it's not started yet?` )
81
81
82
82
const testDirectory = app . state ?. testDirectory
83
83
assert ( testDirectory , `Test directory not found for client id ${ input . tabId . tabId } . Maybe neovim's not started yet?` )
You can’t perform that action at this time.
0 commit comments