Changeset 12654
- Timestamp:
- 07/07/15 16:03:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CodeEditor/3.4/LanguageFeatures/CodeCompletion/CodeCompletionStrategy.cs
r12653 r12654 37 37 this.codeEditor.TextEditorTextChanged += codeEditor_TextEditorTextChanged; 38 38 parserTimer = new Timer(1000); 39 parserTimer.Elapsed += (sender, args) => Task.Run(() => DoParseStep()); 39 parserTimer.Elapsed += (sender, args) => Task.Run(() => { 40 DoParseStep(); 41 if (codeEditor.IsDisposed && parserTimer.Enabled) { 42 parserTimer.Stop(); 43 parserTimer.Dispose(); 44 } 45 }); 40 46 } 41 47
Note: See TracChangeset
for help on using the changeset viewer.