From aab3a8a8001227d14156f218233dc15a0f34db54 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Thu, 4 Apr 2024 16:28:39 +0800 Subject: [PATCH] chore: changelog --- CHANGELOG.md | 22 +++++++++++++ CHANGELOG_INSIDERS.md | 19 ------------ extensions/vscode/src/common.ts | 55 +++++---------------------------- insiders.json | 8 ----- 4 files changed, 29 insertions(+), 75 deletions(-) delete mode 100644 CHANGELOG_INSIDERS.md delete mode 100644 insiders.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 67b8d5d307..9374edfca4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/CHANGELOG_INSIDERS.md b/CHANGELOG_INSIDERS.md deleted file mode 100644 index 907ca335c7..0000000000 --- a/CHANGELOG_INSIDERS.md +++ /dev/null @@ -1,19 +0,0 @@ -# Changelog (Insiders) - -## [v2.1.0-insiders.1](https://github.com/volarjs/insiders/releases/tag/v2.1.0-insiders.1) - -### 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. diff --git a/extensions/vscode/src/common.ts b/extensions/vscode/src/common.ts index a9283a9756..31d8f03a60 100644 --- a/extensions/vscode/src/common.ts +++ b/extensions/vscode/src/common.ts @@ -96,59 +96,18 @@ async function doActivate(context: vscode.ExtensionContext, createLc: CreateLang item.command = { title: 'More Info', command: 'vscode.open', - arguments: ['https://github.com/vuejs/language-tools/wiki/Get-Insiders'], + arguments: ['https://github.com/vuejs/language-tools/wiki/Get-Insiders-Edition'], }; } 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(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)); }); } diff --git a/insiders.json b/insiders.json deleted file mode 100644 index fbbbc90620..0000000000 --- a/insiders.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "versions": [ - { - "version": "2.1.0-insiders.1", - "date": "2024-03-29" - } - ] -} \ No newline at end of file