mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fixes #257: [lsp-sample] completion.test.ts fails if a global snippet is defined
This commit is contained in:
@ -34,7 +34,7 @@ async function testCompletion(
|
||||
position
|
||||
)) as vscode.CompletionList;
|
||||
|
||||
assert.equal(actualCompletionList.items.length, expectedCompletionList.items.length);
|
||||
assert.ok(actualCompletionList.items.length >= 2);
|
||||
expectedCompletionList.items.forEach((expectedItem, i) => {
|
||||
const actualItem = actualCompletionList.items[i];
|
||||
assert.equal(actualItem.label, expectedItem.label);
|
||||
|
||||
Reference in New Issue
Block a user