Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15413493
D19171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19171.diff
View Options
diff --git a/src/applications/differential/controller/DifferentialChangesetViewController.php b/src/applications/differential/controller/DifferentialChangesetViewController.php
--- a/src/applications/differential/controller/DifferentialChangesetViewController.php
+++ b/src/applications/differential/controller/DifferentialChangesetViewController.php
@@ -390,10 +390,20 @@
return array();
}
+ $change_type = $changeset->getChangeType();
+ if (DifferentialChangeType::isDeleteChangeType($change_type)) {
+ // If this is a lint message on a deleted file, show it on the left
+ // side of the UI because there are no source code lines on the right
+ // side of the UI so inlines don't have anywhere to render. See PHI416.
+ $is_new = 0;
+ } else {
+ $is_new = 1;
+ }
+
$template = id(new DifferentialInlineComment())
- ->setChangesetID($changeset->getID())
- ->setIsNewFile(1)
- ->setLineLength(0);
+ ->setChangesetID($changeset->getID())
+ ->setIsNewFile($is_new)
+ ->setLineLength(0);
$inlines = array();
foreach ($messages as $message) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 7:10 PM (4 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708189
Default Alt Text
D19171.diff (1 KB)
Attached To
Mode
D19171: Show lint messages in deleted files on the left-hand side of the change
Attached
Detach File
Event Timeline
Log In to Comment