Skip to content

Commit

Permalink
test that vscode.open supports string in addition to URI
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Feb 1, 2022
1 parent fc1511e commit b2eebdc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ suite('vscode API - commands', () => {
await commands.executeCommand('vscode.open', uri, ViewColumn.One);
assert.strictEqual(window.activeTextEditor?.viewColumn, ViewColumn.One);

await commands.executeCommand('vscode.open', uri.toString(), ViewColumn.Two); // call with string instead of URI
assert.strictEqual(window.activeTextEditor?.viewColumn, ViewColumn.Two);

let e1: Error | undefined = undefined;
try {
await commands.executeCommand('vscode.open');
Expand Down

0 comments on commit b2eebdc

Please sign in to comment.