Convert IOccurrencesSupport to DocumentHighlightProvider

This commit is contained in:
Alex Dima
2016-05-19 16:45:25 +02:00
parent 9050cecdf1
commit 78d8b4b168
18 changed files with 214 additions and 298 deletions

View File

@@ -260,7 +260,7 @@ class ExtHostApiCommands {
resource,
position: position && typeConverters.fromPosition(position)
};
return this._commands.executeCommand<modes.IOccurence[]>('_executeDocumentHighlights', args).then(value => {
return this._commands.executeCommand<modes.DocumentHighlight[]>('_executeDocumentHighlights', args).then(value => {
if (Array.isArray(value)) {
return value.map(typeConverters.toDocumentHighlight);
}