Daniel Grunwald
Daniel Grunwald
SD-1916, originally created on 10/16/2012 18:10:03 by Daniel Grunwald 1. Enable the "Show spaces" and "Show tabs" options 2. Create a new text file inside SharpDevelop 3. Copy this gist:...
Open a code completion popup and select an item that has an XmlDoc description. Then, scroll in the text editor; or move the SharpDevelop window. Expected result: the completion popup...
This is request from the message board on the CodeProject article: Hey, could you please make the "MinimumDistanceToViewBorder" in Caret.cs to a property or so. Reason: - If I move...
Converting ``` ExtensionMethods.VisualAncestorsAndSelf(e.OriginalSource as DependencyObject) ``` to extension method syntax should result in: ``` (e.OriginalSource as DependencyObject).VisualAncestorsAndSelf() ``` but NRefactory currently produces ``` e.OriginalSource as DependencyObject.VisualAncestorsAndSelf() ``` If possible, this...
The following program: ``` class Program { ///////////////////////////////////////////////////////////////////////////// // Overriden Functions #region Package Members /// /// Initialization /// protected override void Initialize() { } #endregion } ``` produces the warning...
The indentation engine seems to mistreat the bodies of inactive #if blocks. ``` #if DEBUG void WpfWorkbench_PreviewGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { FocusDebug("GotKeyboardFocus: oldFocus={0}, newFocus={1}", e.OldFocus, e.NewFocus); } #endif ``` When...
For context of this code snippet: Grab commit 157a745ba04a9cbdfce7144726fd3fae15f57943 of the SharpDevelop repository, file [TextDocumentFileModelProvider.cs](https://github.com/icsharpcode/SharpDevelop/blob/157a745ba04a9cbdfce7144726fd3fae15f57943/src/Main/Base/Project/Workbench/File/TextDocumentFileModelProvider.cs) Extract the 'true' branch of the if (// Reload document). ``` public TextDocument Load(OpenedFile file)...
Explicit interface implementations implicitly inherit generic constraints from the interface member. Similarly, they usually do not specify any default parameters, as the explicit interface implementation cannot be called directly without...
When opening `MSBuildBasedProject.cs` in SharpDevelop 5, CS0029InvalidConversionIssue shows several false-positives. The resolver seems to have problems with conversions from `T[]` to `IReadOnlyCollection`. Conversions from `T[]` to `IReadOnlyList` work fine, so...
When analyzing `Mono.CSharp.Attribute.Emit(...)` (attribute.cs, line 971ff), the `VariableReferenceGraphBuilder+CfgVariableReferenceNodeBuilder.AddNode()` method causes a stack overflow exception. This can be reproduced by enabling the 'redundant assignment' issue provider and opening attribute.cs in SharpDevelop....