Open ray-yin opened 5 years ago
mode equals undefined when printing shell scripts. Looking through the source, the issue lies in how VS Code reports back the languageId.
mode
undefined
languageId
VS Code uses shellscript for the languageId while CodeMirror expects it to be shell. This mismatch causes the language to be returned as undefined.
shellscript
shell
Adding the following in funcs.js after line 3 fixes the immediate issue but I'm sure there are other languages with similar mapping issues:
funcs.js
if (language == 'shellscript') { language = 'shell'; }
Let me know if you want me to submit a PR for this fix.
mode
equalsundefined
when printing shell scripts. Looking through the source, the issue lies in how VS Code reports back thelanguageId
.VS Code uses
shellscript
for thelanguageId
while CodeMirror expects it to beshell
. This mismatch causes the language to be returned asundefined
.Adding the following in
funcs.js
after line 3 fixes the immediate issue but I'm sure there are other languages with similar mapping issues:Let me know if you want me to submit a PR for this fix.