Address PR #27 review feedback: path normalization, tests, and conventions#28
Merged
data-douser merged 3 commits intofix/pr24-review-feedbackfrom Feb 8, 2026
Merged
Conversation
…d unit tests Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix dynamic package version and respect CODEQL_MCP_TMP_DIR
Address PR #27 review feedback: path normalization, tests, and conventions
Feb 8, 2026
data-douser
approved these changes
Feb 8, 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.
📝 Update Information
Primitive Details
This PR is for updating existing MCP server primitives and must ONLY include these file types:
✅ ALLOWED FILES:
server/src/**/*.ts)server/src/tools/*.ts)server/test/**/*.ts)README.md, server docs)server/src/types/*.ts)server/src/lib/*.ts)package.json,tsconfig.json)🚫 FORBIDDEN FILES:
Rationale: This PR should contain only the files necessary to update and test the primitive.
🚨 PRs that include forbidden files will be rejected and must be revised.
🛑 MANDATORY PR VALIDATION CHECKLIST
BEFORE SUBMITTING THIS PR, CONFIRM:
Update Metadata
🎯 Changes Description
Current Behavior
Review feedback identified several issues:
language-server.ts.gitignorepatternsCODEQL_MCP_TMP_DIRaccepted relative paths without normalization, causing unpredictable resolutiongetPackageVersion()andgetUserWorkspaceDir()Updated Behavior
.ql-mcp-tracking(hidden, matches.gitignore)CODEQL_MCP_TMP_DIRrelative paths now normalized againstprocess.cwd()tests,database,dir/packDirparametersMotivation
Addresses all PR #27 review feedback to ensure code quality, correctness, and maintainability.
🔄 Before vs. After Comparison
Path Normalization
Storage Location
Import Ordering
🧪 Testing & Validation
Test Coverage Updates
Validation Scenarios
CODEQL_MCP_TMP_DIRwith relative paths resolves correctlygetPackageVersion()reads package.json once and caches resulttests,database,dir/packDiragainst user workspaceTest Results
📋 Implementation Details
Files Modified
server/src/utils/temp-dir.ts,server/src/utils/package-paths.tsserver/src/lib/language-server.ts,server/src/lib/session-data-manager.tsserver/test/src/utils/package-paths.test.ts,server/test/src/lib/cli-tool-registry.test.tsCode Changes Summary
isAbsolute()check for env var pathsDependencies
pathmodule functions🔍 Quality Improvements
Bug Fixes
CODEQL_MCP_TMP_DIRcould resolve unpredictablyisAbsolute()andresolve()againstprocess.cwd()Code Quality Enhancements
🔗 References
Related Issues/PRs
CODEQL_MCP_TMP_DIRenv var #27 (original changes), PR More prep for initial public release readiness #24 (feedback source)Validation Materials
🚀 Compatibility & Migration
Backward Compatibility
API Evolution
👥 Review Guidelines
For Reviewers
Please verify:
Testing Instructions
Validation Checklist
📊 Impact Assessment
Performance Impact
isAbsolute()andresolve()call at module init)Server Impact
AI Assistant Impact
🔄 Deployment Strategy
Rollout Considerations
Post-Deployment Validation
Update Methodology: This update follows best practices:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.