Skip to content

Commit b0c5aa6

Browse files
authored
Remove error list constraint (#157)
* Remove error list constraint * Update URL format
1 parent 34ea065 commit b0c5aa6

2 files changed

Lines changed: 5 additions & 46 deletions

File tree

packages/vscode-formatter/src/components/consts/knownErrorNumbers.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/vscode-formatter/src/components/title.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { compressToEncodedURIComponent } from "lz-string";
22
import { Diagnostic } from "vscode-languageserver-types";
33
import { d } from "@pretty-ts-errors/utils";
4-
import { KNOWN_ERROR_NUMBERS } from "./consts/knownErrorNumbers";
54
import { miniLine } from "./miniLine";
65

76
export const title = (diagnostic: Diagnostic) => d/*html*/ `
@@ -22,13 +21,11 @@ export const title = (diagnostic: Diagnostic) => d/*html*/ `
2221
`;
2322

2423
const errorCodeExplanationLink = (errorCode: Diagnostic["code"]) =>
25-
KNOWN_ERROR_NUMBERS.has(errorCode)
26-
? d/*html*/ `
27-
<a title="See detailed explanation" href="https://typescript.tv/errors/#ts${errorCode}">
28-
<span class="codicon codicon-link-external">
29-
</span>
30-
</a>`
31-
: "";
24+
d/*html*/ `
25+
<a title="See detailed explanation" href="https://typescript.tv/errors/ts${errorCode}">
26+
<span class="codicon codicon-link-external">
27+
</span>
28+
</a>`;
3229

3330
const errorMessageTranslationLink = (message: Diagnostic["message"]) => {
3431
const encodedMessage = compressToEncodedURIComponent(message);

0 commit comments

Comments
 (0)