- ParserService.ParseCurrentViewContent() when getting context actions, so that the DOM is up to date. Context actions will be moved to background thread.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6331 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
A WPF Popup is shown over the editor when some actions are available. Can be opened by mouse click (TODO open by shortcut).
A Popup is probably not the best solution: it is not "tied" to current editor line anyhow so it stays open when region is collapsed, active ViewContent changes etc. (for active ViewContent change I added explicit handling). It should be probably part of editor's visual tree, in a special layer. Alternatively it could be displayed in the bookmark margin, but that would make it too small. This way it resembles ReSharper.
Have to consult this with Daniel.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6290 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
- fixed bugs when using IntroduceMethod in CompoundClass (e. g. partial classes)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6259 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
It is turned off so far because the GUI is unfinished.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6187 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Use UniformGridWithSpacing for layout of OK and Cancel buttons (these should have the same size even in languages where the OK button needs more space than 75 pixels).
Option Panels: give check boxes a bit more space
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6147 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
Rename, Move class to file, Rename file, Extract interface class context menu items from SharpDevelop to SharpRefactoring.addin.
Added comments to MenuBuilders about Addin tree paths where they are registered, for better clarity on how the menu builders work.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6126 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
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
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
TODO: now fully qualified names of enum fields are used in case labels, even though namespace is unnecessary when it is present in document's 'using' section (very common case - have to improve this).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5718 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
TODO: make the code generation work for VB (using CodeGenerator), now C# switch is always inserted.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5710 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
InsertCtorDialog: select readonly fields by default.
SVN addin: remove "Checkout" and "Export" options as those aren't really useful and confusing to users (no other SVN commands are in Tools menu).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5622 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
- implemented OverrideEqualsGetHashCodeMethodsCommand and OverrideToStringMethodCommand as ICompletionItemHandlers
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5562 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
- set StringResourceTool to 32bit compilation (needed for ODBC drivers on x64 systems)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5509 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61