Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Jan 13, 2025
1 parent 62ac685 commit 8a2b013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/app/src/cli/services/dev/app-events/file-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,8 @@ export class FileWatcher {
this.pushEvent({type: 'app_config_deleted', path, extensionPath, startTime})
} else if (isExtensionToml) {
// When a toml is deleted, we can consider every extension in that folder was deleted.
// We need to wait in case this is actually just moving folders around, not deleting them.
setTimeout(() => {
this.extensionPaths = this.extensionPaths.filter((extPath) => extPath !== extensionPath)
this.pushEvent({type: 'extension_folder_deleted', path: extensionPath, extensionPath, startTime})
}, EXTENSION_MOVE_CHECK_INTERVAL_IN_MS)
this.extensionPaths = this.extensionPaths.filter((extPath) => extPath !== extensionPath)
this.pushEvent({type: 'extension_folder_deleted', path: extensionPath, extensionPath, startTime})
} else {
setTimeout(() => {
// If the extensionPath is not longer in the list, the extension was deleted while the timeout was running.
Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/dev/processes/dev-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ async function handleDevSessionResult(
async function printActionRequiredMessages(processOptions: DevSessionProcessOptions, event?: AppEvent) {
if (!event) return
const extensionEvents = event.extensionEvents ?? []

const warningMessages = getArrayRejectingUndefined(
await Promise.all(
extensionEvents.map((eve) =>
Expand Down

0 comments on commit 8a2b013

Please sign in to comment.