Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions vsintegration/src/vs/FsPkgs/FSharp.Project/FS/Project.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2472,6 +2472,18 @@ See also ...\SetupAuthoring\FSharp\Registry\FSProjSys_Registration.wxs, e.g.
with get() = (x.Node :?> FSharpFileNode).SubType
and set(value) = (x.Node :?> FSharpFileNode).SubType <- value

override x.CreateDesignPropertyDescriptor propertyDescriptor =
let isLinkFile =
match x.Node with
| :? FSharpFileNode as f -> f.IsLinkFile
| _ -> false

let fileNameEditable = not isLinkFile

if (not(fileNameEditable) && (propertyDescriptor.Name = "FileName"))
then Microsoft.VisualStudio.Editors.PropertyPages.FilteredObjectWrapper.ReadOnlyPropertyDescriptorWrapper(propertyDescriptor) :> PropertyDescriptor
else base.CreateDesignPropertyDescriptor(propertyDescriptor)


and (* type *)

Expand Down