(cur: string, prev: string)
| 23 | } |
| 24 | |
| 25 | export async function showUpdateMessage(cur: string, prev: string) { |
| 26 | if (Version.compare(cur, prev) === ComparisonResult.Newer) { |
| 27 | const changeLog = "Changelog"; |
| 28 | const selection = await window.showInformationMessage( |
| 29 | `VspaceCode is updated to v${cur}. See what's new in the changelog.`, |
| 30 | changeLog |
| 31 | ); |
| 32 | if (selection === changeLog) { |
| 33 | await env.openExternal( |
| 34 | Uri.parse( |
| 35 | "https://github.com/VSpaceCode/VSpaceCode/blob/master/CHANGELOG.md" |
| 36 | ) |
| 37 | ); |
| 38 | } |
| 39 | } |
| 40 | } |