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
[x] Code compiles correctly
[ ] Add or update tests, if possible
[x] All tests passing
[x] Update the README, if necessary
[x] New contributor? added myself via npm run contributor:add
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
npm run contributor:add
Closes https://github.com/deerawan/vscode-dash/issues/62