Set up nix shell for dev env. Add husky git hooks to run gts check before git commit. Clean up source code files and remove any types.#77
Merged
yiyi-wang-rv merged 6 commits intomasterfrom Jan 5, 2026
Conversation
asavienko
approved these changes
Dec 17, 2025
Comment on lines
+14
to
15
| // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
| executable: vscode.DebugAdapterExecutable | undefined |
Contributor
There was a problem hiding this comment.
Just a suggestion to work with unused vars like this:
Suggested change
| // eslint-disable-next-line @typescript-eslint/no-unused-vars | |
| executable: vscode.DebugAdapterExecutable | undefined | |
| _executable: vscode.DebugAdapterExecutable | undefined |
Contributor
Author
There was a problem hiding this comment.
Thanks! The linter won't let is pass. Probably due to the rule we set. I tried it already 👍
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request sets up a Nix-based development environment, adds Husky pre-commit hooks for code quality checks, and performs extensive TypeScript code cleanup to remove any types and improve type safety across the codebase.
Key Changes:
- Adds Nix development environment with flake.nix, shell.nix, and .envrc configuration
- Configures Husky v9 and lint-staged for automatic code linting on git commits
- Replaces
anytypes with proper TypeScript types (e.g.,unknown,Record<string, unknown>) - Applies consistent code formatting across all source files
- Adds GitHub Actions CI workflow for automated testing
Reviewed changes
Copilot reviewed 14 out of 17 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| flake.nix | Defines Nix flake for reproducible development environment |
| flake.lock | Lock file for Nix flake dependencies |
| shell.nix | Nix shell configuration with Node.js 20 |
| .envrc | Enables automatic Nix shell loading with direnv |
| .gitignore | Adds .direnv to ignored files |
| package.json | Adds Husky and lint-staged dependencies, configures git hooks |
| package-lock.json | Updates dependency lock file with new packages |
| .husky/pre-commit | Pre-commit hook script to run lint-staged |
| .github/workflows/test.yml | CI workflow for linting and compilation checks |
| src/startDebugging.ts | Removes any types, improves formatting and type safety |
| src/foundry.ts | Replaces any with unknown and proper type assertions |
| src/extension.web.ts | Formatting improvements and removes unused assignment |
| src/extension.ts | Formatting improvements and fixes unused variable |
| src/clone.ts | Code formatting and type improvements |
| src/DebugAdapter.web.ts | Removes any types, adds proper TypeScript types |
| src/DebugAdapter.ts | Removes any types, adds eslint disable comments, fixes typo |
| src/CodelensProvider.ts | Adds proper type imports, removes generic any types |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.