Commit Graph

973 Commits

Author SHA1 Message Date
Johannes Rieken
d90dd1355b Merge branch 'main' into joh/vscode-dts 2021-11-10 08:40:26 +01: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
53c29fc51f Use inherited font size for markdown codeblocks
Testing this out since it can look weird to have code blocks in a small font while the rest of markup is large
2021-11-09 16:14:04 -08:00
Matt Bierner
a4ad395f23 Increase default markup font size
For #126294
2021-11-09 14:23:15 -08:00
Johannes Rieken
68e819043c use tsconfig.json#include for vscode.d.ts and vscode.proposed.d.ts, enables to remove most ref.d.ts-files 2021-11-09 15:53:35 +01:00
Johannes Rieken
9254a8cd27 move vscode.d.ts and vscode.proposed.d.ts into src/vscode-dts-folder, https://github.com/microsoft/vscode/issues/131165 2021-11-09 15:00:03 +01:00
Matt Bierner
8b7aa3c278 Use editor font for markdown codeblocks
For #136693
2021-11-08 14:11:59 -08:00
Matt Bierner
5e6d0e1cbb Initial support for syntax highlighting md code blocks in notebooks
For #136693
2021-11-08 12:30:13 -08:00
Logan Ramos
00de6a5f2f Update telemetry module 2021-11-08 10:00:44 -05:00
Matt Bierner
d1f2d0a729 Tweak markdown notebook header sizes
Fixes #105900
2021-11-05 15:57:30 -07:00
Matt Bierner
69ca0f29fd Enable linkify in notebook markdown
Fixes #136545
2021-11-05 13:52:53 -07:00
Matt Bierner
1051cf402e Unmark preview as experimental
Fixes #84520

Seems to be working well enough now to officially support
2021-11-04 17:30:00 -07:00
Matt Bierner
c11a9ce097 Better update of line numbers 2021-11-04 14:34:49 -07:00
Matt Bierner
516bc19e99 Fix md preview reverting to original version when switching away 2021-11-03 20:54:21 -07:00
Matt Bierner
4d50e586ec Improve morphing for vscode-docs 2021-11-03 20:54:20 -07:00
Alex Dima
a704a69394 Enforce that source code uses a small subset of Unicode 2021-11-03 23:34:41 +01:00
Kaan Genç
1aa9a712d1 Allow extensions to disable built-in markdown preview button (#136273)
* Allow extensions to disable built-in markdown preview button

Adds a flag for the "Open Preview to the Side" button displayed for markdown files. This makes it possible for extensions to hide this button when desired by setting the flag to true. For example, extensions can now use the following line to disable the preview button:

```js
vscode.commands.executeCommand("setContext", "hasCustomMarkdownView", true);
```

* update keyword for disabling default markdown preview
2021-11-03 14:49:44 -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
7d46b77c31 Disable fuzzy links in md preview
Fixes #136198
2021-11-01 17:41:40 -07:00
Matt Bierner
fbc1f7df91 Fire event when md content is updated
For #136255
2021-11-01 17:41:39 -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
7bc28074bf Exclude tr from markdown hover
Fixes #135278
Fixes #135037
2021-10-18 17:13:44 -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
Jim Griesmer
845af8a5c3 Enlarge small markdown text size - trivial change (#134550)
* Enlarge small markdown text size - trivial change

* Didn't intend to change h1 line height

* Simplify font-size story for h1, h2, h3 and p
2021-10-08 12:29:39 -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
Logan Ramos
a4342f3add Bump telemetry module 2021-10-01 16:52:56 -04:00
Don Jayamanne
d2c7e3d06f Remove built-in latext output rendering in nb 2021-09-29 16:02:47 -07:00
Alex Dima
bfc02befad Revert "Update highlightjs"
This reverts commit 436f9d38b0.
2021-09-28 00:59:21 +02:00
Matt Bierner
436f9d38b0 Update highlightjs 2021-09-27 15:43:26 -07:00
Don Jayamanne
cb70ab5526 Merge pull request #133464 from DonJayamanne/textLatex 2021-09-23 15:13:16 -07:00
Logan Ramos
282f499c22 Update extension telemetry module 2021-09-23 11:26:57 -04:00
Don Jayamanne
1e5e3642b2 Misc 2021-09-22 13:16:37 -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