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

VSCode: Opening up protein fasta files is really inconsistent #66

Open
KeaunAmani opened this issue Mar 31, 2023 · 6 comments
Open

VSCode: Opening up protein fasta files is really inconsistent #66

KeaunAmani opened this issue Mar 31, 2023 · 6 comments
Assignees

Comments

@KeaunAmani
Copy link

Opening up a fasta file in vscode with the fasta-taylor language mode results in this at start:
image

But then after switching in and out of the tab I get this:
image

Both cases seem to be bugged as in the first case you have the letter highlighting instead of changing the text color. The highlighting is annoying as it makes selecting text unnecessarily difficult. Furthermore, the second screenshot there's no text coloring at all which is unfortunate.

I looked through the extension settings but didn't see anything useful.

@ababaian ababaian assigned ababaian and liyao001 and unassigned ababaian Mar 31, 2023
@liyao001
Copy link
Contributor

liyao001 commented Apr 1, 2023

This looks weird. Can you post the entire file here (including the extension name)? I can take a look at this later.

@KeaunAmani
Copy link
Author

@liyao001 It seems to happen with all files that end with the .fasta extension, including this one I just downloaded from the pdb:
image

Note that I added the .txt extension just for uploading to github, but I opened the file as rcsb_pdb_7N0R.fasta
rcsb_pdb_7N0R.fasta.txt

@liyao001
Copy link
Contributor

liyao001 commented Apr 2, 2023

This issue happens because the plugin is confused about whether the sequences are for DNA or protein. I'll think about possible ways to fix this. Let's keep this issue open for now.

@KeaunAmani
Copy link
Author

Yeah sounds good. I think this is a pretty solid plugin, it's just a tad unfortunate that the fasta parsing isn't quite usable yet.

@ababaian
Copy link
Member

ababaian commented Apr 5, 2023

can you rename your fast file extension to .faa and try again?

@KeaunAmani
Copy link
Author

@ababaian it just looks like this
image

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

3 participants