Matt Bierner
2363668892
Don't encode label for md path completions
...
For #142838
2022-02-24 13:52:31 -08:00
Matt Bierner
a56905be63
Use decodeURIComponent instead of decodeUri
...
This is not actually a uri
2022-02-24 13:52:31 -08:00
Matt Bierner
9e3d77b1e4
Also use relative pattern for watching markdown resources
2022-02-22 16:22:55 -08:00
Matt Bierner
7f5be63be9
Escape spaces in file names for md suggestions
...
Fixes #142838
2022-02-11 16:18:24 -08:00
Kazuyuki Sato
a83046f9e6
Decode header suggestions in Markdown path IntelliSense, https://github.com/microsoft/vscode/issues/142330 ( #142392 )
2022-02-07 09:19:24 -08:00
Matt Bierner
1981fd8ece
Fix markdown previews not having an icon
2022-02-03 12:01:10 -08:00
Johannes Rieken
4a130c40ed
enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391
2022-02-02 14:35:33 +01:00
Megan Rogge
265cca240a
tweak bold regexp ( #141968 )
2022-02-01 14:10:02 -06:00
Matt Bierner
fdd5c8471a
Avoid lookbehind in regexp
...
Fixes #141689
2022-01-27 17:54:50 -08:00
Matt Bierner
4bdfc9ad01
type -> interface
2022-01-27 17:54:50 -08:00
Matt Bierner
ae08924bfa
readonly
2022-01-27 17:54:50 -08:00
Waqas Ali
a514979b02
Prevent link highlight in markdown code blocks and spans ( #140816 )
...
* Prevent link highlight in markdown codeblocks (#139770 )
* Handle inline codespan variants for markdown link provider (#139770 )
* Refactor codespan detection in markdown link provider (#139770 )
2022-01-25 12:38:50 -08:00
Matt Bierner
b44c6b3e0f
Treat / as relative to current folder for loose md files
2022-01-24 15:01:52 -08:00
Matt Bierner
968ef3a828
Implement opening for markdown custom editor
...
Fixes #138196
2022-01-19 14:41:39 -08:00
Matt Bierner
280658327f
Move toc expanding for notebooks logic into toc
2022-01-19 14:41:38 -08:00
Matt Bierner
a2d7dfaf35
Simplify toc structure
2022-01-19 14:41:38 -08:00
Matt Bierner
7756c6d7c7
Enable header completions for rest of notebook markdown cells
2022-01-19 14:41:38 -08:00
Matt Bierner
0906e08747
Enable path completions in notebook markdown cells
2022-01-19 11:31:10 -08:00
Matt Bierner
a3e350e5b3
Enable completions in markdown defintions
...
Fixes #140602
2022-01-14 15:15:56 -08:00
Matt Bierner
3d79cbb912
Fix markdown path suggestions on windows
2022-01-13 16:51:36 -08:00
Matt Bierner
a1f3d41472
Use generators
2022-01-12 19:17:45 -08:00
Matt Bierner
dc03ccdfa9
Support insert and replace completion styles for paths in markdown
2022-01-12 19:05:37 -08:00
Matt Bierner
1f6c069a1a
Adding basic support for reference link completions
...
For #140602
2022-01-12 19:05:37 -08:00
Matt Bierner
a4e529c759
Add basic markdown link completions
...
For #140602
Only normal links for now. Will add reference links later. Should support the forms:
- `[](dir/file.md)`
- `[](./dir/file.md)`
- `[](/root-dir/file.md)`
- `[](#header)`
- `[](./dir/file.md#header)`
2022-01-12 18:13:21 -08:00
Matt Bierner
43c5bc4795
Always add dirname of current md document to localResourceRoots
...
Fixes #139907
Previously we only added this dir on `file` file system
2022-01-11 12:39:54 -08:00
Matt Bierner
f528f1a415
Make sure markdown refresh forces the preview to be updated
2022-01-08 17:30:37 -08:00
Mohammad Sadegh Salimi
2a0d371ca3
Adding support for RTL languages for readme markdown preview. ( #139644 )
...
* [markdown preview] dir "auto" added to the markdown-body class.
* fix markdown preview for RTL languages
2022-01-05 14:14:32 -08:00
Matt Bierner
5cbc8ed825
Enable find widget in markdown preview custom editors
...
Fixes #139148
2021-12-14 18:37:47 -08:00
Matt Bierner
9f454a39b3
Fix md preview trying to update its content on dispose
2021-12-14 18:37:47 -08:00
Joyce Er
efd055b8ba
Refresh markdown preview on all file changes ( #138301 )
...
* Refresh markdown preview on all file changes
* Don't watch `https`, `http`, and `data` uris
2021-12-06 12:36:22 -08:00
Matt Bierner
23090cfde3
Force update the md preview when a file on disk changes
2021-11-09 16:14:04 -08:00
Matt Bierner
516bc19e99
Fix md preview reverting to original version when switching away
2021-11-03 20:54:21 -07:00
Matt Bierner
a046cfb481
Revert "Remove image stabilizer code"
...
This reverts commit 69e8e3c091263a2e00592cca06bf1dba96b70c7e.
2021-11-03 14:48:48 -07:00
Matt Bierner
1f3f74f4ea
Clear this._fileWatchersBySrc
2021-11-03 14:48:47 -07:00
Matt Bierner
86c446baee
Don't update icon path so much
...
We only need to update this on creation, never every time something changes
2021-11-03 14:48:47 -07:00
Matt Bierner
9c2b239e2e
Remove image stabilizer code
...
Should not be required with incremental dom updates
2021-11-03 14:48:46 -07:00
Matt Bierner
359cd4330d
clean up onDidChangeActiveTextEditor
...
Also fixes potential bug if line === 0
2021-11-03 14:48:46 -07:00
Matt Bierner
97e646c0da
Update preview if text document is reopened
...
Fixes #135568
2021-11-03 14:48:45 -07:00
Matt Bierner
8f672cac62
Use morphdom to reduce number of full page updates to md preview
...
This should help improve scroll sync and also reduce the number of times we go out to the network if images are in the preview
2021-11-01 15:33:00 -07:00
Matt Bierner
a9bc0553f7
Support definition links with spaces
...
For #136073
2021-11-01 09:23:03 -07:00
Matt Bierner
830987eac3
Refactor document link opening
...
- Extract out of command
- Try to preserve uri instead of converting to path
- Better handle case with absolute file path when there is no workspace
2021-10-13 19:27:35 -07:00
Matt Bierner
d1f72b5420
Try to clairify how md links are resolved
...
For #101203
The current logic ends up tossing out the uri scheme and other important info when opening md links. This PR tries to avoid that
2021-10-13 19:00:19 -07:00
Lemmingh
d3ceb35bec
Add source map for every possible element in the Markdown preview ( #134799 )
...
* Update markdown-it and type definitions
* Refresh the source map mechanism in `markdownEngine.ts`
2021-10-12 16:25:56 -07:00
Logan Rasmussen
35ea6c0cf5
Remove angle brackets when checking the scheme ( #133419 )
...
* Remove angle brackets when checking the scheme
This only removes the brackets during the scheme check if the initial link provided actually has angle brackets.
* Move angle bracket logic to document link file
Change to use replace instead of match for easier reading
2021-10-04 08:31:52 -07:00
Matt Bierner
e43d47e852
Add missing await
...
Doesn't seem to cause any issues currently
2021-09-14 09:54:05 -07:00
Matt Bierner
c62f59fcae
Fix map func not having this bound
...
Fixes #132703
2021-09-09 15:03:30 -07:00
Matt Bierner
0e52275271
Introduce WebviewOptions.forms
...
Fixes #132157
2021-09-02 13:24:49 -07:00
Matt Bierner
af39918361
Organize imports in md ext
2021-08-03 13:22:46 -07:00
Matt Bierner
5f45df8330
Fix formatting
...
Github merge UI :'(
2021-08-02 19:54:03 -07:00
Nicholas Rayburn and Matt Bierner
72d9aa625e
Fix #124276 batch markdown file requests ( #124545 )
...
* fix #124276 batch markdown file requests
* cleanup and modify return type
* Revert "cleanup and modify return type"
This reverts commit 62d62b4947 .
* cleanup getAllMarkdownDocuments
* fix markdown batching
* fix var not being modified
cleanup function call
remove modulo use
* don't create a new array on each iteration
Co-authored-by: Matt Bierner <matb@microsoft.com >
2021-08-02 19:44:56 -07:00