Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b455df0

Browse files
committed
Merge remote-tracking branch 'remotes/upstream/master'
2 parents b34301f + d713ad5 commit b455df0

25 files changed

+3033
-411
lines changed

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
linux:
11+
name: Linux
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Node.js environment
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: 14
21+
22+
- name: Install Node.js modules
23+
run: npm install
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: VSCE Packge
29+
run: npx vsce package
30+
31+
windows:
32+
name: Windows
33+
runs-on: windows-latest
34+
timeout-minutes: 30
35+
steps:
36+
- uses: actions/checkout@v2
37+
38+
- name: Setup Node.js environment
39+
uses: actions/setup-node@v2
40+
with:
41+
node-version: 14
42+
43+
- name: Install Node.js modules
44+
run: npm install
45+
46+
- name: Lint
47+
run: npm run lint
48+
49+
- name: VSCE Packge
50+
run: npx vsce package
51+
52+
darwin:
53+
name: macOS
54+
runs-on: macos-latest
55+
timeout-minutes: 30
56+
steps:
57+
- uses: actions/checkout@v2
58+
59+
- name: Setup Node.js environment
60+
uses: actions/setup-node@v2
61+
with:
62+
node-version: 14
63+
64+
- name: Install Node.js modules
65+
run: npm install
66+
67+
- name: Lint
68+
run: npm run lint
69+
70+
- name: VSCE Packge
71+
run: npx vsce package

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.vscodeignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ test/**
55
src/**
66
**/*.map
77
.gitignore
8-
.travis.yml
98
package-lock.json
109
tsconfig.json
1110
tslint.json

CHANGELOG.md

Lines changed: 289 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22
All notable changes to the "leetcode" extension will be documented in this file.
33

