When a Paste has a useful alternative rendering in Files, provide a hint

Summary: Ref T13528. When a file in Paste (like a Jupyter notebook) has a good/useful document engine, provide a link to Files.

Test Plan: {F7409881}

Maniphest Tasks: T13528

Differential Revision: https://secure.phabricator.com/D21196
This commit is contained in:
epriestley
2020-05-01 06:00:37 -07:00
parent 65a2b5e219
commit 3c1f393c81
5 changed files with 76 additions and 3 deletions

View File

@@ -748,4 +748,8 @@ final class PhabricatorJupyterDocumentEngine
return $content;
}
public function shouldSuggestEngine(PhabricatorDocumentRef $ref) {
return true;
}
}