Skip to content

Commit 9b6643a

Browse files
authored
Settings URL handling - "Open Current File as Release Notes" command not working (microsoft#223499)
Fixes microsoft#223291
1 parent 9dc000f commit 9b6643a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class ReleaseNotesManager {
204204
throw new Error('Failed to fetch release notes');
205205
}
206206

207-
if (!text || !/^#\s/.test(text)) { // release notes always starts with `#` followed by whitespace
207+
if (!text || (!/^#\s/.test(text) && !useCurrentFile)) { // release notes always starts with `#` followed by whitespace, except when using the current file
208208
throw new Error('Invalid release notes');
209209
}
210210

0 commit comments

Comments
 (0)