mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
* Add unused diagnostic subtype Fixes #15710 Adds a new `DiagnosticTag` class that provide additional information about a diagnostic. Introduce `DiagnosticTag.Unnecessary` to mark when a diagnostic is for unused / unnecessary code The design comes from Rosyln's diagnostic object and allows us to modify how a diagnostic is rendered without changing its serverity. Hooks up JS and TS to use this new tag. This is controlled by the `javascript.showUnused.enabled` setting which is enabled by default - Introduce a new diagnostic severity for unused. However, using this approach, if a user sets `noUnusedLocals` in their `tsconfig.json`, the resulting diagnostic could only show the squiggly OR be grayed out. Using `customTags` allows us to support both graying out and showing the squiggly - Custom JS/TS implementation using decorators Not themable. We want a standard experience across languages. * - Move to proposed - Use numeric enum
Steps to publish a new version of monaco-editor-core
Generate monaco.d.ts
- The
monaco.d.tsis now automatically generated when runninggulp watch
Bump version
- increase version in
build/monaco/package.json
Generate npm contents for monaco-editor-core
- Be sure to have all changes committed and pushed to the remote
- (the generated files contain the HEAD sha and that should be available on the remote)
- run gulp editor-distro
Publish
cd out-monaco-editor-corenpm publish