From microsoft/vscode#47253 (comment)
TypeScript Version: 2.9.0-dev.20180409
Search Terms:
Code
In a new folder without a tsconfig:
package.json:
{
"name": "test",
"private": true,
"version": "1.0.0",
"description": "",
"main": "index.js",
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/lodash": "^4.14.106",
"lodash": "^4.17.5",
"typescript": "^2.9.0-dev.20180409"
}
}
index.ts:
import * as _ from 'lodash';
const result = _.chain([]).ma
// or
const result = _([]).ma
- Run npm install
- Open
index.ts in vscode
- Trigger completions on
.ma
Bug:
TS Server completions requests end up taking ~6seconds each time. Here's my tsserver log
tsserver copy.log
Look for the lines around: getCompletionData: Semantic work: 6974
From microsoft/vscode#47253 (comment)
TypeScript Version: 2.9.0-dev.20180409
Search Terms:
Code
In a new folder without a
tsconfig:package.json:{ "name": "test", "private": true, "version": "1.0.0", "description": "", "main": "index.js", "keywords": [], "author": "", "license": "ISC", "dependencies": { "@types/lodash": "^4.14.106", "lodash": "^4.17.5", "typescript": "^2.9.0-dev.20180409" } }index.ts:index.tsin vscode.maBug:
TS Server
completionsrequests end up taking ~6seconds each time. Here's my tsserver logtsserver copy.log
Look for the lines around:
getCompletionData: Semantic work: 6974