We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc000f commit 9b6643aCopy full SHA for 9b6643a
src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts
@@ -204,7 +204,7 @@ export class ReleaseNotesManager {
204
throw new Error('Failed to fetch release notes');
205
}
206
207
- if (!text || !/^#\s/.test(text)) { // release notes always starts with `#` followed by whitespace
+ if (!text || (!/^#\s/.test(text) && !useCurrentFile)) { // release notes always starts with `#` followed by whitespace, except when using the current file
208
throw new Error('Invalid release notes');
209
210
0 commit comments