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 typo + execName #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Visual Studio Code extenstion for Nand2Tetris Language support.

3. **Auto load the `.tst` script to check your `.asm` program**

4. **Quckly `compress` the course source to a `zip` that can easily commit**
4. **Quickly `compress` the course source to a `zip` that can easily commit**

5. **Auto add necessary files like `prog.txt` into `zip` when compress the source**

Expand Down
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class Commands implements vscode.Disposable {

const filePath = parse(this.document.fileName);
const fileName = filePath.name + filePath.ext;
const execName = join(filePath.dir, filePath.name).replace(/ /g, "\" \"").replace(/\\/g, "/");
const execName = join(filePath.dir, filePath.name).replace(/\\/g, "/");
let command: string;
if (filePath.ext === ".hdl") {
command = this.hardwareCmd + execName + ".tst";
Expand Down