Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print mode for shell scripts does not work #30

Open
ray-yin opened this issue Feb 25, 2019 · 0 comments
Open

Print mode for shell scripts does not work #30

ray-yin opened this issue Feb 25, 2019 · 0 comments

Comments

@ray-yin
Copy link

ray-yin commented Feb 25, 2019

mode equals undefined when printing shell scripts. Looking through the source, the issue lies in how VS Code reports back the 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.

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:

  if (language == 'shellscript') {
    language = 'shell';
  }

Let me know if you want me to submit a PR for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant