Matt Bierner
7d46b77c31
Disable fuzzy links in md preview
...
Fixes #136198
2021-11-01 17:41:40 -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
b7c340f119
Simplify import path
2021-10-14 09:32:35 -07:00
Matt Bierner
c986aef642
Remove .only and fix fragment used when opening file
...
Keeping the fragment causes a duplicated file to be opened
2021-10-13 19:33:56 -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
Matt Bierner
8b2b819f55
Update test case
2021-10-12 17:29:53 -07:00
Matt Bierner
5d60bcd241
Fix null type error
2021-10-12 17:02:06 -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
Matt Bierner
0dae77d06e
Enable markdown links with line numbers to non-md files
...
Fixes #125320
2021-10-07 18:35:09 -07:00
Matt Bierner
ecae847b95
Fix navigate in untitled files
2021-10-07 18:14:16 -07:00
Matt Bierner
d8507236f1
Rewrite logic for opening markdown document links
...
Fixes #133823
This rewrites openDocumentLink to use `stat` to check if files exists before trying to open them. This lets us avoid showing extra error popups while trying to open resources
2021-10-07 18:10:05 -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
4c78259529
Revert 75e1fa6c43
...
Fixes #132741
Let's keep the outline extensible. Instead, a markdown extension could contribute support for the syntax in the original issue in #131427
2021-09-14 16:36:53 -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
d3585388be
Make sure markdown.showSource correctly awaits opening the document
...
Fixes #132914
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
277f6ef132
Log errors when loading markdown-it plugins
2021-09-08 15:12:46 -07:00
Matt Bierner
0e52275271
Introduce WebviewOptions.forms
...
Fixes #132157
2021-09-02 13:24:49 -07:00
John Murray
75e1fa6c43
fix #131427 ignore extension contributions when populating Outline for markdown file ( #131572 )
2021-08-30 14:13:17 -07:00
Benjamin Pasero
68daa9669e
fix #131535 ( #131630 )
2021-08-25 10:53:38 -07:00
Jean Pierre
c094fcf995
Fixes #113475 ( #130815 )
2021-08-16 16:47:23 -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
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
Matt Bierner
134c345351
Try adding browser specific tsconfig
...
Trying to add this to catch dependencies we take on node types
2021-07-22 17:00:17 -07:00
Matt Bierner
ff922dc231
Use TextDecoder instead of Buffer
...
Fixes #129165
2021-07-22 13:36:22 -07:00
Martin Aeschlimann
7927075f89
Merge pull request #128545 from microsoft/joh/webpack5
...
Adopt webpack 5
2021-07-14 22:32:54 +02:00
Matt Bierner
5b8ce768f3
Add getNonce function to generate webview nonces
2021-07-13 10:02:24 -07:00
Martin Aeschlimann
7ebe6a6054
adopt web extensions to webpack 5
2021-07-08 21:41:03 +02:00
Matt Bierner
a71ebc98ff
Avoid warning when acessing md setting
2021-07-07 16:58:04 -07:00
Andrea Mah
1664732e44
separated editor scroll info by type and consume entry on access
2021-06-14 13:34:41 -06:00
Matt Bierner
0a57fd87b1
Enable math in markdown preview
...
Fixes #124783
2021-06-08 09:58:54 -07:00
Henning Dieterichs
feed53b813
Merge branch 'main' into hediet/refactor-language-configuration
2021-05-31 19:40:48 +02:00
Matt Bierner
7bc2019b8d
Updating pinning test
2021-05-21 15:01:05 -07:00
Jean Pierre
be8745ac9e
Fixes #123228 ( #123584 )
...
Co-authored-by: Matt Bierner <matb@microsoft.com >
2021-05-21 14:51:18 -07:00
Matt Bierner
6ee883bfa3
Split href before decoding instead of after
...
Fixes #123228
This fixes the case where `#` appears in the path
2021-05-21 14:49:46 -07:00
Matt Bierner
77ff6eb03b
Add image specific link normalizer ( #124400 )
2021-05-21 14:42:50 -07:00
Matt Bierner
e9b8c12915
Add types
2021-05-21 14:36:19 -07:00
Matt Bierner
22dc518a21
Remove unused type
2021-05-21 12:16:49 -07:00
Matt Bierner
97bbacd808
Remove extra call to with
2021-05-21 12:16:49 -07:00
Matt Bierner
79dea51e79
Rewrite webview urls to be more url-ish
...
## Problem
Webview uris currently have the form:
```
https://uuid.vscode-webview.net/vscode-resource/scheme/authority/path ...
```
We have this syntax because we need to be able to recover the original scheme and authority of the resource in order to load it from disk
However this syntax means that absolute urls don't behave as you'd expect. For example, if you have a webview that sets a `<base>` to a document in the workspace, an absolute url `/abs/path.png` ends up being resolved to:
```
https://uuid.vscode-webview.net/abs/path.png
```
This drops the original scheme and authority, which prevents us from loading the resource
## Fix
With this change, I've moved the original scheme and authority into the authority of the webview uri instead of the path:
```
https://scheme+authority.vscode-resource.uuid.vscode-webview.net/path ...
```
With this change, absolute paths should correctly be resolved
2021-05-21 09:28:43 -07:00
Andrea Mah
f594bb47e5
removing more unecessary whitespace
2021-05-19 17:00:55 -06:00
Andrea Mah
41606da2dc
removing unecessary spaces
2021-05-19 16:59:26 -06:00
Andrea Mah
9ee1906718
pr feedback and combining prevEditor info for preview and non-preview
2021-05-19 16:57:12 -06:00
Henning Dieterichs
a1af8aa651
Refactors calls to languages.setLanguageConfiguration to declarative descriptions in language-configuration.json. This fixes #98621 .
2021-05-17 09:12:01 +02:00
Andrea Mah
94498778fb
cleanup
2021-05-13 15:24:56 -06:00
Andrea Mah
9731995d94
addressed ! nit
2021-05-13 12:39:52 -06:00
Andrea Mah
3dec3b3385
applied PR feedback
2021-05-13 12:30:10 -06:00