GithubHelp home page GithubHelp logo

Comments (9)

mre avatar mre commented on September 21, 2024

See https://github.com/plibither8/vscode-remove-comments/blob/master/src/parser.ts

from vscode-snippet.

chubin avatar chubin commented on September 21, 2024

I believe @dbeniamine (the author of the Vim plugin) could help you with this issue, at least he could give you some info about his approach.

from vscode-snippet.

dbeniamine avatar dbeniamine commented on September 21, 2024

Hi @mre,

It would be nice to be able to toggle the comments off/on (for one snippet).
It is possible to fully disable comments completely, but it is not the same,
because usually, you want to get an answer with the comments, read them, and then remove them if you don't need them.

I agree with you, in the vim plugin I implemented this by two means :

  1. There is a variable to enable and disable globally comments (witch you already have)
  2. I keep locally a query history, and give the possibility to replay the last query toggling comments

I hope this can help you

from vscode-snippet.

mre avatar mre commented on September 21, 2024
  1. I keep locally a query history, and give the possibility to replay the last query toggling comments

So smart! I'll go with this implementation. Thanks for the tip!

from vscode-snippet.

dbeniamine avatar dbeniamine commented on September 21, 2024

you're welcome ;)

from vscode-snippet.

GianOrtiz avatar GianOrtiz commented on September 21, 2024

I've develop a message box to ask if the user wants to display comments in a query if the query was already searched before by using the extension permanent cache.I think that it would be more useful if it use extensions temporary cache requestCache. I didn't understood if this was the original idea. What is your thougths?

from vscode-snippet.

mre avatar mre commented on September 21, 2024

I think we could add another command "Snippet: Toggle comments", which would rerun the last query from the cache and set the Q parameter accordingly:

  • With comments: curl cht.sh/lua/table+keys
  • Without comments: curl cht.sh/lua/table+keys?Q

The setting should also be persistent, so if comments were toggled off, they would stay off for future queries.

from vscode-snippet.

GianOrtiz avatar GianOrtiz commented on September 21, 2024

Seems like a better idea, @mre. I will try to work on it, this command would be very useful for me.

from vscode-snippet.

mre avatar mre commented on September 21, 2024

This was done in Version 0.5.1. Reference: 4387c86

from vscode-snippet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.