Comments (10)
不太确定我有没有正确理解的你的问题。
你可以试试在VS Code里,点击
File
>Open Folder...
, 然后选择目标文件夹(默认情况下所有题目会存储在$HOME/.leetcode/
),这个时候你就可以在VS Code里看到所有文件了。
我觉得在点击show problem时先判断一下本地有没有文件再来决定打开本地文件(如果本地有)或者拉取题目(如果本地没有)这样好一点,因为这样可以看到之前的草稿或者提交的答案
from vscode-leetcode.
@jdneo yes
from vscode-leetcode.
Of course. I'll send it this weekend. :)
from vscode-leetcode.
不太确定我有没有正确理解的你的问题。
你可以试试在VS Code里,点击File
> Open Folder...
, 然后选择目标文件夹(默认情况下所有题目会存储在$HOME/.leetcode/
),这个时候你就可以在VS Code里看到所有文件了。
from vscode-leetcode.
@taoweicn This is a good suggestion.
@SkyLin0909 Do you mean to make the extension work as @taoweicn said?
from vscode-leetcode.
@jdneo Hi,请问这是一个 PR-welcomed 的 issue 么?
from vscode-leetcode.
@poppinlp All the issues are PR welcomed. Just remember to discuss the implementation in the issue before sending out the PR.
Thanks
from vscode-leetcode.
@jdneo
Thanks. Nice!
I've looked into the code about this issue since it really bothers me.
This issue is caused by the params we passed into the show
API of leetcode-cli
which will generate a new source code file every time. And i haven't seen a param for existence checking in show
API.
So here may be some plans:
A: We could genearte the file name by ourself and by which we could do the existence checking to determine whether to use the local code or get the remote template by show
API from leetcode-cli
.
This could solve this problem but we may meet some new problems too:
- generating file name by id and slug which should be compatible with the present
- mapping the file extension with language
B: We could use show
API to generate source file in a temp path and by which we could get the file name. Then do the existence checking.
It's a little bit simple solution but may cost more time since we will always call the API.
So, what's your option about this? I prefer the plan A and i feel free for any ideas. :)
from vscode-leetcode.
@poppinlp Plan A sounds good to me. Would you like to make a PR for it?
from vscode-leetcode.
Has been addressed with the help of @poppinlp in #149.
Will release in 0.11.0
from vscode-leetcode.
Related Issues (20)
- (SOLVED)Unable to login to Leetcode.com HOT 15
- is env supported in eetcode.workspaceFolder?/是否支持环境变量指定 leetcode.workspaceFolder
- > > Any step-by-step instructions to solve the problem temporily ? thanks! HOT 1
- Error: Command "wsl wslpath,-u,""C://Program Files//nodejs//node.exe""" failed with exit code "1".
- In version 0.18.2, there is an issue where local vscode.exe cannot be opened after redirecting to the authorized login page on the web. HOT 3
- Are there plans to add a studyplan category?
- (SOLVED) Please help me: Can't load any questions and test, submit HOT 3
- 不能登录leetcode.cn HOT 6
- workspace floder 支持工作区设置 HOT 1
- If vsc-leetcode-cli is no longer maintained, can you fork it for development?
- Failed to log in without any output HOT 3
- The problem set is incomplete HOT 1
- With the extension i am not getting login option for Cookies HOT 2
- show top voted solution bug
- Not able to login as mentioned in the readme file HOT 1
- Failed to fetch list problems and stuck on fetching user data HOT 1
- [SOLUTION] Here's how to login with this plugin. HOT 10
- Show Perfectly Matched Problem When Searching by Problem ID HOT 1
- Unable to login using the default login method in vscode-insiders HOT 3
- DeprecationWarning: The punycode' module is deprecated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-leetcode.