MCPcopy Index your code
hub / github.com/VSpaceCode/VSpaceCode / showUpdateMessage

Function showUpdateMessage

src/messages.ts:25–40  ·  view source on GitHub ↗
(cur: string, prev: string)

Source from the content-addressed store, hash-verified

23}
24
25export 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}

Callers 1

activateFunction · 0.90

Calls 2

compareMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected