Daniel Grunwald
2b0a47d089
Merge /branches/3.0 to /trunk.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5785 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
91e9ba0b9e
C# parser: add support for named arguments in attributes.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5779 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
3f1cc8907b
Update string resources.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5777 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
2a254de132
Fixed build warnings (obsolete IsValidDirectoryName)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5776 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Daniel Grunwald
2b5707a349
Fixed VBNetOutputVisitor bug on "WithEvents" modifier.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5774 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
3032c5504e
Project Browser: don't allow user to rename files to a new including "/" or "\", as using those invalid file names would cause a crash.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5773 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
f3999228f2
Handle ProjectStartException when starting project with profiler.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5772 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Peter Forstmeier
ed9a8b114b
Add UnitTest's for ExportItemsConverter
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5771 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
92885625d8
Fixed SD2-1667: Putting caret into "dynamic" causes ArgumentNullException
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5770 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
b7c912794f
Fixed SD2-1666: Arrays of dynamic don't show code completion
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5769 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
780118df8a
Update to Mono.Cecil 0.9.2 (commit f59c382).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5768 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
f2d8009bac
Fixed NullReferenceException in TypeResolveResult.IsReferenceTo.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5767 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Daniel Grunwald
18177903cf
XamlOutlineContentHost: update outline view only if parse info of the correct file was updated (previously was updating whenever there was any new parse info)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5765 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 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
15 years ago
Daniel Grunwald
d8de6b3927
Fixed NullReferenceException in CodeCompletionItem.Complete.
...
Simplify some code.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5761 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 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
15 years ago
Martin Koníček
b0624e744f
Show fully qualified type names in CC tooltip (to distinguish between more types with same name in the CC list).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5758 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
4dc5cc48e6
The new auto-insert-using CodeCompletion now works for Extension methods too.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5757 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
42b6e29d80
Fixes failing XAML test (caused by change in CodeCompletionItem.Complete()).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5756 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Peter Forstmeier
4f0bca3401
Cleanup
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5755 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
04457b2e8c
Attempt to fix build, Mock projects in Tests also implement 2 new methods in IProjectContent by throwing NotImplementedException.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5754 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Siegfried Pammer
7ddda7e628
profiler suggestion by Martin: use short name (Class.Method) in profiler treeview to save space; tooltip still shows full signature
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5752 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
287ff50a4c
use code generator for string.Format() call in OverrideToStringMethodRefactoring (fixes invalid newlines in generated code)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5751 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Siegfried Pammer
84dac10882
fixed minor bugs in ExtractMethod
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5749 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
2fd5c0d873
replaced IndexerDeclaration by PropertyDeclaration with IsIndexer property (uses Default modifier)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5748 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Peter Forstmeier
69c068dc8f
Debug Rectangle
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5746 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
3115ce0a60
fixed bugs in IntroduceMethod (including SD2-1665)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5745 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Daniel Grunwald
5843430b26
Fixed C# parser bug when CheckedExpression occurs in an ExpressionStatement.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5743 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
978fbfd3b9
Switch snippet prefixes enum cases by namespace only when needed, thanks to CodeGenerator.ConvertType.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5742 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Daniel Grunwald
76e48b3c63
Check that properties are not set to null (the value null cannot be saved, see crash in forum-11130).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5740 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
6bf3a5d845
Fix plain layout (forum-10930)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5739 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
51f65cb98c
Fixed build, sorry.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5736 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 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
15 years ago
Daniel Grunwald
14b4c930c2
Fixed SD2-1633: Designer cannot open forms using FolderBrowserDialog with RootFolder property set
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5732 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
2df23b5ee4
Fix SD2-1638: Unable to re-open SharpDevelop's window under Vista after minimizing
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5731 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
16c0871796
Highlight references to expression under caret - changed the color to light blue.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5729 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
a378209c70
Fixed bug that caused VB resolver to not resolve fields of the current class within expressions like 'field(i)'.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5726 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
56a5829329
Implemented CaretReferencesRenderer - highlighting of all references to symbol under caret in the editor (VS2010 like).
...
Please provide feedback (usefulness, performance, highlight color, ...)
It should have no effect on editor performance - when moving caret by holding an arrow in the editor, nothing gets executed. After the caret stops for 100ms at one place, expression under caret is resolved to e.g. hide current highlight if no expression is under caret. Then, if the caret stays in place for 1000ms, "Find references in current document" is executed (on the main thread, but it's quite fast, maybe could be moved to background thread).
The timeouts are done using two DispatcherTimers.
Added "Find references in given document" (RefactoringService.FindReferencesLocal) to RefactoringService.
Refactored RefactoringService a bit, but public API and its behavior stays unchanged.
Fixed comment of DebuggerService.HandleToolTipRequest.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5725 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Peter Forstmeier
093883475a
Debug Rectangle
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5724 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
a86af717d8
Convert "list.Item(0)" to "list[0]" in VB -> C# conversion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5723 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
b5e5abf252
VB -> C# converter: fully qualify type references that use imported subnamespaces
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5722 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago