deerawan / vscode-dash

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

Added support for Arduino #71

Closed akdir closed 4 years ago

akdir commented 4 years ago

Changelog

I added support for Arduino by detecting the fileName using dash.fileNameToDocsetMap. This is because VSCode sees arduino(.ino) files as .cpp files. The output of vscode.window.activeEditor.document.languageId is cpp for arduino(.ino) files. To mitigate this problem we map `.ino` files with dash.fileNameToDocsetMap to arduino. Dash and Zeal still show us dash docsets of cpp, but the arduino docsets come first, because we prioritize docset matching by file name before languageId.

Checklist

Closes https://github.com/deerawan/vscode-dash/issues/62