Sets the tab size to 4 in the Markdown preview for code blocks in Markdown documents. I consider a tab size of 4 being standard and the default of 8 being unbearable. The few people, if any, using a different tab size than 4 can use the custom markdown preview style feature, if it is going to be fixed anytime (https://github.com/microsoft/vscode/issues/77290).
[`tab-size` is still marked *experimental* in the MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size), but it doesn't hurt, if not supported. However, in the used Chromium version it is supported.
This adds a command which renders the provided document, or the active
editor if one is provided. Following the pattern of some of the preview
commands, it returned `undefined` if there's no document provided and
no active text editor. Otherwise, seems to work...
```ts
const html = await vscode.commands.executeCommand<string>('markdown.render');
```
A way to render arbitrary strings in addition to documents may be useful at
some point in the future. However, I didn't implement that here as that'd
require some refactoring of the markdown engine. If we're interested though
I could certainly give that a shot.
Fixes#72155
Adds a constant to the api that tracks the root path for resources inside of webviews. This is required because we will not be able to use `vscode-resource:` uris on the web. Our current approach is to rewrite the html we are given but there are almost certainly going to be cases where we don't get this quite right.
Adopts the new api for the markdown preview
* upstream/master: (34 commits)
Fix markdown.styled regression caused by Uri.parse changes
Process explorer refactoring
fix compile error
fix open workspace uri from cli
Delete deprecated search provider stub
test dependenices are devDependencies
Fix default uri when scheme is file
disable flaky test, #71801
use `readonly T[]` instead of `ReadonlyArray<T>`
simplify protocol check
Let enablment service handles local workspace extensions in remote window
debt - make ext host init data more complete
Fix colorization tests
fixes#71671
Update grammars
Add yes-no choice for overwriting existing file for save as
update distro
ExtensionEnablementService: - Remove getDisabledExtensions and instead use isEnabled or getEnablementState methods
Simplify reload action and fix test
Update distro hash
...