Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sqler21c/vscode-leetcode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: LeetCode-OpenSource/vscode-leetcode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 4,149 additions and 1,342 deletions.
  1. +3 −3 .github/ISSUE_TEMPLATE/question.md
  2. +50 −0 .github/workflows/build.yml
  3. +0 −19 .travis.yml
  4. +6 −3 .vscode/settings.json
  5. +0 −1 .vscodeignore
  6. +20 −13 ACKNOWLEDGEMENTS.md
  7. +151 −64 CHANGELOG.md
  8. +2 −1 LICENSE
  9. +64 −41 README.md
  10. +64 −42 docs/README_zh-CN.md
  11. +2,612 −757 package-lock.json
  12. +112 −58 package.json
  13. BIN resources/LeetCode.png
  14. +5 −7 resources/LeetCode.svg
  15. BIN resources/check.png
  16. BIN resources/dark/dislike.png
  17. +0 −6 resources/dark/endpoint.svg
  18. BIN resources/dark/like.png
  19. +0 −6 resources/dark/refresh.svg
  20. +0 −6 resources/dark/search.svg
  21. +0 −7 resources/dark/signin.svg
  22. BIN resources/light/dislike.png
  23. +0 −6 resources/light/endpoint.svg
  24. BIN resources/light/like.png
  25. +0 −6 resources/light/refresh.svg
  26. +0 −6 resources/light/search.svg
  27. +0 −7 resources/light/signin.svg
  28. BIN resources/lock.png
  29. BIN resources/x.png
  30. +5 −21 src/codelens/CodeLensController.ts
  31. +29 −3 src/codelens/CustomCodeLensProvider.ts
  32. +4 −4 src/commands/list.ts
  33. +36 −2 src/commands/plugin.ts
  34. +79 −49 src/commands/show.ts
  35. +10 −2 src/commands/star.ts
  36. +1 −1 src/commands/test.ts
  37. +14 −1 src/explorer/LeetCodeNode.ts
  38. +28 −16 src/explorer/LeetCodeTreeDataProvider.ts
  39. +40 −0 src/explorer/LeetCodeTreeItemDecorationProvider.ts
  40. +16 −4 src/explorer/explorerNodeManager.ts
  41. +39 −4 src/extension.ts
  42. +55 −0 src/globalState.ts
  43. +69 −29 src/leetCodeExecutor.ts
  44. +129 −58 src/leetCodeManager.ts
  45. +25 −0 src/request/query-user-data.ts
  46. +63 −5 src/shared.ts
  47. +3 −3 src/utils/cpUtils.ts
  48. +28 −0 src/utils/httpUtils.ts
  49. +48 −0 src/utils/settingUtils.ts
  50. +26 −0 src/utils/toolUtils.ts
  51. +130 −0 src/utils/trackingUtils.ts
  52. +16 −5 src/utils/uiUtils.ts
  53. +10 −4 src/utils/workspaceUtils.ts
  54. +4 −1 src/utils/wslUtils.ts
  55. +47 −34 src/webview/leetCodePreviewProvider.ts
  56. +0 −1 src/webview/leetCodeSolutionProvider.ts
  57. +59 −10 src/webview/leetCodeSubmissionProvider.ts
  58. +29 −0 thirdpartynotice.txt
  59. +18 −26 tslint.json
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@ name: 💬 Questions / Help
about: If you have questions, please check our documents first
---

