Skip to content

Commit e433cf6

Browse files
committed
Clean up
1 parent 62ac685 commit e433cf6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/app/src/cli/services/dev/app-events/file-watcher.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DEFAULT_DEBOUNCE_TIME_IN_MS = 200
1515
const EXTENSION_CREATION_TIMEOUT_IN_MS = 60000
1616
const EXTENSION_CREATION_CHECK_INTERVAL_IN_MS = 200
1717
const FILE_DELETE_TIMEOUT_IN_MS = 500
18-
const EXTENSION_MOVE_CHECK_INTERVAL_IN_MS = 100
18+
1919
/**
2020
* Event emitted by the file watcher
2121
*
@@ -221,11 +221,8 @@ export class FileWatcher {
221221
this.pushEvent({type: 'app_config_deleted', path, extensionPath, startTime})
222222
} else if (isExtensionToml) {
223223
// When a toml is deleted, we can consider every extension in that folder was deleted.
224-
// We need to wait in case this is actually just moving folders around, not deleting them.
225-
setTimeout(() => {
226-
this.extensionPaths = this.extensionPaths.filter((extPath) => extPath !== extensionPath)
227-
this.pushEvent({type: 'extension_folder_deleted', path: extensionPath, extensionPath, startTime})
228-
}, EXTENSION_MOVE_CHECK_INTERVAL_IN_MS)
224+
this.extensionPaths = this.extensionPaths.filter((extPath) => extPath !== extensionPath)
225+
this.pushEvent({type: 'extension_folder_deleted', path: extensionPath, extensionPath, startTime})
229226
} else {
230227
setTimeout(() => {
231228
// If the extensionPath is not longer in the list, the extension was deleted while the timeout was running.

packages/app/src/cli/services/dev/processes/dev-session.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ async function handleDevSessionResult(
172172
async function printActionRequiredMessages(processOptions: DevSessionProcessOptions, event?: AppEvent) {
173173
if (!event) return
174174
const extensionEvents = event.extensionEvents ?? []
175-
176175
const warningMessages = getArrayRejectingUndefined(
177176
await Promise.all(
178177
extensionEvents.map((eve) =>

0 commit comments

Comments
 (0)