Skip to content

Conversation

@Julesboul
Copy link
Contributor

Replace hardcode instrumentation by Metalinks and announcement listeners.

In addition, we clean the code by deleting some instrumentations (which are not needed anymore).

Copy link
Contributor

@StevenCostiou StevenCostiou left a comment

Choose a reason for hiding this comment

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

J'ai quelques doutes sur certaines suppressions, et peut-être qu'il y a des méthodes de DSToolInfo supprimées mais toujours appelées.

Comment on lines -21 to -37
DSMouseEnterWindowRecord >> record: morphsAndWindow [

| window tool |
super record: morphsAndWindow.
window := morphsAndWindow last.
window ifNil: [ ^ self ].
tool := DSSpy toolInWindow: window.
tool ifNil: [ ^ self ].
toolInfo := DSToolInfo
toolNamed: tool class name
id: tool identityHash
windowId: windowId
action: 'enter'
]

{ #category : 'accessing' }
DSMouseEnterWindowRecord >> toolInfo [
Copy link
Contributor

Choose a reason for hiding this comment

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

J'ai un doute sur cette suppression, c'est une entrée fenêtre, et on enregistre un tool info, qui est le moyen dans l'history et les outils de repérer dans quel outil on se trouve.

Copy link
Contributor Author

@Julesboul Julesboul Jan 6, 2026

Choose a reason for hiding this comment

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

C'est toujours présent mais dans la classe mère DSMouseEventRecord, ce qui permet d'unifier les records d'entrée et sortie de fenêtres.
On enregistre toujours le toolInfo (très important en effet) mais il reste des bugs où il se met Nil alors qu'il ne devrait pas... (typiquement quand on close une fenêtre ça fait un "CloseWindow" et un "LeaveWindow" en même temps et ça se gère mal pour le moment)

self buildWindowHistory.
self buildWindows.
self buildWindowJumps.
"self buildWindowJumps."
Copy link
Contributor

Choose a reason for hiding this comment

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

Le build des window jumps serait à améliorer, tu l'as commenté à cause d'un pb ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oui j'ai dû commenter des trucs dans le build de l'history car c'était bloquant en fonction de ce que tu record


^ toolAction
]

Copy link
Contributor

Choose a reason for hiding this comment

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

Idem sur cette suppression, pour moi c'était important. Mais peut-être que c'est pris en compte et comme je lis séquentiellement le diff, je ne vois pas encore comment.

Comment on lines +26 to +29
toolInfo := DSToolInfo
toolNamed: tool class name
id: tool identityHash
windowId: windowId
Copy link
Contributor

Choose a reason for hiding this comment

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

j'ai l'impression que cette méthode de classe a été supprimée dans DSToolInfo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Non, je viens de vérifier elle est toujours là

@Julesboul Julesboul marked this pull request as draft January 23, 2026 14:06
@Julesboul Julesboul self-assigned this Jan 23, 2026
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