Before you submit an question we recommend you to check out the [DOCUMENT](https://github.com/jdneo/vscode-leetcode/blob/master/README.md) first.
Before you submit an question we recommend you to check out the [DOCUMENT](https://github.com/LeetCode-OpenSource/vscode-leetcode/blob/master/README.md) first.

You can also find more information in:
- [TROUBLESHOOTING](https://github.com/jdneo/vscode-leetcode/wiki/Troubleshooting)
- [FAQ](https://github.com/jdneo/vscode-leetcode/wiki/FAQ)
- [TROUBLESHOOTING](https://github.com/LeetCode-OpenSource/vscode-leetcode/wiki/Troubleshooting)
- [FAQ](https://github.com/LeetCode-OpenSource/vscode-leetcode/wiki/FAQ)

## 💬 Questions and Help

50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint

- name: VSCE Packge
run: npx vsce package

windows:
name: Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint

- name: VSCE Packge
run: npx vsce package
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.formatOnSave": true,
"editor.formatOnSave": false,
"editor.insertSpaces": true,
"editor.tabSize": 4,
"files.insertFinalNewline": true,
@@ -10,5 +10,8 @@
".vscode-test": true
},
"tslint.autoFixOnSave": true,
"tslint.ignoreDefinitionFiles": true
}
"tslint.ignoreDefinitionFiles": true,
"prettier.tabWidth": 4,
"prettier.useTabs": false,
"prettier.printWidth": 150
}
1 change: 0 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ test/**
src/**
**/*.map
.gitignore
.travis.yml
package-lock.json
tsconfig.json
tslint.json
33 changes: 20 additions & 13 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
@@ -2,16 +2,23 @@

A big thanks to the following individuals for contributing:

- [@TsFreddie](https://github.com/TsFreddie)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=TsFreddie)
- [@ntt2k](https://github.com/ntt2k)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=ntt2k)
- [@purocean](https://github.com/purocean)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=purocean)
- [@Xeonacid](https://github.com/Xeonacid)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=Xeonacid)
- [@Himself65](https://github.com/Himself65)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=Himself65)
- [@Vigilans](https://github.com/Vigilans)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=Vigilans)
- [@ringcrl](https://github.com/ringcrl)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=ringcrl)
- [@pujiaxun](https://github.com/pujiaxun)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=pujiaxun)
- [@edvardchen](https://github.com/edvardchen)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=edvardchen)
- [@poppinlp](https://github.com/poppinlp)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=poppinlp)
- [@xuzaixian](https://github.com/xuzaixian)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=xuzaixian)
- [@ZainChen](https://github.com/ZainChen)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=ZainChen)
- [@houtianze](https://github.com/houtianze)[contributions](https://github.com/jdneo/vscode-leetcode/commits?author=houtianze)
- [@JIEJIAN21](https://github.com/JIEJIAN21) - thanks for logo and icon design
- [@TsFreddie](https://github.com/TsFreddie)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=TsFreddie)
- [@ntt2k](https://github.com/ntt2k)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=ntt2k)
- [@purocean](https://github.com/purocean)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=purocean)
- [@Xeonacid](https://github.com/Xeonacid)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=Xeonacid)
- [@Himself65](https://github.com/Himself65)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=Himself65)
- [@Vigilans](https://github.com/Vigilans)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=Vigilans)
- [@ringcrl](https://github.com/ringcrl)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=ringcrl)
- [@pujiaxun](https://github.com/pujiaxun)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=pujiaxun)
- [@edvardchen](https://github.com/edvardchen)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=edvardchen)
- [@poppinlp](https://github.com/poppinlp)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=poppinlp)
- [@xuzaixian](https://github.com/xuzaixian)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=xuzaixian)
- [@ZainChen](https://github.com/ZainChen)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=ZainChen)
- [@houtianze](https://github.com/houtianze)[contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=houtianze)
- [@magic-akari](https://github.com/magic-akari) - [contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=magic-akari)
- [@SF-Zhou](https://github.com/SF-Zhou) - [contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=SF-Zhou)
- [@fuafa](https://github.com/fuafa) - [contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=fuafa)
- [@iFun](https://github.com/iFun) - [contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=iFun)
- [@hologerry](https://github.com/hologerry) - [contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=hologerry)
- [@yihong0618](https://github.com/yihong0618) - [contributions](https://github.com/LeetCode-OpenSource/vscode-leetcode/commits?author=yihong0618)
Loading