mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
explicit insertSnippet function instead of edit overload, #19116
This commit is contained in:
@@ -41,7 +41,7 @@ suite('editor tests', () => {
|
||||
.appendText(' snippet');
|
||||
|
||||
return withRandomFileEditor('', (editor, doc) => {
|
||||
return editor.edit(snippetString).then(inserted => {
|
||||
return editor.insertSnippet(snippetString).then(inserted => {
|
||||
assert.ok(inserted);
|
||||
assert.equal(doc.getText(), 'This is a placeholder snippet');
|
||||
assert.ok(doc.isDirty);
|
||||
@@ -59,7 +59,7 @@ suite('editor tests', () => {
|
||||
new Position(0, 12)
|
||||
);
|
||||
|
||||
return editor.edit(snippetString).then(inserted => {
|
||||
return editor.insertSnippet(snippetString).then(inserted => {
|
||||
assert.ok(inserted);
|
||||
assert.equal(doc.getText(), 'This has been replaced');
|
||||
assert.ok(doc.isDirty);
|
||||
|
||||
Reference in New Issue
Block a user