Commit Graph

650 Commits

Author SHA1 Message Date
Matt Bierner
2edb9bc9ca Reapply parcel/watcher adoption
Revert "Revert e7fffbf1c9169087f1098aedfe54c59c079fa3ac"

This reverts commit 6786b0ad7d.

Two changes:

- Lazy import parcel/watcher
- Add `@parcel/watcher` as a dev dep in extensions folder so that we pull in correct version for build os
2022-03-24 14:13:39 -07:00
Dirk Baeumer
6786b0ad7d Revert e7fffbf1c9 2022-03-24 09:04:05 +01:00
Matt Bierner
e7fffbf1c9 Use parcel for watching esbuild build files
Seeing small but consistent cpu usage when using esbuild's watcher. Switch to parcel to avoid this
2022-03-23 14:49:59 -07:00
Matt Bierner
e6e907e721 Move drop into feature to own file 2022-03-22 18:18:03 -07:00
Matt Bierner
77d9be7a45 Use text/uri-list for drop into editor
For #145713
2022-03-22 17:36:32 -07:00
Matt Bierner
82c70007a3 Make sure we decode path components for md path completions
Fixes #145447
2022-03-22 16:58:37 -07:00
Matt Bierner
d2db6fb2d0 Remove negative lookbehind in regexp
Fixes #145655
2022-03-22 14:34:46 -07:00
Johannes
0f648cd7db add eslint rule to disallow look behind regex feature, ignore in git and markdown fyi @lszomoru, @mjbvz 2022-03-22 16:02:19 +01:00
Matt Bierner
bfc026b97a Drop into text editor api proposal (#143334)
* Add drop into editor api proposal

For #142990

* Use AsyncEmitter
2022-03-18 11:32:11 -07:00
Logan Ramos
9b7268acf9 Update telemetry module 2022-03-18 11:34:33 -04:00
Matt Bierner
307364a174 Check the static line cache for markdown custom editors
Fixes #138161
2022-03-17 16:06:07 -07:00
BamBamboozled
b6f6a37cbd Add support for references when no [] exists (#144781)
* add single reference linking regex

* add less invasive regex

* add lookahead to exclude [tag]: <url> case

* add tests for references when no [] exists

* revert integration test script

* make test description clearer

* remove vim swap file (whoops)

Co-authored-by: Jayce <grate.resales.0r@icloud.com>
Co-authored-by: Jefferson Chen <jc@Jeffersons-MBP.attlocal.net>
2022-03-17 12:55:31 -07:00
Matt Bierner
bd36b7d6a3 Make sure we set html on markdown preview when it is not visible
Fixes #138630

If the webview does not exist, we need to update the html on it instead of posting a message to it. This makes sure the correct content is shown when the webview is created again

This also removes a previous workaround for this issue that I no longer believe is required
2022-03-08 18:08:47 -08:00
Matt Bierner
eaf352e6d1 Hook up watch properly for extension build scripts 2022-03-08 17:54:16 -08:00
Matt Bierner
78e1b3cca8 Bump highlight JS version 2022-03-08 16:27:42 -08:00
Matt Bierner
fb6cf37ea9 Move simple-browser to use esbuild for webview scripts 2022-03-08 16:23:14 -08:00
Matt Bierner
2f48496d2b Switch the markdown preview script to use esbuild 2022-03-08 15:48:13 -08:00
Matt Bierner
79d381f1df Use vscode-uri instead of node's path
This makes sure we handle other types of uris instead of assuming they are all file uris
2022-03-08 15:48:13 -08:00
Matt Bierner
7f39250d49 Remove extra spread 2022-03-08 14:51:45 -08:00
Matt Bierner
6d64839d01 Fix test 2022-02-24 14:33:55 -08:00
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
David Dossett
4bef8dc8d7 Fix #143837 2022-02-23 16:55:41 -08:00
Matt Bierner
9e3d77b1e4 Also use relative pattern for watching markdown resources 2022-02-22 16:22:55 -08:00
Martin Aeschlimann
db9e8fba63 remove unecessary files in build 2022-02-18 20:38:55 +01:00
rebornix
a93f7e0b23 indentation. 2022-02-16 18:05:40 -08:00
rebornix
07e840cb51 Support syntax highlighting in code blocks in markdown output 2022-02-16 15:18:54 -08:00
Matt Bierner
2b752cc239 Only remove margin on last child of preview
Fixes #142791
2022-02-11 16:27:02 -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
Johannes Rieken
7ccb868835 make sure to use .eslintignore when running yarn eslint, this will ensure that cli failure and editor squiggles are always equal 2022-02-02 12:37:29 +01:00
Matt Bierner
90b50dc7e2 Use ?. in a few more places 2022-02-01 13:59:12 -08: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
920a00d09d Use markdown renderer for text/latex (#139154)
Fixes #123144

Uses the standard markdown renderer for `text/latex` outputs. This enables support for python outputs such as:

```python
%%latex
Given : $\pi = 3.14$ , $\alpha = \frac{3\pi}{4}\, rad$
```
2022-01-19 13:26:52 -08:00
Logan Ramos
c047af40b2 Fix compilation 2022-01-19 16:18:14 -05:00
Logan Ramos
b22ee20028 Move to @vscode/extension-telemetry 2022-01-19 15:57:17 -05: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
dependabot[bot]
2fcbbdc3c8 Bump markdown-it in /extensions/markdown-language-features (#140598)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.2.0 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.2.0...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 17:04:53 -08:00