browser-ext-github-monaco icon indicating copy to clipboard operation
browser-ext-github-monaco copied to clipboard

Tab title changes to "(Draft comment)" when comment box is empty

Open tech189 opened this issue 4 years ago • 3 comments

If you leave an issue or pull request page open in the background, the tab title will immediately change to "(Draft comment) ..." even if the user hasn't typed anything in the comment box.

This does not happen when the addon is disabled.

tech189 avatar Nov 04 '21 13:11 tech189

Note that this is due to Refined GitHub (but won't be fixed there since it's due to an external cause)

https://github.com/refined-github/refined-github/blob/main/source/features/unfinished-comments.tsx

fregante avatar Mar 09 '23 17:03 fregante

@fregante is this extension the external cause? Do you know why this happens?

hediet avatar Mar 13 '23 12:03 hediet

This is the condition that determines whether there's a "draft comment":

https://github.com/refined-github/refined-github/blob/1cef9d43cc5990c6aed55b01508297b347c8a261/source/features/unfinished-comments.tsx#L14

I don't know exactly what part of Monaco is causing that condition to become true

fregante avatar Mar 13 '23 13:03 fregante