vscode/build/monaco
Matt Bierner 8bb27cd255
Add unused diagnostic subtype (#49646)
* 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
2018-05-17 15:43:59 -07:00
..
api.js Build with TS 2.7 (#45348) 2018-03-08 16:58:32 -08:00
api.ts Build with TS 2.7 (#45348) 2018-03-08 16:58:32 -08:00
LICENSE Better support for ESM workers 2018-03-15 14:44:36 +01:00
monaco.d.ts.recipe Add unused diagnostic subtype (#49646) 2018-05-17 15:43:59 -07:00
package.json Ship monaco-editor-core 2018-04-12 09:50:09 +02:00
README-npm.md Ship README.md with monaco-editor-core 2016-06-09 11:20:03 +02:00
README.md Generate monaco.d.ts continuously and check it in build 2016-06-10 18:40:32 +02:00
ThirdPartyNotices.txt fix line endings 2018-03-05 12:47:11 +01:00
yarn.lock build/monaco/yarn.lock 2017-11-14 10:29:56 +01:00

Steps to publish a new version of monaco-editor-core

Generate monaco.d.ts

  • The monaco.d.ts is now automatically generated when running gulp 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-core
  • npm publish