提交 0e92f877 编写于 作者: M Matt Bierner

Send includeExternalModuleExports on ts completions request

This new flag will make auto import completions opt-in for TS 2.6.2. Adding it for furture proofing

https://github.com/Microsoft/TypeScript/pull/19687
上级 b2b952d1
......@@ -209,7 +209,10 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
}
try {
const args: CompletionsRequestArgs = vsPositionToTsFileLocation(file, position);
const args = {
...vsPositionToTsFileLocation(file, position),
includeExternalModuleExports: config.autoImportSuggestions
} as CompletionsRequestArgs;
const msg = await this.client.execute('completions', args, token);
// This info has to come from the tsserver. See https://github.com/Microsoft/TypeScript/issues/2831
// let isMemberCompletion = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册