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: ndlwill/vscode-leetcode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5b7a584
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: 586b3e4
Choose a head ref
Loading
Showing with 6,547 additions and 2,927 deletions.
  1. +1 βˆ’0 .github/ISSUE_TEMPLATE.md
  2. +30 βˆ’0 .github/ISSUE_TEMPLATE/bug.md
  3. +16 βˆ’0 .github/ISSUE_TEMPLATE/feature.md
  4. +14 βˆ’0 .github/ISSUE_TEMPLATE/question.md
  5. +4 βˆ’0 .github/no-response.yml
  6. +50 βˆ’0 .github/workflows/build.yml
  7. +0 βˆ’19 .travis.yml
  8. +6 βˆ’3 .vscode/settings.json
  9. +1 βˆ’1 .vscodeignore
  10. +22 βˆ’10 ACKNOWLEDGEMENTS.md
  11. +222 βˆ’36 CHANGELOG.md
  12. +2 βˆ’1 LICENSE
  13. +81 βˆ’53 README.md
  14. +1 βˆ’0 _config.yml
  15. +79 βˆ’53 docs/README_zh-CN.md
  16. BIN docs/gifs/demo.gif
  17. BIN docs/imgs/pick_problem.png
  18. BIN docs/imgs/shortcuts.png
  19. BIN docs/imgs/submit.png
  20. BIN docs/imgs/test.png
  21. +2,672 βˆ’2,045 package-lock.json
  22. +514 βˆ’56 package.json
  23. BIN resources/LeetCode.png
  24. +9 βˆ’48 resources/LeetCode.svg
  25. BIN resources/check.png
  26. BIN resources/dark/dislike.png
  27. +0 βˆ’6 resources/dark/endpoint.svg
  28. BIN resources/dark/like.png
  29. +0 βˆ’6 resources/dark/refresh.svg
  30. +0 βˆ’6 resources/dark/search.svg
  31. +0 βˆ’7 resources/dark/signin.svg
  32. BIN resources/light/dislike.png
  33. +0 βˆ’6 resources/light/endpoint.svg
  34. BIN resources/light/like.png
  35. +0 βˆ’6 resources/light/refresh.svg
  36. +0 βˆ’6 resources/light/search.svg
  37. +0 βˆ’7 resources/light/signin.svg
  38. BIN resources/lock.png
  39. BIN resources/x.png
  40. +0 βˆ’28 src/codeLensProvider.ts
  41. +32 βˆ’0 src/codelens/CodeLensController.ts
  42. +94 βˆ’0 src/codelens/CustomCodeLensProvider.ts
  43. +38 βˆ’0 src/commands/language.ts
  44. +4 βˆ’4 src/commands/list.ts
  45. +37 βˆ’3 src/commands/plugin.ts
  46. +74 βˆ’17 src/commands/session.ts
  47. +246 βˆ’70 src/commands/show.ts
  48. +34 βˆ’0 src/commands/star.ts
  49. +6 βˆ’2 src/commands/submit.ts
  50. +3 βˆ’3 src/commands/test.ts
  51. +23 βˆ’3 src/explorer/LeetCodeNode.ts
  52. +62 βˆ’180 src/explorer/LeetCodeTreeDataProvider.ts
  53. +40 βˆ’0 src/explorer/LeetCodeTreeItemDecorationProvider.ts
  54. +203 βˆ’0 src/explorer/explorerNodeManager.ts
  55. +89 βˆ’33 src/extension.ts
  56. +55 βˆ’0 src/globalState.ts
  57. +146 βˆ’47 src/leetCodeExecutor.ts
  58. +140 βˆ’59 src/leetCodeManager.ts
  59. +0 βˆ’52 src/leetCodeResultProvider.ts
  60. +25 βˆ’0 src/request/query-user-data.ts
  61. +69 βˆ’0 src/shared.ts
  62. +12 βˆ’7 src/{leetCodeStatusBarItem.ts β†’ statusbar/LeetCodeStatusBarItem.ts}
  63. +46 βˆ’0 src/statusbar/leetCodeStatusBarController.ts
  64. +13 βˆ’4 src/utils/cpUtils.ts
  65. +28 βˆ’0 src/utils/httpUtils.ts
  66. +22 βˆ’2 src/utils/problemUtils.ts
  67. +68 βˆ’0 src/utils/settingUtils.ts
  68. +26 βˆ’0 src/utils/toolUtils.ts
  69. +130 βˆ’0 src/utils/trackingUtils.ts
  70. +49 βˆ’3 src/utils/uiUtils.ts
  71. +95 βˆ’12 src/utils/workspaceUtils.ts
  72. +6 βˆ’2 src/utils/wslUtils.ts
  73. +82 βˆ’0 src/webview/LeetCodeWebview.ts
  74. +206 βˆ’0 src/webview/leetCodePreviewProvider.ts
  75. +94 βˆ’0 src/webview/leetCodeSolutionProvider.ts
  76. +106 βˆ’0 src/webview/leetCodeSubmissionProvider.ts
  77. +166 βˆ’0 src/webview/markdownEngine.ts
  78. +236 βˆ’0 thirdpartynotice.txt
  79. +18 βˆ’21 tslint.json
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*It's really recommended to create an issue by a template.*
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: πŸ› Bug report
about: Create a report to help us improve
---

