anthonydresser / testissues

0 stars 0 forks source link

[WYSIWYG] Relative Link paths are changed when updating cells. #4992

Open anthonydresser opened 3 years ago

anthonydresser commented 3 years ago

Absolute links are changed to relative links, but relative links are changed to a different path, when updating the code cell. It's important to note that both links keep working, but it could be confusing for the user to see a different path from what they entered. Actual result:

[absolute links](.\WIT-Demo\Notebook.ipynb)

[relative link](..\AppData\Local\Programs\Azure%20Data%20Studio%20-%20RC1\resources\app\out\vs\code\electron-browser\workbench\WIT-Demo\Notebook.ipynb)

Expected Result:

[absolute links](.\WIT-Demo\Notebook.ipynb)

[relative link](.\WIT-Demo\Notebook.ipynb)

Azure Data Studio Version: Version: 1.27.0-rc1 (user setup) Commit: 3368af9 Date: 2021-03-15T06:07:09.474Z VS Code: 1.51.0 Electron: 9.4.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.19042 Steps to Reproduce:

  1. Create a code cell
  2. Add a link in WYSIWYG, using the link button
  3. Exit the cell
  4. Re-enter the cell and update it.
  5. The relative link has been changed to a different path.