提交 d9e2246c 编写于 作者: M Matt Bierner

Temporarily revert using word range for TS completions due to #66187

上级 dc82a4aa
......@@ -123,12 +123,14 @@ class MyCompletionItem extends vscode.CompletionItem {
return;
}
// Try getting longer, prefix based range for completions that span words
const wordRange = this.document.getWordRangeAtPosition(this.position);
if (wordRange) {
this.range = wordRange;
// TODO: Reverted next line due to https://github.com/Microsoft/vscode/issues/66187
// this.range = wordRange;
}
// Try getting longer, prefix based range for completions that span words
const text = line.slice(Math.max(0, this.position.character - this.label.length), this.position.character).toLowerCase();
const entryName = this.label.toLowerCase();
for (let i = entryName.length; i >= 0; --i) {
......
......@@ -162,7 +162,7 @@ suite('TypeScript Completions', () => {
));
});
test('Accepting a member completion should result in valid code. #58597', async () => {
test.skip('Accepting a member completion should result in valid code. #58597', async () => {
await createTestEditor(testDocumentUri,
`const abc = 123;`,
`ab$0c`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册