Skip to content

Commit 91d5b88

Browse files
fflatenandyleejordan
authored andcommitted
Add SymbolType.Region
1 parent e9310f9 commit 91d5b88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PowerShellEditorServices/Services/Symbols/SymbolType.cs

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ internal enum SymbolType
7979
/// The symbol is a type reference
8080
/// </summary>
8181
Type,
82+
83+
/// <summary>
84+
/// The symbol is a region. Only used for navigation-features.
85+
/// </summary>
86+
Region
8287
}
8388

8489
internal static class SymbolTypeUtils
@@ -97,6 +102,7 @@ internal static SymbolKind GetSymbolKind(SymbolType symbolType)
97102
SymbolType.Variable or SymbolType.Parameter => SymbolKind.Variable,
98103
SymbolType.HashtableKey => SymbolKind.Key,
99104
SymbolType.Type => SymbolKind.TypeParameter,
105+
SymbolType.Region => SymbolKind.String,
100106
SymbolType.Unknown or _ => SymbolKind.Object,
101107
};
102108
}

0 commit comments

Comments
 (0)