mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix API tests for new API
This commit is contained in:
@@ -1159,7 +1159,7 @@ suite('vscode API - workspace', () => {
|
||||
assert.ok(edt === vscode.window.activeTextEditor);
|
||||
|
||||
const we = new vscode.WorkspaceEdit();
|
||||
we.replace(document.uri, new vscode.Range(0, 0, 0, 0), new vscode.SnippetString('${1:foo}${2:bar}'));
|
||||
we.set(document.uri, [new vscode.SnippetTextEdit(new vscode.Range(0, 0, 0, 0), new vscode.SnippetString('${1:foo}${2:bar}'))]);
|
||||
const success = await vscode.workspace.applyEdit(we);
|
||||
if (edt !== vscode.window.activeTextEditor) {
|
||||
return this.skip();
|
||||
|
||||
Reference in New Issue
Block a user