Skip to content

Commit

Permalink
Merge pull request #1911 from craig006/fix/ReturnCorrectSymbolKinds
Browse files Browse the repository at this point in the history
Map all symbol kinds to vscode.SymbolKinds
  • Loading branch information
Ravi Chande authored Jan 3, 2018
2 parents b9f98ac + 7416c7e commit 052e3c0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/features/workspaceSymbolProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,24 @@ export default class OmnisharpWorkspaceSymbolProvider extends AbstractSupport im
case 'Method':
return SymbolKind.Method;
case 'Field':
case 'Property':
return SymbolKind.Field;
case 'Property':
return SymbolKind.Property;
case 'Interface':
return SymbolKind.Interface;
case 'Enum':
return SymbolKind.Enum;
case 'Struct':
return SymbolKind.Struct;
case 'Event':
return SymbolKind.Event;
case 'EnumMember':
return SymbolKind.EnumMember;
case 'Class':
return SymbolKind.Class;
default:
return SymbolKind.Class;

}
return SymbolKind.Class;
}
}

0 comments on commit 052e3c0

Please sign in to comment.