Skip to content

Commit 0300764

Browse files
authored
Prepare for 0.13.0 (LeetCode-OpenSource#204)
1 parent 9b33df0 commit 0300764

9 files changed

+250
-14
lines changed

Diff for: ACKNOWLEDGEMENTS.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ A big thanks to the following individuals for contributing:
55
- [@purocean](https://github.com/purocean) for contributing [#46](https://github.com/jdneo/vscode-leetcode/pull/46)
66
- [@Xeonacid](https://github.com/Xeonacid) for contributing [#58](https://github.com/jdneo/vscode-leetcode/pull/58).
77
- [@Himself65](https://github.com/Himself65) for contributing [#61](https://github.com/jdneo/vscode-leetcode/pull/61)
8-
- [@Vigilans](https://github.com/Vigilans) for contributing [#94](https://github.com/jdneo/vscode-leetcode/pull/94)
8+
- [@Vigilans](https://github.com/Vigilans) for contributing [#94](https://github.com/jdneo/vscode-leetcode/pull/94), [#193](https://github.com/jdneo/vscode-leetcode/pull/193)
99
- [@ringcrl](https://github.com/ringcrl) for contributing [#123](https://github.com/jdneo/vscode-leetcode/pull/123)
1010
- [@pujiaxun](https://github.com/pujiaxun) for contributing [#143](https://github.com/jdneo/vscode-leetcode/pull/143)
1111
- [@edvardchen](https://github.com/edvardchen) for contributing [#147](https://github.com/jdneo/vscode-leetcode/pull/147)
1212
- [@poppinlp](https://github.com/poppinlp) for contributing [#149](https://github.com/jdneo/vscode-leetcode/pull/149), [#171](https://github.com/jdneo/vscode-leetcode/pull/171), [#175](https://github.com/jdneo/vscode-leetcode/pull/175)
13+
- [@xuzaixian](https://github.com/xuzaixian) for contributing [#186](https://github.com/jdneo/vscode-leetcode/pull/186)
14+
- [@ZainChen](https://github.com/ZainChen) for contributing [#197](https://github.com/jdneo/vscode-leetcode/pull/197)

Diff for: CHANGELOG.md

+9
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.13.0]
7+
## Added
8+
- Preview the problem description [#131](https://github.com/jdneo/vscode-leetcode/issues/131)
9+
- Show top voted solution [#193](https://github.com/jdneo/vscode-leetcode/pull/193)
10+
- Add `collapse all` for the explorer [#197](https://github.com/jdneo/vscode-leetcode/pull/197)
11+
12+
## Fixed
13+
[Bugs fixed](https://github.com/jdneo/vscode-leetcode/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.13.0+label%3Abug)
14+
615
## [0.12.0]
716
## Added
817
- Add new command `LeetCode: Switch Default Language` to support switching the default language [#115](https://github.com/jdneo/vscode-leetcode/issues/115)

Diff for: README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- [中文文档](https://github.com/jdneo/vscode-leetcode/blob/master/docs/README_zh-CN.md)
2828

2929
## Requirements
30-
- [VS Code 1.23.0+](https://code.visualstudio.com/)
30+
- [VS Code 1.30.1+](https://code.visualstudio.com/)
3131
- [Node.js 8+](https://nodejs.org)
3232
> NOTE: Please make sure that `Node` is in your `PATH` environment variable. You can check this by running: `node -v`.
3333
@@ -70,14 +70,24 @@
7070
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/pick_problem.png" alt="Pick a Problem" />
7171
</p>
7272

73-
- Right click the problem in the `LeetCode Explorer` and select `Show Problem` will generate a new file with the problem description for you.
73+
- Directly click on the problem or right click the problem in the `LeetCode Explorer` and select `Preview Problem` to see the problem description.
74+
- Select `Show Problem` to directly open the file with the problem description.
7475

7576
> Note: If no folder is opened in VS Code, the extension will save the problem files in **$HOME/.leetcode/**.
7677
7778
> You can switch the default language by triggering the command: `LeetCode: Switch Default Language`.
7879
7980
---
8081

82+
### Show Top Voted Solution
83+
<p align="center">
84+
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/solution.png" alt="Show Top Voted Solution" />
85+
</p>
86+
87+
- Select `Show Top Voted Solution` will display the top voted solution for you.
88+
89+
---
90+
8191
### Submit the Answer
8292
<p align="center">
8393
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/submit.png" alt="Submit the Answer" />

Diff for: docs/README_zh-CN.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</a>
2121
</p>
2222

23-
## Sponsor
23+
## 赞助
2424
[![coding](https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/sponsor_coding.jpg)](https://e.coding.net/?utm_source=leetcode)
2525

2626
- [English Document](#Requirements)
@@ -70,14 +70,24 @@
7070
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/pick_problem.png" alt="选择题目" />
7171
</p>
7272

73-
-`LeetCode Explorer`**右键**题目并选择 `Show Problem` 进行答题。
73+
- 直接点击题目或者在 `LeetCode Explorer`**右键**题目并选择 `Preview Problem` 可查看题目描述
74+
- 选择 `Show Problem` 可直接进行答题。
7475

7576
> 注意:若当前 VS Code 没有已打开的文件夹,则生成的题目文件会存储于 **$HOME/.leetcode/** 目录下。
7677
7778
> 注意:你可以通过 `LeetCode: Switch Default Language` 命令变更答题时默认使用编程语言。
7879
7980
---
8081

82+
### 查看高票解答
83+
<p align="center">
84+
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/solution.png" alt="高票解答" />
85+
</p>
86+
87+
- 选择 `Show Top Voted Solution` 可查看该题目在讨论区内的高票解答。
88+
89+
---
90+
8191
### 提交答案
8292
<p align="center">
8393
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/submit.png" alt="提交答案" />

Diff for: docs/imgs/pick_problem.png

52.4 KB
Loading

Diff for: docs/imgs/solution.png

110 KB
Loading

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+6-8
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.12.0",
5+
"version": "0.13.0",
66
"author": "Sheng Chen",
77
"publisher": "shengchen",
88
"license": "MIT",
@@ -172,20 +172,19 @@
172172
],
173173
"view/item/context": [
174174
{
175-
"command": "leetcode.showProblem",
175+
"command": "leetcode.previewProblem",
176176
"when": "view == leetCodeExplorer && viewItem == problem",
177177
"group": "leetcode@1"
178178
},
179179
{
180-
181-
"command": "leetcode.showSolution",
180+
"command": "leetcode.showProblem",
182181
"when": "view == leetCodeExplorer && viewItem == problem",
183-
"group": "leetcode@1"
182+
"group": "leetcode@2"
184183
},
185184
{
186-
"command": "leetcode.previewProblem",
185+
"command": "leetcode.showSolution",
187186
"when": "view == leetCodeExplorer && viewItem == problem",
188-
"group": "leetcode@1"
187+
"group": "leetcode@3"
189188
}
190189
],
191190
"commandPalette": [
@@ -194,7 +193,6 @@
194193
"when": "never"
195194
},
196195
{
197-
198196
"command": "leetcode.showSolution",
199197
"when": "never"
200198
},

Diff for: thirdpartynotice.txt

+207
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
2+
For vscode-leetcode extension
3+
4+
This extension uses Open Source components. You can find the source code of their
5+
open source projects along with the license information below. We acknowledge and
6+
are grateful to these developers for their contribution to open source.
7+
8+
1. fs-extra (https://github.com/jprichardson/node-fs-extra)
9+
2. highlight.js (https://github.com/highlightjs/highlight.js/)
10+
3. require-from-string (https://github.com/floatdrop/require-from-string)
11+
4. lodash (https://github.com/lodash/lodash)
12+
5. markdown-it (https://github.com/markdown-it/markdown-it)
13+
6. leetcode-cli (https://github.com/skygragon/leetcode-cli)
14+
15+
fs-extra NOTICES BEGIN HERE
16+
=============================
17+
18+
(The MIT License)
19+
20+
Copyright (c) 2011-2017 JP Richardson
21+
22+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
23+
(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
24+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
25+
furnished to do so, subject to the following conditions:
26+
27+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
30+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
31+
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33+
34+
END OF fs-extra NOTICES AND INFORMATION
35+
==================================
36+
37+
highlight.js NOTICES BEGIN HERE
38+
=============================
39+
40+
Copyright (c) 2006, Ivan Sagalaev
41+
All rights reserved.
42+
Redistribution and use in source and binary forms, with or without
43+
modification, are permitted provided that the following conditions are met:
44+
45+
* Redistributions of source code must retain the above copyright
46+
notice, this list of conditions and the following disclaimer.
47+
* Redistributions in binary form must reproduce the above copyright
48+
notice, this list of conditions and the following disclaimer in the
49+
documentation and/or other materials provided with the distribution.
50+
* Neither the name of highlight.js nor the names of its contributors
51+
may be used to endorse or promote products derived from this software
52+
without specific prior written permission.
53+
54+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
55+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
56+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
57+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
58+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
59+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
60+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
61+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
62+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
63+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64+
65+
END OF highlight.js NOTICES AND INFORMATION
66+
==================================
67+
68+
require-from-string NOTICES BEGIN HERE
69+
=============================
70+
71+
The MIT License (MIT)
72+
73+
Copyright (c) Vsevolod Strukchinsky <[email protected]> (github.com/floatdrop)
74+
75+
Permission is hereby granted, free of charge, to any person obtaining a copy
76+
of this software and associated documentation files (the "Software"), to deal
77+
in the Software without restriction, including without limitation the rights
78+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
79+
copies of the Software, and to permit persons to whom the Software is
80+
furnished to do so, subject to the following conditions:
81+
82+
The above copyright notice and this permission notice shall be included in
83+
all copies or substantial portions of the Software.
84+
85+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
86+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
87+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
88+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
89+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
90+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
91+
THE SOFTWARE.
92+
93+
END OF require-from-string NOTICES AND INFORMATION
94+
==================================
95+
96+
lodash NOTICES BEGIN HERE
97+
=============================
98+
99+
The MIT License
100+
101+
Copyright JS Foundation and other contributors <https://js.foundation/>
102+
103+
Based on Underscore.js, copyright Jeremy Ashkenas,
104+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
105+
106+
This software consists of voluntary contributions made by many
107+
individuals. For exact contribution history, see the revision history
108+
available at https://github.com/lodash/lodash
109+
110+
The following license applies to all parts of this software except as
111+
documented below:
112+
113+
====
114+
115+
Permission is hereby granted, free of charge, to any person obtaining
116+
a copy of this software and associated documentation files (the
117+
"Software"), to deal in the Software without restriction, including
118+
without limitation the rights to use, copy, modify, merge, publish,
119+
distribute, sublicense, and/or sell copies of the Software, and to
120+
permit persons to whom the Software is furnished to do so, subject to
121+
the following conditions:
122+
123+
The above copyright notice and this permission notice shall be
124+
included in all copies or substantial portions of the Software.
125+
126+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
127+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
128+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
129+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
130+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
131+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
132+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
133+
134+
====
135+
136+
Copyright and related rights for sample code are waived via CC0. Sample
137+
code is defined as all source code displayed within the prose of the
138+
documentation.
139+
140+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
141+
142+
====
143+
144+
Files located in the node_modules and vendor directories are externally
145+
maintained libraries used by this software which have their own
146+
licenses; we recommend you read them, as their terms may differ from the
147+
terms above.
148+
149+
END OF lodash NOTICES AND INFORMATION
150+
==================================
151+
152+
markdown-it NOTICES BEGIN HERE
153+
=============================
154+
155+
Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
156+
157+
Permission is hereby granted, free of charge, to any person
158+
obtaining a copy of this software and associated documentation
159+
files (the "Software"), to deal in the Software without
160+
restriction, including without limitation the rights to use,
161+
copy, modify, merge, publish, distribute, sublicense, and/or sell
162+
copies of the Software, and to permit persons to whom the
163+
Software is furnished to do so, subject to the following
164+
conditions:
165+
166+
The above copyright notice and this permission notice shall be
167+
included in all copies or substantial portions of the Software.
168+
169+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
170+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
171+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
172+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
173+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
174+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
175+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
176+
OTHER DEALINGS IN THE SOFTWARE.
177+
178+
END OF markdown-it NOTICES AND INFORMATION
179+
==================================
180+
181+
leetcode-cli NOTICES BEGIN HERE
182+
=============================
183+
184+
MIT License
185+
186+
Copyright (c) 2016 skygragon
187+
188+
Permission is hereby granted, free of charge, to any person obtaining a copy
189+
of this software and associated documentation files (the "Software"), to deal
190+
in the Software without restriction, including without limitation the rights
191+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
192+
copies of the Software, and to permit persons to whom the Software is
193+
furnished to do so, subject to the following conditions:
194+
195+
The above copyright notice and this permission notice shall be included in all
196+
copies or substantial portions of the Software.
197+
198+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
199+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
200+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
201+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
202+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
203+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
204+
SOFTWARE.
205+
206+
END OF leetcode-cli NOTICES AND INFORMATION
207+
==================================

0 commit comments

Comments
 (0)