## πŸ› Bug Report

A clear and concise description of what the bug is.

## To Reproduce

Steps to reproduce the behavior.

## Expected behavior

A clear and concise description of what you expected to happen.

## Extension Output

Paste here the LeetCode extension log from output channel.

Guidance: Press `Ctrl+Shift+U`, and toggle the channel to `LeetCode`.

## Your Environment

- *os*:
- *extension settings*:
- *nodejs version*:
- *vscode version*:
- *extension version*:
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: πŸš€ Feature Proposal
about: Submit a proposal for a new feature
---

## πŸš€ Feature Proposal

A clear and concise description of what the feature is.

## Motivation

Please outline the motivation for the proposal.

## Contribution

Please describe the solution if you'd like to submit a PR.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
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/LeetCode-OpenSource/vscode-leetcode/blob/master/README.md) first.

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

## πŸ’¬ Questions and Help

Please outline the questions.
4 changes: 4 additions & 0 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
daysUntilClose: 14
responseRequiredLabel: need more info
closeComment: >
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.
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
}
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
@@ -5,10 +5,10 @@ test/**
src/**
**/*.map
.gitignore
.travis.yml
package-lock.json
tsconfig.json
tslint.json
**/*.gif
ACKNOWLEDGEMENTS.md
docs
.github
32 changes: 22 additions & 10 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
## Contributors πŸ™β€

A big thanks to the following individuals for contributing:

- [@TsFreddie](https://github.com/TsFreddie) for contributing [#19](https://github.com/jdneo/vscode-leetcode/pull/19).
- [@ntt2k](https://github.com/ntt2k) for contributing [#38](https://github.com/jdneo/vscode-leetcode/pull/38).
- [@purocean](https://github.com/purocean) for contributing [#46](https://github.com/jdneo/vscode-leetcode/pull/46)
- [@Xeonacid](https://github.com/Xeonacid) for contributing [#58](https://github.com/jdneo/vscode-leetcode/pull/58).
- [@Himself65](https://github.com/Himself65) for contributing [#61](https://github.com/jdneo/vscode-leetcode/pull/61)
- [@Vigilans](https://github.com/Vigilans) for contributing [#94](https://github.com/jdneo/vscode-leetcode/pull/94)
- [@ringcrl](https://github.com/ringcrl) for contributing [#123](https://github.com/jdneo/vscode-leetcode/pull/123)
- [@pujiaxun](https://github.com/pujiaxun) for contributing [#143](https://github.com/jdneo/vscode-leetcode/pull/143)
- [@edvardchen](https://github.com/edvardchen) for contributing [#147](https://github.com/jdneo/vscode-leetcode/pull/147)
- [@poppinlp](https://github.com/poppinlp) for contributing [#149](https://github.com/jdneo/vscode-leetcode/pull/149)
- [@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