Merge pull request #6681 from earendil-works/fix/set-title-after-checking-packages-windows
windows: reset pi terminal title after checking npm packages
This commit is contained in:
@@ -833,11 +833,19 @@ export class InteractiveMode {
|
||||
});
|
||||
|
||||
// Start package update check asynchronously
|
||||
this.checkForPackageUpdates().then((updates) => {
|
||||
if (updates.length > 0) {
|
||||
this.showPackageUpdateNotification(updates);
|
||||
}
|
||||
});
|
||||
this.checkForPackageUpdates()
|
||||
.then((updates) => {
|
||||
if (updates.length > 0) {
|
||||
this.showPackageUpdateNotification(updates);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
// On Windows, npm can overwrite the shared console title while checking
|
||||
// extension package versions. Restore Pi's title after the startup check.
|
||||
if (process.platform === "win32" && this.isInitialized) {
|
||||
this.updateTerminalTitle();
|
||||
}
|
||||
});
|
||||
|
||||
// Check tmux keyboard setup asynchronously
|
||||
this.checkTmuxKeyboardSetup().then((warning) => {
|
||||
|
||||
Reference in New Issue
Block a user