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
Daniel Grunwald
f113984478
Prevent ArgumentOutOfRangeException in XmlFoldingStrategy if .NET reports XML error at line 0.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5887 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
4ba935e0a1
Remove unused references to ICSharpCode.TextEditor.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5886 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
95544ce215
AvalonEdit Rope: Corrections for XML documentation.
...
Analysis/ExcelReport: add automatic detection of most commonly used versions for use as 'known versions'.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5775 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
b1098071ce
Fixed ArgumentException in TextView.Redraw when deleting line in XML document.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5766 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
Daniel Grunwald
a39d830eba
Fixed SD2-784 - File still considered dirty after undoing all changes.
...
Fixed incorrect behavior of TextEditor.IsModified when continued undo groups are used.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5762 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
67d1aa96d3
AvalonEdit: add TextEditor.IsModified property
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5760 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
6e0521b88c
Detect when newlines are inconsistent and allow user to fix them.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5747 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
fe6af4864b
Add workaround for Cecil bug causing unit test failure.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5713 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
cf7adb39dd
Allow user to specify an encoding when opening a text file.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5627 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
ce47f3f815
Fixed HighlightingColorizer crash in combination with folding.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5586 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
7d3a410d0b
AvalonEdit: Fixed repainting issues when document was modified above the visible region (e.g. using split view) and the highlighting stack changed.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5584 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
843a8c4788
Highlighting editor: allow changing the default text color and selection color.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5583 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
e3d7d7dc1b
Fixed bug in syntax highlighting when keywords start with a special character (e.g. ".maxstack" in IL highlighting).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5580 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
1c4b406283
Fixed unit tests (the previous commit fixed a minor bug in the C# syntax definition, and the unit test was expecting the incorrect output)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5577 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
471ec831c6
Editing highlighting colors is now supported for C#, VB, XML and .patch files.
...
Fixed FxCop issues in AvalonEdit.
Still missing in highlighting editor:
- edit environment colors (normal text, line number margin, etc.)
- support all syntax definitions shipping with SharpDevelop
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5575 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
488d12f83c
SD2-1592 (Add back highlighting editor for AvalonEdit):
...
- implemented CustomizableHighlightingColorizer
- add preview to highlighting editor
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5574 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
061496afc3
Started work on SD2-1592 - Add back highlighting editor for AvalonEdit
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5572 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
71c5d4d290
Move ISnippetElementProvider to ICSharpCode.SharpDevelop.Editor.AvalonEdit.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5565 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Siegfried Pammer
7dfe0ac44a
added ISnippetElementProvider
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5561 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
b61b39d22a
Fixed NullReferenceException in Caret.BringCaretToView when TextEditor.Document==null.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5559 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
4a3f617c1b
Fixed issue in CodeEditorView: CustomTabCommand was modifying a KeyBinding shared by all AvalonEdit instances. The code now creates a new KeyBinding instead.
...
AvalonEdit: mark shared KeyBindings as frozen if possible (only possible on .NET 4).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5545 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
48a4203735
Use DispatcherTimer instead of animation for blinking caret. This reduces the frame rate WPF uses. The processor has to wake up less often -> computer uses less power.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5544 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
d0e3f61d60
Disable low-priority rendering after text input: it did not work correctly and caused WPF to render twice per character entered into AvalonEdit.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5528 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
d79c461876
Ported HtmlSyntaxColorizer to AvalonEdit.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5527 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
83261c2a52
Work around strange .NET feature in command-line parsing.
...
Update SharpDevelopAddIn.xpt for SD 4 (add WPF references).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5525 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Siegfried Pammer
55ab9226d6
fixed scrolling bug in TextView.MakeVisible
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5511 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
3188b51637
Fixed unit tests.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5489 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
f2bae1ba6e
Fixed forum-10719: AvalonEdit swallows Alt+Space
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5480 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
2b007b4365
Fixed SD2-1641 - Random crash in AvalonEdit when copying to the clipboard
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5455 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
53b022c615
Add safety check to UndoStack to prevent corruption when the document is changed by UpdateStarted/UpdateFinished events within Undo() or Redo() calls.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5454 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
327fb646e4
Remove <Folder> from AvalonEdit.csproj
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5453 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
9ff90bcfd4
Add F# binding back to SharpDevelop 4.0.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5439 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
5233909e58
Added whole line selection (triple click).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5429 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago