Skip to content

Commit b9c91df

Browse files
author
slavara
committed
Merge branch 'development' of https://github.com/fdorg/flashdevelop into feature/ExtractLocalVariable_improvements
2 parents c5670a9 + 16843fe commit b9c91df

File tree

40 files changed

+267
-24
lines changed

40 files changed

+267
-24
lines changed

External/Plugins/ASCompletion/Model/ASFileParser.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ public void ParseSrc(FileModel fileModel, string ba, bool allowBaReExtract)
10811081
else if (valueError && c1 == ')') inValue = false;
10821082
else if (inType && inGeneric && (c1 == '<' || c1 == '.')) continue;
10831083
else if (inAnonType) continue;
1084-
hadWS = true;
1084+
else if (c1 != '_') hadWS = true;
10851085
}
10861086
}
10871087

@@ -1223,7 +1223,7 @@ public void ParseSrc(FileModel fileModel, string ba, bool allowBaReExtract)
12231223
{
12241224
if (!inValue && i > 2 && length > 1 && i < len - 3
12251225
&& char.IsLetterOrDigit(ba[i - 3]) && (char.IsLetter(ba[i]) || (haXe && ba[i] == '{'))
1226-
&& (char.IsLetter(buffer[0]) || buffer[0] == '_'))
1226+
&& (char.IsLetter(buffer[0]) || buffer[0] == '_' || inType && buffer[0] == '('))
12271227
{
12281228
if (curMember == null)
12291229
{
@@ -1266,7 +1266,7 @@ public void ParseSrc(FileModel fileModel, string ba, bool allowBaReExtract)
12661266
if (!inValue)
12671267
{
12681268
addChar = true;
1269-
if (c1 == '>' && inGeneric)
1269+
if (c1 == '>')
12701270
{
12711271
if (paramTempCount > 0) paramTempCount--;
12721272
if (paramTempCount == 0 && paramBraceCount == 0
@@ -1280,7 +1280,14 @@ public void ParseSrc(FileModel fileModel, string ba, bool allowBaReExtract)
12801280
{
12811281
paramParCount--;
12821282
addChar = true;
1283-
}// else inType = false, error? it may depend on the context
1283+
}
1284+
else if (paramParCount == 0 && paramTempCount == 0 && paramBraceCount == 0
1285+
&& paramSqCount == 0)
1286+
{
1287+
inType = false;
1288+
shortcut = false;
1289+
evalToken = 1;
1290+
}
12841291
}
12851292
else if (c1 == '(' && haXe && inType)
12861293
{

External/Plugins/ASCompletion/PluginUI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using PluginCore.Helpers;
1919
using PluginCore.Localization;
2020
using PluginCore.Managers;
21+
using PluginCore.Controls;
2122

2223
namespace ASCompletion
2324
{
@@ -138,6 +139,7 @@ private void InitializeControls()
138139
outlineTree.ShowNodeToolTips = true;
139140
Controls.Add(outlineTree);
140141
outlineTree.BringToFront();
142+
ScrollBarEx.Attach(outlineTree);
141143
}
142144

143145
private void TreeIcons_Populate(object sender, EventArgs e)

External/Plugins/ASCompletion/Win32/FixedTreeView.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* - extends StateSavingTreeView
66
*/
77
using PluginCore;
8-
using System.Runtime.InteropServices;
8+
using System.Drawing;
99

1010
namespace System.Windows.Forms
1111
{
@@ -134,6 +134,17 @@ protected override void OnPaint(PaintEventArgs e)
134134
base.OnPaint(e);
135135
}
136136

137+
protected override void WndProc(ref Message message)
138+
{
139+
switch (message.Msg)
140+
{
141+
case 0xf: // WM_PAINT
142+
OnPaint(new PaintEventArgs(Graphics.FromHwnd(this.Handle), this.Bounds));
143+
break;
144+
}
145+
base.WndProc(ref message);
146+
}
147+
137148
}
138149

139150
}

External/Plugins/CodeRefactor/Controls/RefactorMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public class RefactorMenu : ToolStripMenuItem
1010
public RefactorMenu(Boolean createSurroundMenu)
1111
{
1212
this.Text = TextHelper.GetString("Label.Refactor");
13-
this.MoveMenuItem = this.DropDownItems.Add(TextHelper.GetString("Label.Move")) as ToolStripMenuItem;
1413
this.RenameMenuItem = this.DropDownItems.Add(TextHelper.GetString("Label.Rename")) as ToolStripMenuItem;
1514
this.RenameMenuItem.Image = PluginBase.MainForm.FindImage("331");
15+
this.MoveMenuItem = this.DropDownItems.Add(TextHelper.GetString("Label.Move")) as ToolStripMenuItem;
1616
this.ExtractMethodMenuItem = this.DropDownItems.Add(TextHelper.GetString("Label.ExtractMethod"), null) as ToolStripMenuItem;
1717
this.ExtractLocalVariableMenuItem = this.DropDownItems.Add(TextHelper.GetString("Label.ExtractLocalVariable"), null) as ToolStripMenuItem;
1818
this.DelegateMenuItem = this.DropDownItems.Add(TextHelper.GetString("Label.DelegateMethods"), null) as ToolStripMenuItem;

External/Plugins/ProjectManager/Controls/OpenResourceForm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ private void OpenResourceFormActivated(Object sender, EventArgs e)
210210
this.textBox.Focus();
211211
this.textBox.Text = previousSearch;
212212
this.textBox.SelectAll();
213-
214213
this.UpdateOpenFiles();
215214
this.textBox.Focus();
216215
}

External/Themes/FullThemes/DefaultTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Default.fdi
22

3+
# FD UI THEME (5.2+)
4+
5+
#ScrollBar.UseGlobally=True
6+
37
# FD UI THEME (5.1+)
48

59
# System, Professional

External/Themes/FullThemes/DefaultTheme/$(BaseDir)/Settings/Themes/Default.fdi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Default.fdi
22

3+
# FD UI THEME (5.2+)
4+
5+
#ScrollBar.UseGlobally=True
6+
37
# FD UI THEME (5.1+)
48

59
# System, Professional

External/Themes/FullThemes/DimGrayTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### DimGray.fdi
22

3+
# FD UI THEME (5.2+)
4+
5+
#ScrollBar.UseGlobally=True
6+
37
# FD UI THEME (5.1+)
48

59
# System, Professional

External/Themes/FullThemes/DimGrayTheme/$(BaseDir)/Settings/Themes/DimGray.fdi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### DimGray.fdi
22

3+
# FD UI THEME (5.2+)
4+
5+
#ScrollBar.UseGlobally=True
6+
37
# FD UI THEME (5.1+)
48

59
# System, Professional

External/Themes/FullThemes/ObsidianTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Obsidian.fdi
22

3+
# FD UI THEME (5.2+)
4+
5+
ScrollBar.UseGlobally=True
6+
37
# FD UI THEME (5.1+)
48

59
# System, Professional

0 commit comments

Comments
 (0)