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

Does assemblyscript have a filename extension without (.ts) #1750

Closed
chooaya opened this issue Mar 21, 2021 · 4 comments
Closed

Does assemblyscript have a filename extension without (.ts) #1750

chooaya opened this issue Mar 21, 2021 · 4 comments

Comments

@chooaya
Copy link

chooaya commented Mar 21, 2021

typescript and accemblyscript in n some cases may be used in the same project, but with the extension (.ts) . People cannot tell the difference between typescript and accemblyscript . If there is a new filename extension(exp: .asmts ) for assemblyscript ,I think everyone will be happy.Thank you

@dcodeIO
Copy link
Member

dcodeIO commented Mar 21, 2021

There is a discussion already to consider a file extension other than .ts that may be of interest.

@chooaya
Copy link
Author

chooaya commented Mar 21, 2021

There is a discussion already to consider a file extension other than .ts that may be of interest.

So just use this setting
{
"files.associations": {
"*.asmts": "typescript"
}
}

"*.asmts" will be considered as typescript, Right?
Thank you very mush!!

@dcodeIO
Copy link
Member

dcodeIO commented Mar 21, 2021

That's not necessarily enough, unfortunately. More information on the matter is available at the issue I linked, but the short version is that there is a compiler option to switch out the file extension considered by asc, but that mileage may very when the goal is also to import external packages, say via a package manager, since these may use different file extension, or other subtleties, as the implementation is not far enough along yet to account for this.

@github-actions
Copy link

github-actions bot commented Jun 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

@github-actions github-actions bot added the stale label Jun 2, 2021
@github-actions github-actions bot closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants