Add showTextDocument(uri|file)

This commit is contained in:
Benjamin Pasero
2017-07-17 07:54:23 +02:00
parent 3cfa565abb
commit 955e4b8c06
4 changed files with 61 additions and 5 deletions

View File

@@ -234,7 +234,7 @@ export class ExtHostApiCommands {
this._register('vscode.open', (resource: URI, column: vscode.ViewColumn) => {
return this._commands.executeCommand('_workbench.open', [resource, typeConverters.fromViewColumn(column)]);
}, {
description: 'Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url',
description: 'Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.',
args: [
{ name: 'resource', description: 'Resource to open', constraint: URI },
{ name: 'column', description: '(optional) Column in which to open', constraint: v => v === void 0 || typeof v === 'number' }