You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Viktor Nemes 191113aa5f Load selected lines from query params (#878)
* Make the editorRef as a required parameter of useGutterClickHandler

For the external line number selection it is required that we access the CodeMirror editor anywhere in the hook

* Refactor the line highlight logic to handle "unknown" lines as non-selected

Only execute the highlight when there is a valid selection (there are some keys set in state.selected)
Additionally also execute the highlight logic when the line numbers are not visible (E.g. line.gutter is falsy)

* Pass in the selectedLines from the query string and implement the pre-selection logic

* Rename useGutterClickHandler to better explain its function

* Adding nemesv as contributor

* quick tweak

* tweak
5 years ago
..
custom/modes Solidity language (#788) 5 years ago
api.js move /snippets list auth header code into lib 5 years ago
client.js snippets and account pages 5 years ago
constants.js remove old unused margin{Vertical,Horizontal} 5 years ago
highlight-languages.js Bundle size (#844) 5 years ago
routing.js Load selected lines from query params (#878) 5 years ago
util.js Load selected lines from query params (#878) 5 years ago