From ec74d5f2227ad74122e97c0225ae9c2769c76f77 Mon Sep 17 00:00:00 2001 From: "sheche@microsoft.com" Date: Mon, 21 Jan 2019 19:02:41 +0800 Subject: [PATCH] Prepare for 0.9.0 --- CHANGELOG.md | 6 ++++++ package-lock.json | 2 +- package.json | 2 +- src/leetCodeResultProvider.ts | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b428dcb..a3f49e11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to the "leetcode" extension will be documented in this file. Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. +## [0.9.0] +### Changed +- Improve the experience of switching endpoint ([#85](https://github.com/jdneo/vscode-leetcode/issues/85)) +- Use webview to show the result page ([#76](https://github.com/jdneo/vscode-leetcode/issues/76)) + + ## [0.8.2] ### Added - Add Code Lens for submitting the answer to LeetCode diff --git a/package-lock.json b/package-lock.json index 2c1422a6..b38c2e1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vscode-leetcode", - "version": "0.8.2", + "version": "0.9.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e809f934..367db0cd 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-leetcode", "displayName": "LeetCode", "description": "Solve LeetCode problems in VS Code", - "version": "0.8.2", + "version": "0.9.0", "author": "Sheng Chen", "publisher": "shengchen", "license": "MIT", diff --git a/src/leetCodeResultProvider.ts b/src/leetCodeResultProvider.ts index 07551897..0a0a2ce4 100644 --- a/src/leetCodeResultProvider.ts +++ b/src/leetCodeResultProvider.ts @@ -14,7 +14,7 @@ class LeetCodeResultProvider implements Disposable { public async show(result: string): Promise { if (!this.panel) { - this.panel = window.createWebviewPanel("leetCode", "LeetCode Results", ViewColumn.Active, { + this.panel = window.createWebviewPanel("leetCode", "LeetCode Results", ViewColumn.Two, { retainContextWhenHidden: true, enableFindWidget: true, }); @@ -25,7 +25,7 @@ class LeetCodeResultProvider implements Disposable { } this.panel.webview.html = await this.provideHtmlContent(result); - this.panel.reveal(ViewColumn.Active); + this.panel.reveal(ViewColumn.Two); } public dispose(): void {