Skip to content

Commit

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

## 2.1.0-insiders.1

#### Download

- GitHub: 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/volarjs/insiders/assets/16279759/45ee9090-3b16-4d20-99a5-08b5a0fd3c50)

#### 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/volarjs/insiders/assets/16279759/27a36203-7170-47ce-9fe2-323cf18f1f3b)

### Other Changes

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

## 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 1f96a4e

Please sign in to comment.