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

[Bug] JavaScript 未命名文件运行时生成的临时文件拓展名为 .javascript 而不是 .js #1210

Open
iamqiz opened this issue Jan 29, 2025 · 0 comments

Comments

@iamqiz
Copy link

iamqiz commented Jan 29, 2025

  • VS Code Version: 1.96.2
  • OS Version: win10
  • Code Runner Version: 0.12.2

Describe the bug
Description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

创建一个未命名文件,修改语言类型为JavaScript
按下ctrl+alt+N 运行code runner,
终端里输出如下;

cscript /nologo "C:\Users\pcmsi\AppData\Local\Temp\tempCodeRunnerFile.javascript"
Input Error: There is no script engine for file extension ".javascript".

也测试了powershell脚本,其临时文件拓展名为.ps1, 这是正常的;
也测试了python类型, 其临时文件拓展名为python, 这也不正常, 但不影响运行

Actual behavior
Description of what happened actually.

Expected behavior
Description of what you expected to happen.

期望创建的临时文件拓展名为 .js 而不是 .javascript

Screenshots
If applicable, add screenshots to help explain your problem.

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