mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
Respond to review comments.
- Rename adjustWhitespace to keepWhitespace - Retain default behaviour of adjusting whitespace when keepWhitespace not defined Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
This commit is contained in:
@@ -117,7 +117,7 @@ suite('vscode API - editors', () => {
|
||||
new Position(1, 3)
|
||||
);
|
||||
|
||||
return editor.insertSnippet(snippetString, undefined, { undoStopAfter: false, undoStopBefore: false, adjustWhitespace: false }).then(inserted => {
|
||||
return editor.insertSnippet(snippetString, undefined, { undoStopAfter: false, undoStopBefore: false, keepWhitespace: true }).then(inserted => {
|
||||
assert.ok(inserted);
|
||||
assert.strictEqual(doc.getText(), 'This is line 1\n This is line 2\n This is line 3');
|
||||
assert.ok(doc.isDirty);
|
||||
|
||||
Reference in New Issue
Block a user