[Bug] messageContribute.showMessage to customize tooltip is overwritten by the default readonly message #3940
Unanswered
jieleiwang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
https://microsoft.github.io/monaco-editor/playground.html?source=v0.37.1#XQAAAAJDAgAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw1nWJRgmSaumWUF-TBOsVJ4S4FwfCDQb5-2uUHXTVAefbVSd9IzaZ_vv9VR9KugsKimARHSWlrTPOQHROITHxmAhPXiQgCCkQKcv68Ayyw9u5FEr37To1IIX5AUg_EEfNVfIbY43Q8-5smFKh_Py18JTOWhPbL6z_hw9S2sY_OQjylAjD6GkNPpuw8pR1TQkkTS6BHPh8ijYALQ667O4wA44F07FQ8NQX-bhjp1yEDvIiT65Q599Tyvuaz5_UnI-JYqZfI7wuIdd2rApcrLtjj4v57cLI0AghUmLuzljcbFtfx8awZRhK0PGAnSHrXjAx4JW3ZSmJjRU0MBvlZS_LSJkx1HKEiuNM0Icl21vXVHFxDnoaDagTnwCumBCoFtMTwWixgXeKWJdMLzMJueQQUudua34M6Yt8BBMgRfoLsqH2_4hdpxI
Monaco Editor Playground Code
Reproduction Steps
added onDidAttemptReadOnlyEdit to customize tooltip message for readonly mode
using messageContribution.showMessage method
Actual (Problematic) Behavior
in the playground, got error Property 'showMessage' does not exist on type 'IEditorContribution', in our actual product, we can access showMessage but showMessage got called again with default readonly message.
Expected Behavior
Tooltip should show customized readonly message other than default message
Additional Context
the monaco editor version we are using is 0.37.0
Beta Was this translation helpful? Give feedback.
All reactions