- Timestamp:
- 01/07/15 17:20:05 (10 years ago)
- Location:
- branches/CodeEditor/HeuristicLab.CodeEditor/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CodeEditor/HeuristicLab.CodeEditor/3.4/CodeEditor.Designer.cs
r11700 r11738 39 39 // CodeEditor 40 40 // 41 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 42 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 41 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 43 42 this.Controls.Add(this.elementHost); 44 43 this.Name = "CodeEditor"; -
branches/CodeEditor/HeuristicLab.CodeEditor/3.4/LanguageFeatures/CodeCompletion/CSharp/CSharpCodeCompletionStrategy.cs
r11700 r11738 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using ICSharpCode.NRefactory.Completion; 25 26 using ICSharpCode.NRefactory.CSharp; … … 82 83 result.TriggerWord = completionContext.Document.GetText(completionContext.Offset - triggerWordLength, triggerWordLength); 83 84 84 foreach (var completion in completionData) { 85 var cast = completion as CompletionData; 86 if (cast != null) { 87 cast.TriggerWord = result.TriggerWord; 88 cast.TriggerWordLength = result.TriggerWordLength; 89 result.CompletionData.Add(cast); 85 if (completionData.Any()) { 86 foreach (var completion in completionData) { 87 var cast = completion as CompletionData; 88 if (cast != null) { 89 cast.TriggerWord = result.TriggerWord; 90 cast.TriggerWordLength = result.TriggerWordLength; 91 result.CompletionData.Add(cast); 92 } 90 93 } 91 }92 94 93 if (!controlSpace) {94 var pce = new CSharpParameterCompletionEngine(95 completionContext.Document,96 completionContext.CompletionContextProvider,97 completionFactory,98 completionContext.ProjectContent,99 completionContext.TypeResolveContextAtCaret100 );95 if (!controlSpace) { 96 var pce = new CSharpParameterCompletionEngine( 97 completionContext.Document, 98 completionContext.CompletionContextProvider, 99 completionFactory, 100 completionContext.ProjectContent, 101 completionContext.TypeResolveContextAtCaret 102 ); 101 103 102 var parameterDataProvider = pce.GetParameterDataProvider(completionContext.Offset, completionChar); 103 result.OverloadProvider = parameterDataProvider as IUpdatableOverloadProvider; 104 var parameterDataProvider = pce.GetParameterDataProvider(completionContext.Offset, completionChar); 105 result.OverloadProvider = parameterDataProvider as IUpdatableOverloadProvider; 106 } 104 107 } 105 108
Note: See TracChangeset
for help on using the changeset viewer.