File tree Expand file tree Collapse file tree
packages/vscode-formatter/src/components Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { compressToEncodedURIComponent } from "lz-string" ;
22import { Diagnostic } from "vscode-languageserver-types" ;
33import { d } from "@pretty-ts-errors/utils" ;
4- import { KNOWN_ERROR_NUMBERS } from "./consts/knownErrorNumbers" ;
54import { miniLine } from "./miniLine" ;
65
76export const title = ( diagnostic : Diagnostic ) => d /*html*/ `
@@ -22,13 +21,11 @@ export const title = (diagnostic: Diagnostic) => d/*html*/ `
2221` ;
2322
2423const 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
3330const errorMessageTranslationLink = ( message : Diagnostic [ "message" ] ) => {
3431 const encodedMessage = compressToEncodedURIComponent ( message ) ;
You can’t perform that action at this time.
0 commit comments