();
foreach (var sourceUnionCase in typeElement.GetSourceUnionCases())
diff --git a/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Util/FcsSymbolMappingUtil.cs b/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Util/FcsSymbolMappingUtil.cs
index 4d04b480ba..814f2a5267 100644
--- a/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Util/FcsSymbolMappingUtil.cs
+++ b/ReSharper.FSharp/src/FSharp/FSharp.Psi/src/Util/FcsSymbolMappingUtil.cs
@@ -233,7 +233,7 @@ private static IDeclaredElement GetDeclaredElement(FSharpUnionCase unionCase, IP
if (unionTypeElement == null) return null;
// todo: remove preferType param, get the field through the union case
- if (!preferType && unionTypeElement is IFSharpSourceTypeElement sourceTypeElement && sourceTypeElement.IsUnion())
+ if (!preferType && unionTypeElement is IFSharpSourceTypeElement sourceTypeElement && sourceTypeElement.IsFSharpUnion())
{
var sourceUnionCase = sourceTypeElement.GetSourceUnionCases()
.FirstOrDefault(sourceUnionCase => sourceUnionCase.ShortName == unionCase.Name);
diff --git a/ReSharper.FSharp/test/data/features/navigation/base/Union case 01.fs.gold b/ReSharper.FSharp/test/data/features/navigation/base/Union case 01.fs.gold
index aaaea6c051..5f282702bb 100644
--- a/ReSharper.FSharp/test/data/features/navigation/base/Union case 01.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/base/Union case 01.fs.gold
@@ -1,3 +1 @@
-## NavigateToBaseProvider activity:
- Tooltip was shown: Base properties of 'A' were not found
-
+
\ No newline at end of file
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fs
new file mode 100644
index 0000000000..c2aa42e44f
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fs
@@ -0,0 +1,6 @@
+module Module
+
+module Nested =
+ let x = 1
+
+open Nested{on}
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fs.gold
new file mode 100644
index 0000000000..a429980c9c
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fs.gold
@@ -0,0 +1,35 @@
+## GotoDeclarationProvider activity:
+ Show context popup menu `Declarations of module 'Nested'`:
+ TO: [O] module |Nested| = RANGE: (22,28) @ Module 01.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Module 01.fs (3)
+ tail: in
+ tooltip: module **Nested** =
+ Navigation result:
+ opened file: Module 01.fs
+ ------------------
+ module Module
+
+ module |CARET|Nested =
+ let x = 1
+
+ ------------------
+
+ TO: [O] module |Nested| = RANGE: (22,28) @ Module 01.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Module 01.fsi (3)
+ tail: in
+ tooltip: module **Nested** =
+ Navigation result:
+ opened file: Module 01.fsi
+ ------------------
+ module Module
+
+ module |CARET|Nested =
+ val x: int
+
+ ------------------
+
+
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fsi
new file mode 100644
index 0000000000..1ec35a23f1
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 01.fsi
@@ -0,0 +1,4 @@
+module Module
+
+module Nested =
+ val x: int
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fs
new file mode 100644
index 0000000000..63091b080c
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fs
@@ -0,0 +1,9 @@
+module Module
+
+module Nested =
+ let x = 1
+
+type Nested =
+ { F: int }
+
+open Nested{on}
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fs.gold
new file mode 100644
index 0000000000..a79cba6322
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fs.gold
@@ -0,0 +1,35 @@
+## GotoDeclarationProvider activity:
+ Show context popup menu `Declarations of module 'NestedModule'`:
+ TO: [O] module |Nested| = RANGE: (22,28) @ Module 02.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Module 02.fs (3)
+ tail: in
+ tooltip: module **Nested** =
+ Navigation result:
+ opened file: Module 02.fs
+ ------------------
+ module Module
+
+ module |CARET|Nested =
+ let x = 1
+
+ ------------------
+
+ TO: [O] module |Nested| = RANGE: (22,28) @ Module 02.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Module 02.fsi (3)
+ tail: in
+ tooltip: module **Nested** =
+ Navigation result:
+ opened file: Module 02.fsi
+ ------------------
+ module Module
+
+ module |CARET|Nested =
+ val x: int
+
+ ------------------
+
+
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fsi
new file mode 100644
index 0000000000..e87a663860
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Module 02.fsi
@@ -0,0 +1,7 @@
+module Module
+
+module Nested =
+ val x: int
+
+type Nested =
+ { F: int }
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fs
new file mode 100644
index 0000000000..ac6c594276
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fs
@@ -0,0 +1,7 @@
+module Module
+
+type R =
+ { F: int }
+
+let r = { F = 1 }
+let i = r.F{on}
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fs.gold
new file mode 100644
index 0000000000..0682baf0b7
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fs.gold
@@ -0,0 +1,34 @@
+## GotoDeclarationProvider activity:
+ Show context popup menu `Declarations of field 'F'`:
+ TO: [O] { |F|: int } RANGE: (30,31) @ Record - Field 01.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Record - Field 01.fs (4)
+ tail: in
+ tooltip: { **F**: int }
+ Navigation result:
+ opened file: Record - Field 01.fs
+ ------------------
+
+ type R =
+ { |CARET|F: int }
+
+ let r = { F = 1 }
+ ------------------
+
+ TO: [O] { |F|: int } RANGE: (30,31) @ Record - Field 01.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Record - Field 01.fsi (4)
+ tail: in
+ tooltip: { **F**: int }
+ Navigation result:
+ opened file: Record - Field 01.fsi
+ ------------------
+
+ type R =
+ { |CARET|F: int }
+
+ ------------------
+
+
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fsi
new file mode 100644
index 0000000000..ea38c421f3
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 01.fsi
@@ -0,0 +1,4 @@
+module Module
+
+type R =
+ { F: int }
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fs
new file mode 100644
index 0000000000..b01618ad39
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fs
@@ -0,0 +1,6 @@
+module Module
+
+type R =
+ { F: int }
+
+let r = { F{on} = 1 }
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fs.gold
new file mode 100644
index 0000000000..d4bf497101
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fs.gold
@@ -0,0 +1,34 @@
+## GotoDeclarationProvider activity:
+ Show context popup menu `Declarations of field 'F'`:
+ TO: [O] { |F|: int } RANGE: (30,31) @ Record - Field 02.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Record - Field 02.fs (4)
+ tail: in
+ tooltip: { **F**: int }
+ Navigation result:
+ opened file: Record - Field 02.fs
+ ------------------
+
+ type R =
+ { |CARET|F: int }
+
+ let r = { F = 1 }
+ ------------------
+
+ TO: [O] { |F|: int } RANGE: (30,31) @ Record - Field 02.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Record - Field 02.fsi (4)
+ tail: in
+ tooltip: { **F**: int }
+ Navigation result:
+ opened file: Record - Field 02.fsi
+ ------------------
+
+ type R =
+ { |CARET|F: int }
+
+ ------------------
+
+
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fsi
new file mode 100644
index 0000000000..ea38c421f3
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Record - Field 02.fsi
@@ -0,0 +1,4 @@
+module Module
+
+type R =
+ { F: int }
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 01.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 01.fs.gold
index 6d28c6cc6c..46eb6190f6 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 01.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 01.fs.gold
@@ -1,5 +1,5 @@
## GotoDeclarationProvider activity:
- Show context popup menu `Declarations of property 'x'`:
+ Show context popup menu `Declarations of value 'x'`:
TO: [O] let |x| = 123 RANGE: (18,19) @ Signature 01.fs
Menu item (enabled) :
icon: Fsharp
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 02 - Same range.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 02 - Same range.fs.gold
index a4db99b61c..907838d862 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 02 - Same range.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Signature 02 - Same range.fs.gold
@@ -1,5 +1,5 @@
## GotoDeclarationProvider activity:
- Show context popup menu `Declarations of property 'x'`:
+ Show context popup menu `Declarations of value 'x'`:
TO: [O] let |x| = 123 RANGE: (19,20) @ Signature 02 - Same range.fs
Menu item (enabled) :
icon: Fsharp
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs
index f4ee2b16e3..5b323cb2ca 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs
@@ -1,3 +1,5 @@
+module Module
+
type U =
| A
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs.gold
index 3528080fc0..f1dfb0b377 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fs.gold
@@ -1,9 +1,31 @@
## GotoDeclarationProvider activity:
- Immediate result:
- TO: [O] | |A| RANGE: (15,16) @ Union - Case - Empty 01 - Expr.fs
+ Show context popup menu `Declarations of union case 'A'`:
+ TO: [O] | |A| RANGE: (30,31) @ Union - Case - Empty 01 - Expr.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Union - Case - Empty 01 - Expr.fs (4)
+ tail: in
+ tooltip: | **A**
Navigation result:
opened file: Union - Case - Empty 01 - Expr.fs
------------------
+
+ type U =
+ | |CARET|A
+ | B
+
+ ------------------
+
+ TO: [O] | |A| RANGE: (30,31) @ Union - Case - Empty 01 - Expr.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Union - Case - Empty 01 - Expr.fsi (4)
+ tail: in
+ tooltip: | **A**
+ Navigation result:
+ opened file: Union - Case - Empty 01 - Expr.fsi
+ ------------------
+
type U =
| |CARET|A
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fsi
new file mode 100644
index 0000000000..e9caf1eb5c
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 01 - Expr.fsi
@@ -0,0 +1,5 @@
+module Module
+
+type U =
+ | A
+ | B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs
index 6ff10a0c35..bb35661b6e 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs
@@ -1,3 +1,5 @@
+module Module
+
type U =
| A
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs.gold
index 9e8418a657..bb3372759e 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fs.gold
@@ -1,9 +1,31 @@
## GotoDeclarationProvider activity:
- Immediate result:
- TO: [O] | |A| RANGE: (15,16) @ Union - Case - Empty 02 - Pattern.fs
+ Show context popup menu `Declarations of union case 'A'`:
+ TO: [O] | |A| RANGE: (30,31) @ Union - Case - Empty 02 - Pattern.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Union - Case - Empty 02 - Pattern.fs (4)
+ tail: in
+ tooltip: | **A**
Navigation result:
opened file: Union - Case - Empty 02 - Pattern.fs
------------------
+
+ type U =
+ | |CARET|A
+ | B
+
+ ------------------
+
+ TO: [O] | |A| RANGE: (30,31) @ Union - Case - Empty 02 - Pattern.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Union - Case - Empty 02 - Pattern.fsi (4)
+ tail: in
+ tooltip: | **A**
+ Navigation result:
+ opened file: Union - Case - Empty 02 - Pattern.fsi
+ ------------------
+
type U =
| |CARET|A
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fsi
new file mode 100644
index 0000000000..e9caf1eb5c
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Empty 02 - Pattern.fsi
@@ -0,0 +1,5 @@
+module Module
+
+type U =
+ | A
+ | B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs
index c2c0c72caf..c702590bdf 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs
@@ -1,3 +1,5 @@
+module Module
+
type U =
| A of int
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs.gold
index e54d85d3c3..0ca429273e 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fs.gold
@@ -1,9 +1,31 @@
## GotoDeclarationProvider activity:
- Immediate result:
- TO: [O] | |A| of int RANGE: (15,16) @ Union - Case - Fields 01 - Expr.fs
+ Show context popup menu `Declarations of union case 'A'`:
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Fields 01 - Expr.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Union - Case - Fields 01 - Expr.fs (4)
+ tail: in
+ tooltip: | **A** of int
Navigation result:
opened file: Union - Case - Fields 01 - Expr.fs
------------------
+
+ type U =
+ | |CARET|A of int
+ | B
+
+ ------------------
+
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Fields 01 - Expr.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Union - Case - Fields 01 - Expr.fsi (4)
+ tail: in
+ tooltip: | **A** of int
+ Navigation result:
+ opened file: Union - Case - Fields 01 - Expr.fsi
+ ------------------
+
type U =
| |CARET|A of int
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fsi
new file mode 100644
index 0000000000..5132019126
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 01 - Expr.fsi
@@ -0,0 +1,5 @@
+module Module
+
+type U =
+ | A of int
+ | B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs
index 7265aeaf8a..78fbc95847 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs
@@ -1,3 +1,5 @@
+module Module
+
type U =
| A of int
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs.gold
index 8667e965fd..80c9de1fc1 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fs.gold
@@ -1,9 +1,31 @@
## GotoDeclarationProvider activity:
- Immediate result:
- TO: [O] | |A| of int RANGE: (15,16) @ Union - Case - Fields 02 - Pattern.fs
+ Show context popup menu `Declarations of union case 'A'`:
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Fields 02 - Pattern.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Union - Case - Fields 02 - Pattern.fs (4)
+ tail: in
+ tooltip: | **A** of int
Navigation result:
opened file: Union - Case - Fields 02 - Pattern.fs
------------------
+
+ type U =
+ | |CARET|A of int
+ | B
+
+ ------------------
+
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Fields 02 - Pattern.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Union - Case - Fields 02 - Pattern.fsi (4)
+ tail: in
+ tooltip: | **A** of int
+ Navigation result:
+ opened file: Union - Case - Fields 02 - Pattern.fsi
+ ------------------
+
type U =
| |CARET|A of int
| B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fsi
new file mode 100644
index 0000000000..5132019126
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Fields 02 - Pattern.fsi
@@ -0,0 +1,5 @@
+module Module
+
+type U =
+ | A of int
+ | B
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs
index 83d397a5bb..f32181e057 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs
@@ -1,3 +1,5 @@
+module Module
+
type U =
| A of int
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs.gold
index 2e256d8b2d..43d8837723 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fs.gold
@@ -1,13 +1,34 @@
## GotoDeclarationProvider activity:
- Immediate result:
- TO: [O] | |A| of int RANGE: (15,16) @ Union - Case - Single - Fields 01 - Expr.fs
+ Show context popup menu `Declarations of union case 'A'`:
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Single - Fields 01 - Expr.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Union - Case - Single - Fields 01 - Expr.fs (4)
+ tail: in
+ tooltip: | **A** of int
Navigation result:
opened file: Union - Case - Single - Fields 01 - Expr.fs
------------------
+
type U =
| |CARET|A of int
let a = A 123
------------------
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Single - Fields 01 - Expr.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Union - Case - Single - Fields 01 - Expr.fsi (4)
+ tail: in
+ tooltip: | **A** of int
+ Navigation result:
+ opened file: Union - Case - Single - Fields 01 - Expr.fsi
+ ------------------
+
+ type U =
+ | |CARET|A of int
+
+ ------------------
+
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fsi
new file mode 100644
index 0000000000..ce66ecd08c
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Expr.fsi
@@ -0,0 +1,4 @@
+module Module
+
+type U =
+ | A of int
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs
index 301ba1e3a3..fb05b28da3 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs
@@ -1,3 +1,5 @@
+module Module
+
type U =
| A of int
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs.gold b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs.gold
index ec8b43cc5c..79a90841bb 100644
--- a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs.gold
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fs.gold
@@ -1,13 +1,34 @@
## GotoDeclarationProvider activity:
- Immediate result:
- TO: [O] | |A| of int RANGE: (15,16) @ Union - Case - Single - Fields 01 - Pattern.fs
+ Show context popup menu `Declarations of union case 'A'`:
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Single - Fields 01 - Pattern.fs
+ Menu item (enabled) :
+ icon: Fsharp
+ text: Union - Case - Single - Fields 01 - Pattern.fs (4)
+ tail: in
+ tooltip: | **A** of int
Navigation result:
opened file: Union - Case - Single - Fields 01 - Pattern.fs
------------------
+
type U =
| |CARET|A of int
match A 123 with
------------------
+ TO: [O] | |A| of int RANGE: (30,31) @ Union - Case - Single - Fields 01 - Pattern.fsi
+ Menu item (enabled) :
+ icon: FsharpSignature
+ text: Union - Case - Single - Fields 01 - Pattern.fsi (4)
+ tail: in
+ tooltip: | **A** of int
+ Navigation result:
+ opened file: Union - Case - Single - Fields 01 - Pattern.fsi
+ ------------------
+
+ type U =
+ | |CARET|A of int
+
+ ------------------
+
diff --git a/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fsi b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fsi
new file mode 100644
index 0000000000..ce66ecd08c
--- /dev/null
+++ b/ReSharper.FSharp/test/data/features/navigation/declaration/Union - Case - Single - Fields 01 - Pattern.fsi
@@ -0,0 +1,4 @@
+module Module
+
+type U =
+ | A of int
diff --git a/ReSharper.FSharp/test/data/features/quickdoc/ActivePattern 01.fs.gold b/ReSharper.FSharp/test/data/features/quickdoc/ActivePattern 01.fs.gold
index 556ea43140..a79a85a8ac 100644
--- a/ReSharper.FSharp/test/data/features/quickdoc/ActivePattern 01.fs.gold
+++ b/ReSharper.FSharp/test/data/features/quickdoc/ActivePattern 01.fs.gold
@@ -1,3 +1,3 @@
-Some Doc on ActivePattern
\ No newline at end of file
+Some Doc on ActivePattern