Skip to content

Commit cde7a14

Browse files
committed
fix: CI failures — add 'buid' to typos allowlist and fix trailing space for Windows ConPTY
1 parent 0baf59b commit cde7a14

7 files changed

Lines changed: 35 additions & 19 deletions

File tree

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[default.extend-words]
22
ratatui = "ratatui"
33
PUNICODE = "PUNICODE"
4+
buid = "buid"
45

56
[files]
67
extend-exclude = [

crates/vite_select/src/interactive.rs

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,32 @@ fn render(
123123
}
124124

125125
// Prompt line
126-
crossterm::execute!(
127-
stdout,
128-
SetAttribute(Attribute::Bold),
129-
Print("Search task"),
130-
SetAttribute(Attribute::Reset),
131-
Print(" ("),
132-
Print("\u{2191}/\u{2193} to move, enter to select"),
133-
Print("): "),
134-
Print(&state.query),
135-
Print("\r\n"),
136-
)?;
126+
// Print ": " separator before query only when query is non-empty,
127+
// to avoid a trailing space that Windows ConPTY would strip.
128+
if state.query.is_empty() {
129+
crossterm::execute!(
130+
stdout,
131+
SetAttribute(Attribute::Bold),
132+
Print("Search task"),
133+
SetAttribute(Attribute::Reset),
134+
Print(" ("),
135+
Print("\u{2191}/\u{2193} to move, enter to select"),
136+
Print("):"),
137+
Print("\r\n"),
138+
)?;
139+
} else {
140+
crossterm::execute!(
141+
stdout,
142+
SetAttribute(Attribute::Bold),
143+
Print("Search task"),
144+
SetAttribute(Attribute::Reset),
145+
Print(" ("),
146+
Print("\u{2191}/\u{2193} to move, enter to select"),
147+
Print("): "),
148+
Print(&state.query),
149+
Print("\r\n"),
150+
)?;
151+
}
137152
lines += 1;
138153

139154
// Items

crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive cancel.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ expression: e2e_outputs
44
---
55
> vp run
66
@ expect-milestone: task-select::0
7-
Search task (↑/to move, enter to select):
7+
Search task (↑/to move, enter to select):
88
> build: echo build app
99
lint: echo lint app
1010
test: echo test app

crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive scroll long list.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ expression: e2e_outputs
44
---
55
> vp run
66
@ expect-milestone: task-select::0
7-
Search task (↑/to move, enter to select):
7+
Search task (↑/to move, enter to select):
88
> build: echo build app
99
lint: echo lint app
1010
test: echo test app
@@ -23,7 +23,7 @@ Search task (↑/↓ to move, enter to select):
2323
@ write-key: down
2424
@ write-key: down
2525
@ expect-milestone: task-select::8
26-
Search task (↑/to move, enter to select):
26+
Search task (↑/to move, enter to select):
2727
lint: echo lint app
2828
test: echo test app
2929
lib#build: echo build lib
@@ -42,7 +42,7 @@ Search task (↑/↓ to move, enter to select):
4242
@ write-key: up
4343
@ write-key: up
4444
@ expect-milestone: task-select::0
45-
Search task (↑/to move, enter to select):
45+
Search task (↑/to move, enter to select):
4646
> build: echo build app
4747
lint: echo lint app
4848
test: echo test app

crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search then select.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ expression: e2e_outputs
44
---
55
> vp run
66
@ expect-milestone: task-select::0
7-
Search task (↑/to move, enter to select):
7+
Search task (↑/to move, enter to select):
88
> build: echo build app
99
lint: echo lint app
1010
test: echo test app

crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ expression: e2e_outputs
44
---
55
> vp run
66
@ expect-milestone: task-select::0
7-
Search task (↑/to move, enter to select):
7+
Search task (↑/to move, enter to select):
88
> build: echo build app
99
lint: echo lint app
1010
test: echo test app
@@ -16,7 +16,7 @@ Search task (↑/↓ to move, enter to select):
1616
(…4 more)
1717
@ write-key: down
1818
@ expect-milestone: task-select::1
19-
Search task (↑/to move, enter to select):
19+
Search task (↑/to move, enter to select):
2020
build: echo build app
2121
> lint: echo lint app
2222
test: echo test app

crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select with recursive.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ expression: e2e_outputs
44
---
55
> vp run -r
66
@ expect-milestone: task-select::0
7-
Search task (↑/to move, enter to select):
7+
Search task (↑/to move, enter to select):
88
> build: echo build app
99
lint: echo lint app
1010
test: echo test app

0 commit comments

Comments
 (0)