Skip to content

Data retention in LS semantic updater timer #2027

@fm-117

Description

@fm-117

See Workspace.cs, line 335:

_semanticUpdaterTimer.Elapsed += (sender, e) => TimerEvent(sender, e, fileCompilerToUpdate);

The lambda expression used for the Elapsed event creates a closure that will capture one instance of FileCompiler. According to memory profiler, this instance is never collected even after document has been closed.

The goal of this issue is to rewrite the semantic updater mechanism so as to ensure that the FileCompiler instance is properly collected.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions