towards code lens lifecycle, still #1698

This commit is contained in:
Johannes Rieken
2016-01-04 18:48:12 +01:00
parent de3e63c058
commit fa1c52de3b
7 changed files with 46 additions and 91 deletions

View File

@@ -175,7 +175,7 @@ class ExtHostApiCommands {
};
return this._commands.executeCommand<modes.IReference[]>('_executeDefinitionProvider', args).then(value => {
if (Array.isArray(value)) {
return value.map(typeConverters.toLocation);
return value.map(typeConverters.location.to);
}
});
}
@@ -211,7 +211,7 @@ class ExtHostApiCommands {
};
return this._commands.executeCommand<modes.IReference[]>('_executeDocumentHighlights', args).then(value => {
if (Array.isArray(value)) {
return value.map(typeConverters.toLocation);
return value.map(typeConverters.location.to);
}
});
}