Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited02c0c

Browse files
saulKevinRansom
authored andcommitted
Fix "Add New" dialog suggesting file names that already exist when adding above/below a file in the project tree. (#2956)
Also fix being able to move folders up/down when a build is in progress.Fixes #2892
1 parent542d754 commited02c0c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

‎vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectNode.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5211,6 +5211,9 @@ public virtual int GenerateUniqueItemName(uint itemIdLoc, string ext, string sug
52115211
boolfound=false;
52125212
boolfFolderCase=false;
52135213
HierarchyNodeparent=this.NodeFromItemId(itemIdLoc);
5214+
5215+
if(parentisFileNode)
5216+
parent=parent.Parent;
52145217

52155218
extToUse=ext.Trim();
52165219
if(String.Compare(extToUse,".config",StringComparison.OrdinalIgnoreCase)==0||

‎vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectSystem.Base.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
</ItemGroup>
311311
<ImportProject="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
312312
<ImportProject="$(FSharpSourcesRoot)\Microbuild.Settings.targets" />
313-
<ImportProject="$(VsSDKTargets)"/>
313+
<ImportProject="$(VsSDKTargets)"/>
314314
<TargetName="GatherBinariesToBeSigned"AfterTargets="Localize"Condition="'$(UseGatherBinaries)' == 'true'">
315315
<ItemGroup>
316316
<BinariesToBeSignedInclude="$(OutDir)$(AssemblyName).dll" />

‎vsintegration/src/FSharp.ProjectSystem.FSharp/Project.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,15 +1995,15 @@ namespace rec Microsoft.VisualStudio.FSharp.ProjectSystem
19951995
(cmd=(uint32)VSProjectConstants.MoveUpCmd.ID)then
19961996

19971997
result<- result||| QueryStatusResult.SUPPORTED
1998-
if FSharpFileNode.CanMoveUp(x)then
1998+
ifnoBuildInProgress&& root.GetSelectedNodes().Count<2&&FSharpFileNode.CanMoveUp(x)then
19991999
result<- result||| QueryStatusResult.ENABLED
20002000
VSConstants.S_OK
20012001

20022002
elif(guidCmdGroup= VSProjectConstants.guidFSharpProjectCmdSet)&&
20032003
(cmd=(uint32)VSProjectConstants.MoveDownCmd.ID)then
20042004

20052005
result<- result||| QueryStatusResult.SUPPORTED
2006-
if FSharpFileNode.CanMoveDown(x)then
2006+
ifnoBuildInProgress&& root.GetSelectedNodes().Count<2&&FSharpFileNode.CanMoveDown(x)then
20072007
result<- result||| QueryStatusResult.ENABLED
20082008
VSConstants.S_OK
20092009

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp