diku-dk / futhark-vscode

VS Code extension for Futhark
https://marketplace.visualstudio.com/items?itemName=DIKU.futhark-vscode
ISC License
12 stars 2 forks source link

Fixed support for Windows, added support for WSL, and other UX changes #4

Closed bernardsmith0892 closed 1 year ago

bernardsmith0892 commented 1 year ago

Summary

In Windows, the which package appends ".EXE" to the path. Because file validation was performed using .endsWith(langName), this caused the extension to fail on Windows machines. Additionally, since the focus was on file paths, a user would not be able to configure futhark-vscode to use WSL. I refactored the extension to remove the filename validation, which also allowed me to add WSL support. My assumption is that the Futhark version check is sufficient enough validation.

I also modified some of the messages and added options to the error windows, but you're free to remove these changes. My main goal is the fix for Windows and WSL support.

Changes

athas commented 1 year ago

Looks fine to me.