提交 20217468 编写于 作者: J Johannes Rieken

add failing (and skipped) test for https://github.com/microsoft/vscode/issues/108894

上级 4ef381cb
......@@ -474,4 +474,27 @@ suite('SnippetsService', function () {
assert.equal((first.range as any).insert.endColumn, 1);
assert.equal((first.range as any).replace.endColumn, 9);
});
test('Snippet replace-range incorrect #108894', async function () {
this.skip();
snippetService = new SimpleSnippetService([new Snippet(
['fooLang'],
'eng',
'eng',
'',
'<span></span>',
'',
SnippetSource.User
)]);
const provider = new SnippetCompletionProvider(modeService, snippetService);
let model = createTextModel('filler e KEEP ng filler', undefined, modeService.getLanguageIdentifier('fooLang'));
let result = await provider.provideCompletionItems(model, new Position(1, 9), context)!;
assert.equal(result.suggestions.length, 1);
let [first] = result.suggestions;
assert.equal((first.range as any).insert.endColumn, 9);
assert.equal((first.range as any).replace.endColumn, 9);
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册