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

Fix bug where not detecting the LaTeX files. #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edlongman
Copy link

The filetype is now text.tex.latex.beamer but this means it is no longer an exact match. Instead match using indexOf to find the first occurance of text.tex.latex. If no match then indexOf returns -1 which evaluates to false.

Also relevant for #7

This is probably caused by Atom-Latex misdetecting the documentclass but this doesn't affect the tree structure.
As seen in https://github.com/James-Yu/Atom-LaTeX/blob/8188e97ee0f89f3b43c977581aa60d332a12fb50/lib/view/status.js#L69

edlongman and others added 2 commits May 15, 2019 12:54
The filetype is now text.tex.latex.beamer but this means it is no longer an exact match. Instead match using indexOf to find the first occurance of `text.tex.latex`. If no match then indexOf returns -1 which evaluates to false.

Also relevant for !7

This is probably caused by Atom-Latex misdetecting the documentclass but this doesn't affect the tree structure. 
As seen in https://github.com/James-Yu/Atom-LaTeX/blob/8188e97ee0f89f3b43c977581aa60d332a12fb50/lib/view/status.js#L69
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

Successfully merging this pull request may close these issues.

None yet

1 participant