proper handling of namespace and package type in goto symbol handler

This commit is contained in:
Johannes Rieken
2016-01-20 12:03:05 +01:00
parent 6b032e3615
commit 953aba39c8
3 changed files with 21 additions and 3 deletions

View File

@@ -198,9 +198,11 @@ export namespace SymbolKind {
return 'class';
case types.SymbolKind.Interface:
return 'interface';
case types.SymbolKind.Module:
case types.SymbolKind.Namespace:
return 'namespace';
case types.SymbolKind.Package:
return 'package';
case types.SymbolKind.Module:
return 'module';
case types.SymbolKind.Property:
return 'property';
@@ -234,9 +236,11 @@ export namespace SymbolKind {
return types.SymbolKind.Class;
case 'interface':
return types.SymbolKind.Interface;
case 'namespace':
return types.SymbolKind.Namespace;
case 'package':
return types.SymbolKind.Package;
case 'module':
// case types.SymbolKind.Namespace:
// case types.SymbolKind.Package:
return types.SymbolKind.Module;
case 'property':
return types.SymbolKind.Property;