1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/src/applications/console/plugin
epriestley 3984c14260 Tokenize external editor links so they can be safely materialized on the client
Summary:
Ref T13515. Currently, opening a file to a particular line in an external editor relies on replacing "%l" with "%l" (which is escaped as "%25l") on the server, and then replacing "%25l" with the line number on the client. This will fail if the file path (or any other variable) contains "%l" in its unencoded form.

The parser also can't identify invalid variables.

Pull the parser out, formalize it, and make it generate an intermediate representation which can be sent to the client and reconstituted.

(This temporarily breaks Diffusion and permanently removes the weird, ancient integration in Dark Console.)

Test Plan:
  - Added a bunch of tests for the actual parser.
  - Used "Open in Editor" in Differential.

Maniphest Tasks: T13515

Differential Revision: https://secure.phabricator.com/D21143
2020-04-19 09:02:49 -07:00
..
errorlog Extend from Phobject 2015-06-15 18:02:27 +10:00
event Move DarkConsole to an application 2014-10-13 11:17:09 -07:00
xhprof Add a "Startup" to DarkConsole 2015-08-21 14:53:29 -07:00
DarkConsoleErrorLogPlugin.php Tokenize external editor links so they can be safely materialized on the client 2020-04-19 09:02:49 -07:00
DarkConsoleEventPlugin.php phtize all the things 2015-05-22 21:16:39 +10:00
DarkConsolePlugin.php Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
DarkConsoleRealtimePlugin.php After a reconnect, repaint Conpherence thread state 2017-04-17 16:00:32 -07:00
DarkConsoleRequestPlugin.php Push construction of routing maps into Sites 2015-08-31 04:01:01 -07:00
DarkConsoleServicesPlugin.php Fix some minor errors (DarkConsole warning, unstable Ferret sort) 2018-03-18 15:12:25 -07:00
DarkConsoleStartupPlugin.php Add a "Startup" to DarkConsole 2015-08-21 14:53:29 -07:00
DarkConsoleXHProfPlugin.php Separate button CSS classes 2017-06-05 20:14:34 +00:00