-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Typescript 2.6.2 Auto Import and Tslint Formatting #42367
Comments
Are you using TS 2.2 in your workspace? Also, please share information about your project: what is its structure? Do you have a |
First of all, TS 2.2 was a typo. It should have been 2.6.2 (fixed the title by now). Assuming I am importing a constant |
@th-ko Let's keep this issue focused on the auto-imports. Please open a separate issue for the tslint stuff. Can you please share your |
Also, can you please try our the latest VS Code insiders builds. There have been a number of fixes to auto imports so this may already have been resolved |
Using tsconfig.json:
Regarding the tslint-settings: I would have assumed they are relevant as one point in this issue is the code-style of semicolons. (This one is still valid in the current insider-build) The BTW: Great work, loving VSCode and especially the autoimport. |
Semi colon part is already tracked by microsoft/TypeScript#19882 / microsoft/TypeScript#20161 I believe I also see the correct stye imports on VS Code insiders when setting: "module": "esnext",
"moduleResolution": "node", Can you try out VS Code insiders? |
I already have both of those set (see the posted tsconfig). However the semicolon is still appended. My version is the following: Version 1.20.0-insider |
@th-ko I'm only focusing on the import path issue. The semicolon issue is not fixed and tracked by the two bugs I linked Does 1.20 fix the import path? |
As stated above the import path issue is fixed. As the semicolon is tracked by the other bugs I will close the issue. Thanks. |
Steps to Reproduce:
Import should:
a) be minimal (not ending with /index)
b) respect tslints semicolon settings (as it does with quotemarks see: #21424
The text was updated successfully, but these errors were encountered: