mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
test that vscode.open supports string in addition to URI
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user