mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
remove api command for code insets
This commit is contained in:
@@ -18,7 +18,6 @@ import { CustomCodeAction } from 'vs/workbench/api/node/extHostLanguageFeatures'
|
||||
import { ICommandsExecutor, PreviewHTMLAPICommand, OpenFolderAPICommand, DiffAPICommand, OpenAPICommand, RemoveFromRecentlyOpenedAPICommand, SetEditorLayoutAPICommand } from './apiCommands';
|
||||
import { EditorGroupLayout } from 'vs/workbench/services/editor/common/editorGroupsService';
|
||||
import { isFalsyOrEmpty } from 'vs/base/common/arrays';
|
||||
import * as codeInset from 'vs/workbench/contrib/codeinset/codeInset';
|
||||
|
||||
export class ExtHostApiCommands {
|
||||
|
||||
@@ -147,13 +146,6 @@ export class ExtHostApiCommands {
|
||||
],
|
||||
returns: 'A promise that resolves to an array of CodeLens-instances.'
|
||||
});
|
||||
this._register('vscode.executeCodeInsetProvider', this._executeCodeInsetProvider, {
|
||||
description: 'Execute CodeInset provider.',
|
||||
args: [
|
||||
{ name: 'uri', description: 'Uri of a text document', constraint: URI }
|
||||
],
|
||||
returns: 'A promise that resolves to an array of CodeInset-instances.'
|
||||
});
|
||||
this._register('vscode.executeFormatDocumentProvider', this._executeFormatDocumentProvider, {
|
||||
description: 'Execute document format provider.',
|
||||
args: [
|
||||
@@ -522,14 +514,6 @@ export class ExtHostApiCommands {
|
||||
|
||||
}
|
||||
|
||||
private _executeCodeInsetProvider(resource: URI): Thenable<vscode.CodeInset[]> {
|
||||
const args = { resource };
|
||||
return this._commands.executeCommand<codeInset.ICodeInsetSymbol[]>('_executeCodeInsetProvider', args)
|
||||
.then(tryMapWith(item =>
|
||||
new types.CodeInset(
|
||||
typeConverters.Range.to(item.range))));
|
||||
}
|
||||
|
||||
private _executeFormatDocumentProvider(resource: URI, options: vscode.FormattingOptions): Promise<vscode.TextEdit[]> {
|
||||
const args = {
|
||||
resource,
|
||||
|
||||
Reference in New Issue
Block a user