Skip to content

Commit

Permalink
updated make.sh to run tests before installing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Ievgenii.Mykhalevskyi authored and Ievgenii.Mykhalevskyi committed Oct 18, 2024
1 parent 911bc28 commit bf805f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pip install psutil
pyinstaller --onefile src/XCBBuildServiceProxy/XCBBuildService.py

npm run compile
npm run test

vsce package

code --install-extension vscode-ios-0.4.0.vsix
4 changes: 4 additions & 0 deletions src/CommandManagement/AtomicCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,8 @@ export class AtomicCommand {
}
}
}

cancel() {
this._prevCommandContext?.cancel();
}
}
4 changes: 2 additions & 2 deletions src/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class Executor {
return;
}

killAll(proc.pid, "SIGKILL");
killAll(proc.pid, "SIGTERM");
});
const terminalClose = terminal?.onExitEvent(() => {
userCancel?.dispose();
Expand All @@ -193,7 +193,7 @@ export class Executor {
return;
}

killAll(proc.pid, "SIGKILL");
killAll(proc.pid, "SIGTERM");
});
if (cancellationToken?.isCancellationRequested) {
reject(UserTerminatedError);
Expand Down
2 changes: 2 additions & 0 deletions src/ProjectManager/ProjectManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ export class ProjectManager {
"swift.autoGenerateLaunchConfigurations": false,
"swift.disableAutoResolve": true,
"swift.sourcekit-lsp.disable": true,
"swift.disableSwiftPackageManagerIntegration": true,
"swift.searchSubfoldersForPackages": false,
},
extensions: {
// tell vs code not to recommend it as it interfere with this extension
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ export async function activate(context: vscode.ExtensionContext) {
// This method is called when your extension is deactivated
export async function deactivate() {
autocompleteWatcher?.terminate();
atomicCommand.cancel();
// await projectExecutor.terminateShell();
}

Expand Down

0 comments on commit bf805f8

Please sign in to comment.