Skip to content

Commit

Permalink
Stop banner from displaying if file is not editable by user.
Browse files Browse the repository at this point in the history
  • Loading branch information
ByThePowerOfScience authored and hsz committed Apr 5, 2024
1 parent df12695 commit a15b417
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class IgnoredEditingNotificationProvider(project: Project) : EditorNotificationP
if (DumbService.isDumb(project)) {
return null
}
if (!file.isWritable()) {
return null
}
if (!settings.notifyIgnoredEditing || !changeListManager.isIgnoredFile(file) && !manager.isFileIgnored(file)) {
return null
}
Expand Down

0 comments on commit a15b417

Please sign in to comment.