4+
# 1.0.17
5+
更新了 imports.py
6+
47
# "version": "1.0.5"
58
修改了解析文本的获取方式,不需要将描述放在代码注释中了。
69
# "version": "1.0.6",
@@ -25,3 +28,289 @@ All notable changes to the "leetcode" extension will be documented in this file.
2528
更新了 imports.py random fix
2629
# 1.0.16
2730
更新了 Optional[TreeNode]
31+
32+
33+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
34+
35+
## [0.18.0]
36+
### Added
37+
- Add `star` command in shortcuts [PR#601](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/601)
38+
- Add an option to disable endpoint translation [#389](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/389)
39+
40+
### Changed
41+
- LeetCode actions are moved into sub-menu: `LeetCode` in the editor context menu. [PR#712](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/712)
42+
43+
### Fixed
44+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.18.0+is%3Aclosed+label%3Abug)
45+
46+
## [0.17.0]
47+
### Added
48+
- Add TypeScript support [#560](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/560)
49+
50+
### Changed
51+
- Update the UI resources [PR#561](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/561)
52+
53+
## [0.16.2]
54+
### Added
55+
- New Category: `Concurrency` [CLI#42](https://github.com/leetcode-tools/leetcode-cli/pull/42)
56+
- New configuration to better configure how to show the description [#310](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/310)
57+
58+
### Removed
59+
- Removed the deprecated setting `leetcode.enableShortcuts` [PR#520](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/520)
60+
- Removed the deprecated setting `leetcode.outputFolder` [PR#521](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/521)
61+
62+
## [0.16.1]
63+
### Added
64+
- Can show the problem in current workspace even if it's not a LeetCode workspace [#373](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/373)
65+
66+
### Fixed
67+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.16.1+is%3Aclosed+label%3Abug)
68+
69+
## [0.16.0]
70+
### Added
71+
- Support GitHub login and LinkedIn login [PR#496](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/496)
72+
73+
## [0.15.8]
74+
### Added
75+
- Add a new command `Sign In by Cookie` to workaround the issue that [users cannot login to LeetCode](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478). Please check the [workaround steps](https://github.com/LeetCode-OpenSource/vscode-leetcode/tree/master#%EF%B8%8F-attention-%EF%B8%8F--workaround-to-login-to-leetcode-endpoint) for more details!
76+
77+
### Changed
78+
- Update the explorer icons to be align with the VS Code design [#460](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/460)
79+
80+
## [0.15.7]
81+
### Fixed
82+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.7+is%3Aclosed+label%3Abug)
83+
84+
## [0.15.6]
85+
### Added
86+
- Add a link to the solution page [#424](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/424)
87+
88+
### Fixed
89+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.6+is%3Aclosed+label%3Abug)
90+
91+
## [0.15.5]
92+
### Added
93+
- Add a link to the discussion page [#420](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/420)
94+
95+
### Fixed
96+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.5+is%3Aclosed+label%3Abug)
97+
98+
## [0.15.4]
99+
### Added
100+
- Add a new setting `leetcode.filePath`. Now users can use this setting to dynamicly specify the relative folder name and file name. [#PR380](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/380)
101+
102+
### Fixed
103+
- Missing language `Rust` in the supported language list. [#PR412](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/412)
104+
- Cannot show output when the answer is wrong. [#414](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/414)
105+
106+
## [0.15.3]
107+
### Added
108+
- Support `Pick One` [#263](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/263)
109+
- Support toggling the favorite problems [#378](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/378)
110+
111+
### Changed
112+
- Update the activity bar icon [#395](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/263)
113+
114+
### Fixed
115+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.3+is%3Aclosed+label%3Abug)
116+
117+
## [0.15.2]
118+
### Added
119+
- Prompt to open the workspace for LeetCode [#130](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/130)
120+
- Support deleting sessions [#198](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/130)
121+
122+
### Fixed
123+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.2+is%3Aclosed+label%3Abug)
124+
125+
## [0.15.1]
126+
### Fixed
127+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.1+is%3Aclosed+label%3Abug)
128+
129+
## [0.15.0]
130+
### Added
131+
- Auto refresh the explorer after submitting [#91](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/91)
132+
- Add a editor shortcut `Description` to show the problem description [#286](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/286)
133+
- Support customizing the shortcuts in editor [#335](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/335)
134+
135+
### Fixed
136+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.15.0+is%3Aclosed+label%3Abug)
137+
138+
## [0.14.3]
139+
### Added
140+
- Support interpolation for `leetcode.outputFolder` settings [#151](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/151)
141+
142+
### Fixed
143+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.14.3+label%3Abug)
144+
145+
## [0.14.2]
146+
### Added
147+
- Add the `All` category in the LeetCode Explorer [#184](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/184)
148+
- Add shortcuts for `Show top voted solution` [#269](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/269)
149+
150+
### Fixed
151+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.14.2)
152+
153+
## [0.14.1]
154+
### Added
155+
- Add setting `leetcode.showCommentDescription` to specify whether including the problem description in comments or not [#287](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/287)
156+
157+
## [0.14.0]
158+
### Added
159+
- Add setting `leetcode.enableShortcuts` to specify whether to show the submit/test shortcuts in editor [#146](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/146)
160+
- Add `Like` and `Dislike` counts in the problem description [#267](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/267)
161+
162+
### Changed
163+
- Improve the `Preview`, `Result` and `Solution` views
164+
165+
### Fixed
166+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+label%3Abug+is%3Aclosed+milestone%3A0.14.0)
167+
168+
## [0.13.3]
169+
### Fixed
170+
- Fix the bug that the extension cannot be activated
171+
172+
## [0.13.2]
173+
### Added
174+
- Add a setting `leetcode.enableStatusBar` to specify whether the LeetCode status bar will be shown or not [#156](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/156)
175+
- Add a setting `leetcode.nodePath` to specify the `Node.js` executable path [#227](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/227)
176+
177+
### Changed
178+
- Update the activity bar icon, See: [#225](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/225)
179+
180+
### Fixed
181+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.13.2+is%3Aclosed+label%3Abug)
182+
183+
## [0.13.1]
184+
### Fixed
185+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+milestone%3A0.13.1+is%3Aclosed+label%3Abug)
186+
187+
## [0.13.0]
188+
### Added
189+
- Preview the problem description [#131](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/131)
190+
- Show top voted solution [#193](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/193)
191+
- Add `collapse all` for the explorer [#197](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/197)
192+
193+
### Fixed
194+
[Bugs fixed](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.13.0+label%3Abug)
195+
196+
## [0.12.0]
197+
### Added
198+
- Add new command `LeetCode: Switch Default Language` to support switching the default language [#115](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/115)
199+
- Support `PHP` and `Rust` ([#83](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/83), [#103](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/103))
200+
201+
### Fixed
202+
- Cannot retrieve time and memory result [#105](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/105)
203+
- Power operator displays in a wrong way [#74](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/74)
204+
205+
## [0.11.0]
206+
### Added
207+
- Add new setting: `leetcode.outputFolder` to customize the sub-directory to save the files generated by 'Show Problem' [#119](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/119)
208+
- Add tooltips for sub-category nodes in LeetCode Explorer [#143](https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/143)
209+
210+
### Changed
211+
- Now when triggering 'Show Problem', the extension will not generate a new file if it already exists [#59](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/59)
212+
213+
### Fixed
214+
- Log in timeout when proxy is enabled [#117](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/117)
215+
216+
## [0.10.2]
217+
### Fixed
218+
- Test cases cannot have double quotes [#60](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/60)
219+
220+
## [0.10.1]
221+
### Changed
222+
- Refine the README page.
223+
224+
## [0.10.0]
225+
### Added
226+
- Add an extension setting to hide solved problems [#95](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/95)
227+
- Support categorize problems by company, tag, difficulty and favorite [#67](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/67)
228+
229+
## [0.9.0]
230+
### Changed
231+
- Improve the experience of switching endpoint [#85](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/85)
232+
- Use web view to show the result page [#76](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/76)
233+
234+
235+
## [0.8.2]
236+
### Added
237+
- Add Code Lens for submitting the answer to LeetCode
238+
239+
### Fixed
240+
- Fix the bug that the extension could not automatically sign in [#72](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/72)
241+
242+
## [0.8.1]
243+
### Changed
244+
- Upgrade LeetCode CLI to v2.6.1
245+
246+
## [0.8.0]
247+
### Added
248+
- Support LeetCode CN [#50](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/50)
249+
- Support Windows Subsystem for Linux [#47](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/47)
250+
251+
## [0.7.0]
252+
### Added
253+
- Add spinner when submitting code [#43](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/43)
254+
255+
## [0.6.1]
256+
### Added
257+
- Add Sign in action into LeetCode Explorer title area [#25](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/25)
258+
259+
## [0.6.0]
260+
### Changed
261+
- Move LeetCode explorer into activity bar [#39](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/39)
262+
263+
### Added
264+
- Support trigger test & submit in the editor [#37](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/37)
265+
266+
### Fixed
267+
- Fix the bug that cannot show problem [#41](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/41)
268+
269+
## [0.5.1]
270+
### Fixed
271+
- Fix the bug when user's path contains white spaces [#34](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/34)
272+
273+
## [0.5.0]
274+
### Added
275+
- Support submit and test solution files from the file explorer in VS Code ([#24](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/24), [#26](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/26))
276+
277+
## [0.4.0]
278+
### Added
279+
- Support locked problem [#20](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/20)
280+
281+
### Changed
282+
- Simplify the command 'LeetCode: Test Current File' to 'LeetCode: Test' [#18](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/18)
283+
- Will automatically save current file when 'LeetCode: Test' command is triggered [#17](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/17)
284+
285+
## [0.3.0]
286+
### Added
287+
- Test current solution file [#15](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/15)
288+
289+
## [0.2.1]
290+
### Fixed
291+
- Fix the wrong icon bug in LeetCode Explorer [#9](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/9)
292+
- Fix the switch session bug when login session is expired [#12](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/12)
293+
294+
## [0.2.0]
295+
### Added
296+
- Support setting the default language to solve problems [#5](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/5)
297+
298+
### Fixed
299+
- When user cancels login, no further actions will happen [#10](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/10)
300+
301+
## [0.1.2]
302+
### Fixed
303+
- Fix the duplicated nodes in LeetCode Explorer bug [#6](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/6)
304+
305+
## [0.1.1]
306+
### Fixed
307+
- Fix a bug in LeetCode Explorer [#3](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/3)
308+
- Remove the show problem command from command palette [#4](https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/4)
309+
310+
## [0.1.0]
311+
### Added
312+
- Sign in/out to LeetCode
313+
- Switch and create session
314+
- Show problems in explorer
315+
- Search problems by keywords
316+
- Submit solutions to LeetCode

0 commit comments

Comments
 (0)