In comment-sample, the implementations of cancelSaveNote and saveNote are the same:
https://github.com/microsoft/vscode-extension-samples/blob/main/comment-sample/src/extension.ts#L85-L111
This looks wrong.
Is there a way to restore the old comment value?