deerawan / vscode-dash

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

Ansible search always includes colon #114

Open kassi opened 1 year ago

kassi commented 1 year ago

When in ansible mode, performing "Search in Dash for current selection" always appends the colon from the yaml key. When in dockercompose mode for instance, this is not the case.

Example:

- name: My Ansible task
  ansible.builtin.file:
               ^ cursor

Searches for "ansible.builtin.file:", so I always have to remove the colon from the search manually.

Since VSCode also highlights the whole area when the cursor inside incl. colon, I guess it has something to do with wordSeparators, but I was not able to overwrite this in the settings and make it work. Maybe this is related to the ansible plugin rather than vscode-dash, but maybe someone has an idea on how to fix this.