Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Feb 25, 2024
1 parent ad81d4c commit 453720f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ export function activate(context: vscode.ExtensionContext) {
const currentVersion = context.extension.packageJSON.version as string;
const lastVersion = context.globalState.get('version') as string ?? '0.0.0';
if (currentVersion === lastVersion) return;
updateSnippets(context).then(() =>
context.globalState.update('version', currentVersion)
);
updateSnippets(context)
.then(() => context.globalState.update('version', currentVersion));
}

function onConfigurationChanged(context: vscode.ExtensionContext, e: vscode.ConfigurationChangeEvent) {
Expand Down

0 comments on commit 453720f

Please sign in to comment.