Resolves whether comments are enabled for the document from the workspace's
document.comments.enabled config. Synchronous: the plan check only decides the mode, which
useCommentsMode() hands out as a promise from the plugin's CommentsModePromiseContext.
Resolves whether comments are enabled for the document from the workspace's
document.comments.enabledconfig. Synchronous: the plan check only decides the mode, whichuseCommentsMode()hands out as a promise from the plugin'sCommentsModePromiseContext.