typescript: support non-numeric Diagnostic.code #64848
Labels
engineering
VS Code - Build / issue tracking / etc.
feature-request
Request for new features or functionality
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Milestone
microsoft/TypeScript#28959 changes
Diagnostic.code
to typenumber | string
. It's correctly displayed in the tooltip.However, the code related to CodeFixes currently converts
Diagnostic.code
to a number before looking it up in the list of supported code fixes.I'm planning on updating
getSupportedCodeFixes
to returnArray<number | string>
as I need CodeFixes for my custom Diagnostics. The current implementation would discard these codes as they result inNaN
.https://github.com/Microsoft/vscode/blob/b66143894b65270200b386b6865f243b101380d0/extensions/typescript-language-features/src/features/quickFix.ts#L156-L177
/cc @amcasey
The text was updated successfully, but these errors were encountered: