Skip to content

Commit

Permalink
check external_apps in config.json for hasPriority)
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetaRa committed Jun 1, 2023
1 parent fd117de commit 2b7b602
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web-runtime/src/store/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ const mutations = {
extension: extension.extension,
mimeType: extension.mimeType,
handler: extension.handler,
hasPriority: extension.hasPriority !== false,
hasPriority:
extension.hasPriority ||
state.fileEditorConfigs?.[app]?.priorityExtensions?.includes(extension.extension) ||
false,
config: (state.fileEditorConfigs || {})[app],
...(extension.label && { label: extension.label })
}
Expand Down

0 comments on commit 2b7b602

Please sign in to comment.