move codelense to /browser/-layer

This commit is contained in:
Johannes Rieken
2017-06-16 16:23:31 +02:00
parent 8c7689c925
commit b3f9d8a283
7 changed files with 691 additions and 692 deletions

View File

@@ -16,7 +16,6 @@ import { ICommandHandlerDescription } from 'vs/platform/commands/common/commands
import { ExtHostCommands } from 'vs/workbench/api/node/extHostCommands';
import { IOutline } from 'vs/editor/contrib/quickOpen/common/quickOpen';
import { IWorkspaceSymbolProvider } from 'vs/workbench/parts/search/common/search';
import { ICodeLensData } from 'vs/editor/contrib/codelens/common/codelens';
import { IEditorOptions } from 'vs/platform/editor/common/editor';
export class ExtHostApiCommands {
@@ -409,12 +408,12 @@ export class ExtHostApiCommands {
private _executeCodeLensProvider(resource: URI): Thenable<vscode.CodeLens[]> {
const args = { resource };
return this._commands.executeCommand<ICodeLensData[]>('_executeCodeLensProvider', args).then(value => {
return this._commands.executeCommand<modes.ICodeLensSymbol[]>('_executeCodeLensProvider', args).then(value => {
if (Array.isArray(value)) {
return value.map(item => {
return new types.CodeLens(
typeConverters.toRange(item.symbol.range),
this._commands.converter.fromInternal(item.symbol.command));
typeConverters.toRange(item.range),
this._commands.converter.fromInternal(item.command));
});
}
return undefined;