Skip to content

Commit 27c6bbf

Browse files
committed
Show build preparing status immediately
Previously we were waiting for output from the build, which could be several seconds. Issue: swiftlang#1323
1 parent d88a5c8 commit 27c6bbf

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/ui/SwiftBuildStatus.ts

+8-11
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,17 @@ export class SwiftBuildStatus implements vscode.Disposable {
136136
return false;
137137
}
138138
}
139-
// If we've found nothing that matches a known state then put up a temporary
140-
// message that we're preparing the build, as there is sometimes a delay before
141-
// building starts while the build system is preparing, especially in large projects.
142-
// The status bar has a message immediately, so only show this when using a
143-
// notification to show progress.
144-
if (
145-
!started &&
146-
(showBuildStatus === "notification" || showBuildStatus === "progress")
147-
) {
148-
update(`${name}: Preparing...`);
149-
}
150139
return false;
151140
};
152141

142+
// Begin by showing a message that the build is preparing, as there is sometimes
143+
// a delay before building starts, especially in large projects.
144+
// The status bar has a message immediately, so only show this when using a
145+
// notification to show progress.
146+
if (!started && (showBuildStatus === "notification" || showBuildStatus === "progress")) {
147+
update(`${name}: Preparing...`);
148+
}
149+
153150
return execution.onDidWrite(data => {
154151
if (parseEvents(data)) {
155152
done();

0 commit comments

Comments
 (0)