Skip to content

Commit 8f5a474

Browse files
committed
More PR feedback
1 parent c4392c1 commit 8f5a474

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/config/CustomModesManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ export class CustomModesManager {
143143

144144
const handleSettingsChange = async () => {
145145
try {
146+
// Ensure that the settings file exists (especially important for delete events)
147+
await this.getCustomModesFilePath()
146148
const content = await fs.readFile(settingsPath, "utf-8")
147149

148150
const errorMessage =

0 commit comments

Comments
 (0)