8000 chore: Bump version to 0.15.0 (#343) · iFun/vscode-leetcode@123d95b · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 123d95b

Browse files
authored
chore: Bump version to 0.15.0 (LeetCode-OpenSource#343)
1 parent 2adaa43 commit 123d95b

9 files changed

+50
-77
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ All notable changes to the "leetcode" extension will be documented in this file.
33

44
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
55

6+
## [0.15.0]
7+
### Added
8+
- Auto refresh the explorer after submitting [#91](https://github.com/jdneo/vscode-leetcode/issues/91)
9+
- Add a editor shortcut `Description` to show the problem description [#286](https://github.com/jdneo/vscode-leetcode/issues/286)
10+
- Support customizing the shortcuts in editor [#335](https://github.com/jdneo/vscode-leetcode/issues/335)
11+
12+
### Fixed
13+
[Bugs fixed](https://github.com/jdneo/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.0+is%3Aclosed+label%3Abug)
14+
615
## [0.14.3]
716
### Added
817
- Support interpolation for `leetcode.outputFolder` settings [#151](https://github.com/jdneo/vscode-leetcode/issues/151)

README.md

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -81,37 +81,18 @@
8181
8282
---
8383

84-
### Show Top Voted Solution
84+
### Editor Shortcuts
8585
<p align="center">
86-
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/solution.png" alt="Show Top Voted Solution" />
86+
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/shortcuts.png" alt="Editor Shortcuts" />
8787
</p>
8888

89-
- Select `Show Top Voted Solution` will display the top voted solution for you.
89+
- The extension supports 4 editor shortcuts (aka Code Lens):
90+
- `Submit`: Submit your answer to LeetCode.
91+
- `Test`: Test your answer with customized test cases.
92+
- `Solution`: Show the top voted solution for the current problem.
93+
- `Description`: Show the problem description page.
9094

91-
---
92-
93-
### Submit the Answer
94-
<p align="center">
95-
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/submit.png" alt="Submit the Answer" />
96-
</p>
97-
98-
- You can submit the answer by clicking `Submit` at the bottom of the file. Or you can right click in the editor and select `Submit to LeetCode`.
99-
100-
> If you want to hide the shortcuts showing in the editor, just simply set the setting `leetcode.enableShortcuts` to false.
101-
102-
---
103-
104-
### Test the Answer
105-
<p align="center">
106-
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/test.png" alt="Test the Answer" />
107-
</p>
108-
109-
- You can test the answer by clicking `Test` at the bottom of the file. Or you can right click in the editor and select `Test in LeetCode`.
110-
111-
- There are 3 ways to test the answer:
112-
- **Test with the default cases**
113-
- **Write test cases in input box**
114-
- **Test with the written cases in file**
95+
> Note: You can customize the shortcuts using the setting: `leetcode.editor.shortcuts`. By default, only `Submit` and `Test` shortcuts are enabled.
11596
11697
---
11798

@@ -142,7 +123,8 @@
142123
| `leetcode.endpoint` | Specify the active endpoint. Supported endpoints are: `leetcode`, `leetcode-cn` | `leetcode` |
143124
| `leetcode.outputFolder` | Specify the relative path to save the problem files. Besides using customized path, there are also several reserved words which can be used here: <ul><li>`${tag}`: Categorize the problem according to their tags.<li>`${language}`: Categorize the problem according to their language.</li><li>`${difficulty}`: Categorize the problem according to their difficulty.</li></ul>For example: `problem-${tag}-${difficulty}` | N/A |
144125
| `leetcode.enableStatusBar` | Specify whether the LeetCode status bar will be shown or not. | `true` |
145-
| `leetcode.enableShortcuts` | Specify whether the submit and test shortcuts in editor or not. | `true` |
126+
| **(Deprecated)** `leetcode.enableShortcuts` | Specify whether the submit and test shortcuts in editor or not. | `true` |
127+
| `leetcode.editor.shortcuts` | Specify the customized shorcuts in editors | `["submit, test"]` |
146128
| `leetcode.enableSideMode` | Specify whether `preview`, `solution` and `submission` tab should be grouped into the second editor column when solving a problem. | `true` |
147129
| `leetcode.nodePath` | Specify the `Node.js` executable path. | `node` |
148130

docs/README_zh-CN.md

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -81,37 +81,18 @@
8181
8282
---
8383

84-
### 查看高票解答
84+
### 编辑器快捷方式
8585
<p align="center">
86-
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/solution.png" alt="高票解答" />
86+
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/shortcuts.png" alt="Editor Shortcuts" />
8787
</p>
8888

89-
- 选择 `Show Top Voted Solution` 可查看该题目在讨论区内的高票解答。
89+
- 插件会在编辑区域内支持四种不同的快捷方式(Code Lens):
90+
- `Submit`: 提交你的答案至 LeetCode;
91+
- `Test`: 用给定的测试用例测试你的答案;
92+
- `Solution`: 显示该问题的高票解答;
93+
- `Description`: 显示该问题的题目描述。
9094

91-
---
92-
93-
### 提交答案
94-
<p align="center">
95-
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/submit.png" alt="提交答案" />
96-
</p>
97-
98-
- 通过点击文件最下方的 `Submit` 可提交答案。 你也可以在编辑区内右键并选择 `Submit to LeetCode`,将**当前**文件提交。
99-
100-
> 如果你不希望在编辑器中显示**测试****提交**的快捷方式,可以将配置项 `leetcode.enableShortcuts` 设置为 `false`
101-
102-
---
103-
104-
### 测试答案
105-
<p align="center">
106-
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/test.png" alt="测试答案" />
107-
</p>
108-
109-
- 通过点击文件最下方的 `Test` 可测试答案。你也可以在编辑区内右键并选择 `Test in LeetCode`,对**当前**文件进行测试。
110-
111-
- 有下列三种测试集来源:
112-
- **默认测试集**:Test with the default cases
113-
- **在输入框内输入测试集**:Write test cases in input box
114-
- **提供自定义测试集文件**:Test with the written cases in file
95+
> 注意:你可以通过 `leetcode.editor.shortcuts` 配置项来定制需要激活的快捷方式。默认情况下只有 `Submit``Test` 会被激活。
11596
11697
---
11798

@@ -142,7 +123,8 @@
142123
| `leetcode.endpoint` | 指定使用的终端,可用终端有:`leetcode`, `leetcode-cn` | `leetcode` |
143124
| `leetcode.outputFolder` | 指定保存文件时所用的相对文件夹路径。除了用户自定义路径外,也可以使用保留项,包括:<ul><li>`${tag}`: 根据题目的类别进行分类。<li>`${language}`: 根据题目的语言进行分类。</li><li>`${difficulty}`: 根据题目的难度进行分类。</li></ul>例如:`problem-${tag}-${difficulty}` | N/A |
144125
| `leetcode.enableStatusBar` | 指定是否在 VS Code 下方显示插件状态栏。 | `true` |
145-
| `leetcode.enableShortcuts` | 指定是否在 VS Code 编辑文件下方显示提交和测试的快捷按钮。 | `true` |
126+
| **(Deprecated)** `leetcode.enableShortcuts` | 指定是否在 VS Code 编辑文件下方显示提交和测试的快捷按钮。 | `true` |
127+
| `leetcode.editor.shortcuts` | 指定在编辑器内所自定义的快捷方式。 | `["submit, test"]` |
146128
| `leetcode.enableSideMode` | 指定在解决一道题时,是否将`问题预览``高票答案``提交结果`窗口集中在编辑器的第二栏。 | `true` |
147129
| `leetcode.nodePath` | 指定 `Node.js` 可执行文件的路径。 | `node` |
148130

docs/imgs/shortcuts.png

22 KB
Loading

docs/imgs/solution.png

-110 KB
Binary file not shown.

docs/imgs/submit.png

-19.4 KB
Binary file not shown.

docs/imgs/test.png

-144 KB
Binary file not shown.

package-lock.json

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-leetcode",
33
"displayName": "LeetCode",
44
"description": "Solve LeetCode problems in VS Code",
5-
"version": "0.14.3",
5+
"version": "0.15.0",
66
"author": "Sheng Chen",
77
"publisher": "shengchen",
88
"license": "MIT",
@@ -349,7 +349,7 @@
349349
"description"
350350
]
351351
},
352-
"description": "Customize the shorcuts in editor."
352+
"description": "Customize the shorcuts in editors."
353353
},
354354
"leetcode.enableSideMode": {
355355
"type": "boolean",

0 commit comments

Comments
 (0)
0