mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
Enable no unused parameters in vscode-api tests
This commit is contained in:
@@ -152,7 +152,7 @@ suite('editor tests', () => {
|
||||
});
|
||||
|
||||
test('issue #16573: Extension API: insertSpaces and tabSize are undefined', () => {
|
||||
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, doc) => {
|
||||
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, _doc) => {
|
||||
|
||||
assert.equal(editor.options.tabSize, 4);
|
||||
assert.equal(editor.options.insertSpaces, false);
|
||||
@@ -180,21 +180,21 @@ suite('editor tests', () => {
|
||||
});
|
||||
|
||||
test('issue #20757: Overlapping ranges are not allowed!', () => {
|
||||
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, doc) => {
|
||||
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, _doc) => {
|
||||
return editor.edit((builder) => {
|
||||
// create two edits that overlap (i.e. are illegal)
|
||||
builder.replace(new Range(0, 0, 0, 2), 'He');
|
||||
builder.replace(new Range(0, 1, 0, 3), 'el');
|
||||
}).then(
|
||||
|
||||
(applied) => {
|
||||
(_applied) => {
|
||||
assert.ok(false, 'edit with overlapping ranges should fail');
|
||||
},
|
||||
|
||||
(err) => {
|
||||
(_err) => {
|
||||
assert.ok(true, 'edit with overlapping ranges should fail');
|
||||
}
|
||||
);
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user