Siegfried Pammer
a2878f4015
fixed SD-1833 - Method Insight popup exceeds screen
14 years ago
Daniel Grunwald
7bcab7097b
AvalonEdit documentation update
15 years ago
Siegfried Pammer
82297d7819
add word wrap to InsightWindow in parameter list (header) too
15 years ago
Siegfried Pammer
74ff5b60f4
fix SD-1833 - Method Insight popup exceeds screen ( http://bugtracker.sharpdevelop.net/issue/ViewIssue.aspx?ID=1833&PROJID=4 )
15 years ago
Daniel Grunwald
73268d6fda
Throw meaningful exception when ICompletionData.Text returns null.
15 years ago
Daniel Grunwald
ea5e4470ac
Trying to add workaround for crash #1580 (top crash in 4.0 RC2, reproduction steps unknown).
15 years ago
Daniel Grunwald
794a0f8af7
Fix "interaction problem between code completion and scrolling" ( http://community.sharpdevelop.net/forums/t/12215.aspx )
15 years ago
Matt Ward
996193282c
Fix null reference when completion window closed and completion list selection changed event fired afterwards.
15 years ago
Daniel Grunwald
2f53cc69da
Fix build.
15 years ago
Daniel Grunwald
021db4c9fa
Use InvariantCulture instead of Ordinal in CompletionList filtering.
15 years ago
Daniel Grunwald
2ee86110f6
Fixed some FxCop warnings in AvalonEdit.
16 years ago
Daniel Grunwald
b17ea8ac53
Fixed SD-1729 - Code completion window stays open when switching to another text editor window
16 years ago
Daniel Grunwald
a467999fbe
CompletionWindowBase: if window opened upwards, adjust its position when the window gets resized (e.g. due to filtering of code completion items) [based on patch by Eusebiu Marcu]
16 years ago
eusebiu
4150e8db59
fix for SD-1713
16 years ago
Daniel Grunwald
f5780c2944
Apply new file headers
16 years ago
Martin Koníček
2882236cef
Moved context menu items "Implement interface" from SharpDevelop to SharpRefactoring.addin, where "Implement abstract class" is.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6125 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
6485df93ac
Code completion respects suggested item: e.g. when typing "DateTimeKind k =", the completion window pres-selects the DateTimeKind entry.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6123 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
8260a7b2ce
Fixed bug in TaskBoundLoggerFilter that caused the "Suppress message" command to not be available on FxCop warnings.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5931 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
f2a39ffa73
CC window shows the hint "Press Ctrl+Space to show items from all namespaces" only if Ctrl+Space was not already pressed, and only for NRefactoryCodeCompletionBinding (C# and VB languages).
...
Implementation:
- added bool ICompletionItemList.ContainsAllAvailableItems - the list tells if it could contain even more items and anyone displaying it (SharpDevelopCompletionWindow) can handle this
- bool ContainsAllAvailableItems is always true except for NRefactoryCompletionItemList returned by NRefactoryCtrlSpaceCompletionItemProvider, where it can be set to false
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5906 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
8a464f1a8c
Remove EmptyTemplate from AvalonEdit, instead re-style the CompletionListBox within SharpDevelopCompletionWindow.xaml
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5897 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
0d742ce90f
Commented out the style for SharpDevelopCompletionWindow so that the "Set property 'System.Windows.Setter.Property' threw an exception.' Value cannot be null." crash in ctor of CompletionWindow dissapears.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5896 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
e38b228446
Changed CompletionListBox.EmptyTemplate to ContentPresenter. Attempt to provide TextBlock in SharpDevelopCompletionWindow.xaml, but nothing gets displayed.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5895 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
0e27d647a6
When CodeCompletion window is empty, it shows "Press Ctrl+Space to show items from all namespaces", so that user learns how to use Ctrl+Space naturally.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5891 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
91c48d4c30
Fixed bug in CodeCompletion filtering by substring.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5763 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
a9e7a20482
CodeCompletion optimization - as the user types, the filtered result is filtered again instead of always filtering the whole completion data.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5759 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
c9c3931ba4
CC shows all types from all referenced assemblies. If type which is missing using is selected, the using is added automatically. TODO make work for extension methods.
...
How I did this (please Daniel check if it's OK):
- added new method CtrlSpaceResolveHelper.AddReferencedProjectsContents()
- use this method in NRefactoryResolver.CtrlSpaceInternal() instead of CtrlSpaceResolveHelper.AddImportedNamespaceContents(), that means this will work for NRefactory languages. I believe there is no simple way to make it work for XAML, F#, Boo and Python at the same time, as they have different IResolvers that don't share any code, (although they maybe could?)
-> that means CC list always contains all referenced APIs
- Extend CodeCompletionItem.Complete() method to look if IClass being completed can be resolved in current context, and if not, add the using
The CC list gets larger now - I am profiling this to achieve the best speed possible.
Minor CC improvement:
- if there are more types with the same name, all of them are shown in CC. If user selects type which is not the one closest to current scope, CC inserts full name (e.g. if user has his own XmlNode class in current namespace, he can still choose to insert "System.Xml.XmlNode" from CC). TODO show fully qualified name in CC tooltips.
- compare to VS 2010 behavior: shows only the type that is closest to current scope (i.e. only shows user's XmlNode)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5753 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
ef7c0f1457
CodeCompletion: filtered items are shown in the same order as they were before filtering. The best match is selected.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5750 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
5c64642260
Fixed unhandled exceptions during UDC upload.
...
Remove dead code.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5744 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
4b57bf13b2
Code completion window sizes height to content.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5741 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
51f65cb98c
Fixed build, sorry.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5736 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Martin Koníček
e8d33e6fb5
CompletionList - implemented ReSharper (and VS2010)-like Code completion:
...
- search by substring
- search by camel case: writing "fs" finds "FileStream"
- filtering the items (showing only the matching ones) and sorting them by quality
- the exact old behavior (with search by camel case added) can be turned on by setting CompletionList.IsSearchByStartOnly = true
TODO make the CompletionWindow size to content when the list is short - have to ask Daniel for the best way to do this
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5735 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
79e8189c7c
Fixed SD2-1604 - Code completion does not learn commonly used items
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5676 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
493ea45a5d
Close InsightWindow when typing ')'.
...
Close code completion window after '.'-completion when deleting the dot with backspace.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5674 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
2af09d613b
Fixed small selection bug in snippet completion window (Ctrl+J).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5548 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
edd3fb4a0a
"Normalize" file headers.
...
Enable $Revision$ keyword expansion for all existing .cs files.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5529 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
b69ac8a54a
Fix build error in CompletionWindowBase.cs. AvalonEdit targets .NET 3.5, but used a .NET 4.0 member.
...
For some reason, this worked fine on most machines (including the build server), these machines seemed to have an updated version of .NET 3.5 SP1 - either using Windows Update or installing VS2010 seems to add members to .NET 3 assmblies.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5468 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
17d5510c03
Fix crash when pressing deadkey while CC window is open.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5397 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
f4902e70d7
Fixed forum-10197: InvalidOperationException in Code Completion ("Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed.").
...
Fixed expanding interactive snippets within a code completion dropdown.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5074 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
4a85fa660c
Added snippet support to SharpDevelop (replaces 'code templates').
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5069 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
aad8c0de16
Code snippets: implemented input handling and background renderer.
...
Added support for "stacked" input handlers.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5065 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
6d54b7f06a
Add chapter on code completion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5048 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
7ed5729102
Display title of #region in folding.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4838 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
David Srbecký
bbcc95f3d0
Attempt to fix NullReference exception
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4345 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
David Srbecký
e936a38958
Fix the position of code completion window for non-default DPI
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4341 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
e82a1f11fc
Fixed showing completion window when another completion window is already open.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4282 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
a1269d8efa
Added ICompletionListWindow interface to allow AddIns to control the completion window.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4248 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
27cd1c9931
AvalonEdit: split Gui namespace into Editing and Rendering.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4142 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
b58af24885
Reimplemented method insight for AvalonEdit.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4035 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
d83dbd9f16
AvalonEdit Insight Window
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4034 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
34ed9d7591
Document CompletionWindow.StartOffset and EndOffset.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4031 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago