Skip to content

Feature/incremental update#64

Merged
norilanda merged 17 commits intodevfrom
feature/incremental-update
Sep 2, 2025
Merged

Feature/incremental update#64
norilanda merged 17 commits intodevfrom
feature/incremental-update

Conversation

@norilanda
Copy link
Owner

No description provided.

norilanda added 16 commits July 4, 2025 13:38
…file, Add methods to remove obsolete entities and relations
* Refactor code for the Famic Class creation

* Connect vscode extension with ts2famix changes

* Add neverthrow library, Throw the error when the tsconfig file is not found

* Add better error handling for commands, Add response type for commands

* Add the test cases list

* Rename 'createOrGetFamixClass' method to 'ensureFamixClass' method
* Add the source anchor deletion implementation

* Refactor inheritance and interface creation

* Add a FullyQualifiedNameEntity interface

* Add catching the error for the extension incremental update

* Update README.md

* Split SourcedEntity class into 2 classes: SourcedEntity and EntityWithSourceAnchor
* Add tests and incremental update for property
* Add the source anchor deletion implementation

* Refactor inheritance and interface creation

* Add a FullyQualifiedNameEntity interface

* Split SourcedEntity class into 2 classes: SourcedEntity and EntityWithSourceAnchor

* Add tests for import clause

* Implement ImportClause for named imports. Add incremental update for the imported entities (Inheritance and ImportClause).
----------------------------
Still need to resolve the issue with:
- re-export
- the cases when we choose to create the module over a file
- finish file and module Famix elements creation, add tests
- implement ImportClause for other types of imports

* Add reexport tests

* Add namespace import tests

* Add implementation for the Import Clause for
- named import/export;
- namespace import/export;
- reexport.
Encapsulate ImportClause creation logic in a separate file

* Add test with exporting interfaces for the inheritance

* Remove the old ImportClause test

* Fix getFamixEntityByFullyQualifiedName to work with all the entities that have fullyQualifiedName field

* Fix getModuleSpecifierFromDeclaration to work with import without ts. We still need to verify how does it work with node_modules and import aliases

* Add excluding files specified in tsconfig from watching
* Review and fix tests
@norilanda norilanda requested a review from Copilot September 2, 2025 18:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements incremental updating functionality for a TypeScript to Famix model converter, allowing the system to detect file changes and update the model incrementally rather than regenerating the entire model from scratch.

Key changes:

  • Added file watching capabilities with VS Code language server integration
  • Implemented incremental model updating for TypeScript files through file change detection
  • Extended the VS Code extension to support real-time model updates during development

Reviewed Changes

Copilot reviewed 100 out of 101 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
vscode-extension/test-cases.md Added comprehensive manual test cases for extension activation, command execution, and incremental functionality
vscode-extension/server/src/utils.ts Added utilities for TypeScript project detection, file path handling, and glob pattern creation
vscode-extension/server/src/server.ts Enhanced server initialization with file watching capabilities and project manager integration
vscode-extension/server/src/model/ Created model management classes for Famix project handling, file export, and change tracking
vscode-extension/server/src/eventHandlers/ Implemented file change event handlers for incremental updates
vscode-extension/server/src/commandHandlers.ts Refactored command handling to use project manager and improved error responses
vscode-extension/package.json Updated dependencies and activation events for workspace-based activation
vscode-extension/client/src/ Removed client-side utilities and updated command handling for server-based processing
test/ Added extensive incremental update test suites and updated existing tests with proper skipping
Files not reviewed (1)
  • vscode-extension/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@norilanda norilanda merged commit b2bab54 into dev Sep 2, 2025
3 checks passed
@norilanda norilanda deleted the feature/incremental-update branch September 2, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants