Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new live-suggestion feature of cheat.sh #17

Open
mre opened this issue Nov 1, 2018 · 5 comments
Open

Implement new live-suggestion feature of cheat.sh #17

mre opened this issue Nov 1, 2018 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mre
Copy link
Owner

mre commented Nov 1, 2018

In #5, @chubin mentioned a new interface for live suggestions in cheat.sh:

$ curl cheat.sh/python/create+empty?query=complete
create empty list
create empty array
create empty file
create empty dict
create empty set

(See here: #5 (comment))

This is a tracking ticket for this feature.
As soon as it becomes available, we should add it to vscode-snippet, as it provides a lot of value in my opinion.

@mre mre added enhancement New feature or request help wanted Extra attention is needed labels Nov 1, 2018
@mre
Copy link
Owner Author

mre commented Nov 1, 2018

On that note, we also might want to add a "suggestion delay" config variable, which indicates how long vscode-snippet is going to wait before sending a query to cheat.sh.

@chubin
Copy link

chubin commented Nov 1, 2018

@mre Why do you think that we need a delay here? Why don't you want to send a query immediately?

@mre
Copy link
Owner Author

mre commented Nov 1, 2018

My reasoning was that I want to avoid overloading the server, but maybe I was a bit too conservative here. Let's try without a delay and go from there.

@msanjeevkumar
Copy link

msanjeevkumar commented Oct 19, 2019

Currently, VS Code does not provide the needed API for this functionality, See microsoft/vscode#21372

@mre
Copy link
Owner Author

mre commented Oct 19, 2019

The last comment in the linked issue mentions the new QuickPick API.
microsoft/vscode#21372 (comment)
Maybe that can help us?

Looks like it was done here?
https://github.com/KnisterPeter/vscode-github/pull/234/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants