deerawan / vscode-dash

Dash, Zeal and Velocity documentation integration in Visual Studio Code 🔎📖
MIT License
289 stars 23 forks source link

Add action to search selection in the profile that is currently active in Dash #44

Closed nikitavoloboev closed 6 years ago

nikitavoloboev commented 6 years ago

RIght now using this action is annoying because by default searching JS in Dash will search over many useless things like Gulp, jQuery and more

2018-10-10 at 13 43

I would like to instead it to search over my currently active profile:

2018-10-10 at 13 44

Which I change often.

Is this possible to do or it's something VS Code doesn't allow?

deerawan commented 6 years ago

Hi @nikitavoloboev,

I'm truly sorry for that. Is your active profile the Default one?

image

For your case, we have some workarounds:

  1. You can trigger search in all docsets, default shortcut is ctrl + alt + h. Try this first and let me know if it solves your issue.

  2. Override the settings for javascript to search only for some specific docsets.

NOTE: this key settings is in vscode-dash 2.0.0

"dash.languageIdToDocsetMap": {
  ...,
  "javascript": [
    "javascript",
    "react",
    "typescript 
  ]
  ...
}

This may not be a robust solution because you said that you changed the docset in active profile often.

nikitavoloboev commented 6 years ago

Is your active profile the Default one?

It isn't. I have many profiles.

2018-10-10 at 14 51

Will try your solution now. Thank you.

deerawan commented 6 years ago

@nikitavoloboev gotcha.

Please try solution (1) by using ctrl + alt + h. Hope it can solve your issue.

nikitavoloboev commented 6 years ago

Thank you. That hotkey does what I needed. 🎊