feat: Enable WebIde to navigate to line in project
Issue: Web IDE doesn't open file at specified line number (#442)
What does this MR do and why?
This MR allows the Web IDE to open file at specific line number provided in the URL in the format of #L{line_number} so that we can create links that open files at specific line numbers in Web IDE.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Start Web IDE locally
- Add line number and file path params to url ex:
https://main.127.0.0.1.nip.io:8000/?lineRange=14&filePath=README.md - Press the Start Gitlab Web IDE button
Edited by Joseph Fletcher