Skip to content

Commit

Permalink
Merge pull request #7917 from microsoft/commands-open
Browse files Browse the repository at this point in the history
Re-add vscode-open details
  • Loading branch information
ntrogh authored Jan 6, 2025
2 parents ca359b2 + a5be0da commit b47c2ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/references/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,12 @@ let success = await commands.executeCommand('vscode.openFolder', uri);
* _context_ - An InlineValueContext
* _(returns)_ - A promise that resolves to an array of InlineValue objects

`vscode.open` - Opens the provided resource in the editor.
`vscode.open` - Opens the provided resource in the editor. Can be a text or binary file, or an http(s) URL. If you need more control over the options for opening a text file, use `vscode.window.showTextDocument` instead.

* _Uri_ -
* _uri_ - Uri of a text or binary file, or an http(s) URL
* _columnOrOptions_ - (optional) Either the column in which to open, or editor options, see `vscode.TextDocumentShowOptions`
* _label_ - Editor label (optional)
* _(returns)_ - no result

`vscode.openWith` - Opens the provided resource with a specific editor.

Expand Down

0 comments on commit b47c2ac

Please sign in to comment.