You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* reimplement #133 in the monorepo setup
* port the changes of web-preview-poc; integrate vscode-shiki-bridge
* stich everything together
* Get the feature working
* implement webview as seperate files, implement csp with a lot of headaches
* finalize implementation
* implement the webviewviewprovider
* finalize webview parts
* remove obsolete files
* remove obsolete file
* implement proper markdown rendering
* bump vscode-shiki-bridge to v0.3.0
* implement vscode-shiki-bridge
* Few minor fixes
* fix copy type button
* only hide new tab button in the new tab markdown preview
* use whitelisted badge urls
* avoid triggering complete rerenders of the webview
* decrease vertical padding
* keep track of shown diagnostic per webview, to ensure the panel is refreshed when the original diagnostic no longer exists
* add missing .delete on the weakmap
* add another .delete to onDidDispose to prevent leaking memory
* fix background color of the panel preview variant
* bump version in lock
* Remove icons not in use to reduce size
---------
Co-authored-by: Yoav Balasiano <yoavbls@gmail.com>
[](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors) [](https://github.com/yoavbls/pretty-ts-errors/blob/main/LICENSE) [](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors)
14
+
[![Visual Studio Code][vsc]](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors) [](https://github.com/yoavbls/pretty-ts-errors/blob/main/LICENSE) [](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors)
TypeScript errors become messier as the complexity of types increases. At some point, TypeScript will throw on you a shitty heap of parentheses and `"..."`.
18
+
TypeScript errors become messier as the complexity of types increases. At some point, TypeScript will throw on you a shitty heap of parentheses and `"..."`.
19
19
This extension will help you understand what's going on. For example, in this relatively simple error:
@@ -61,10 +61,10 @@ Follow the instructions [there](./docs/hide-original-errors.md). unfortunately,
61
61
62
62
## Why isn't it trivial
63
63
64
-
1. TypeScript errors contain types that are not valid in TypeScript.
64
+
1. TypeScript errors contain types that are not valid in TypeScript.
65
65
Yes, these types include things like `... more ...`, `{ ... }`, etc in an inconsistent manner. Some are also cutting in the middle because they're too long.
66
66
2. Types can't be syntax highlighted in code blocks because the part of `type X = ...` is missing, so I needed to create a new TextMate grammar, a superset of TypeScript grammar called `type`.
67
-
3. VSCode markdown blocks all styling options, so I had to find hacks to style the error messages. e.g., there isn't an inlined code block on VSCode markdown, so I used a code block inside a codicon icon, which is the only thing that can be inlined. That's why it can't be copied. but it isn't a problem because you can still hover on the error and copy things from the original error pane.
67
+
3. VSCode markdown blocks all styling options, so I had to find hacks to style the error messages. e.g., there isn't an inlined code block on VSCode markdown, so I used a code block inside a codicon icon, which is the only thing that can be inlined. That's why it can't be copied. but it isn't a problem because you can still hover on the error and copy things from the original error pane.
68
68
<imgsrc="./assets/errors-hover.png"width="600" />
69
69
70
70
## Hype section
@@ -82,7 +82,7 @@ Follow the instructions [there](./docs/hide-original-errors.md). unfortunately,
0 commit comments