Skip to content

Commit

Permalink
chore: changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 4, 2024
1 parent 98b24e8 commit d0abf57
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 74 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 2.1.0-insiders.1

> [Join the Insiders Program](https://github.com/vuejs/language-tools/wiki/Get-Insiders-Edition) for more exclusive features and updates.
Download Pages: [GitHub Releases](https://github.com/volarjs/insiders/releases/tag/v2.1.0-insiders.1), [爱发电电圈](https://afdian.net/p/ba0901a2edce11ee8f2e52540025c377)

### New Features

#### Reactions visualization (PR: https://github.com/volarjs/insiders/pull/5)

![](https://github.com/vuejs/language-tools/assets/16279759/b90d3d05-f98c-42a0-b011-448af00a0c06)

#### Template interpolation decorators (PR: https://github.com/volarjs/insiders/pull/4)

> To disable this feature, uncheck `vue.editor.templateInterpolationDecorators` in VSCode settings.
![](https://github.com/vuejs/language-tools/assets/16279759/fc591552-834e-4fbb-ab47-1740f6f8a151)

### Other Changes

- Merged https://github.com/vuejs/language-tools/commit/1b9946c02ee3f5bb8c2de17c430985756115e51c

## 2.0.7 (2024/3/20)

> [!NOTE]
Expand Down
19 changes: 0 additions & 19 deletions CHANGELOG_INSIDERS.md

This file was deleted.

53 changes: 6 additions & 47 deletions extensions/vscode/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,55 +100,14 @@ async function doActivate(context: vscode.ExtensionContext, createLc: CreateLang
};
}
else {
const versionsUrl = 'https://cdn.jsdelivr.net/gh/vuejs/language-tools/insiders.json';
item.text = '🚀 Vue - Official Insiders';
item.detail = 'Installed';
item.busy = true;
const currentVersion = context.extension.packageJSON.version;
fetch(versionsUrl)
.then(res => res.json())
.then(({ versions }: { versions: { version: string; date: string; }[]; }) => {
item.command = {
title: 'Select Version',
command: 'vue-insiders.selectVersion',
arguments: [{ versions }],
};
if (versions.length && versions[0].version !== currentVersion) {
item.command.title = 'Update';
item.detail = 'New version available';
item.severity = vscode.LanguageStatusSeverity.Warning;
}
})
.catch(() => {
item.detail = 'Failed to fetch versions';
})
.finally(() => {
item.busy = false;
});
vscode.commands.registerCommand('vue-insiders.selectVersion', async ({ versions }: { versions: { version: string; date: string; }[]; }) => {
const items = versions.map<vscode.QuickPickItem>(version => ({
label: version.version,
description: version.date + (version.version === currentVersion ? ' (current)' : ''),
}));
if (!items.some(item => item.description?.endsWith('(current)'))) {
items.push({
label: '',
kind: vscode.QuickPickItemKind.Separator,
}, {
label: currentVersion,
description: '(current)',
});
}
const selected = await vscode.window.showQuickPick(
items,
{
canPickMany: false,
placeHolder: 'Select a version',
});
if (!selected || selected.label === currentVersion) {
return;
}
const updateUrl = `https://github.com/volarjs/insiders/releases/tag/v${selected.label}`;
item.command = {
title: 'Changelog',
command: 'vue-insiders.checkUpdate',
};
vscode.commands.registerCommand('vue-insiders.checkUpdate', () => {
const updateUrl = 'https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md';
vscode.env.openExternal(vscode.Uri.parse(updateUrl));
});
}
Expand Down
8 changes: 0 additions & 8 deletions insiders.json

This file was deleted.

0 comments on commit d0abf57

Please sign in to comment.