You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Providers are registered globally on monaco.languages. However, editor.addCommand returns a commandId that is unique and only applies to one editor. This means if you have multiple editors, they'll all be affected by a provider, but this provider can't work adequately. For example:
monaco-editor version: 0.10.1
Providers are registered globally on
monaco.languages
. However,editor.addCommand
returns acommandId
that is unique and only applies to one editor. This means if you have multiple editors, they'll all be affected by a provider, but this provider can't work adequately. For example:The easiest solution here is likely to allow
addCommand
to take an optionalid?: string
which could be used as the id.The text was updated successfully, but these errors were encountered: