-
Notifications
You must be signed in to change notification settings - Fork 28.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
No Intellisense with typescript #812
Comments
@joesonw Can you please help us with more steps to reproduce the problem. Does the problem persist for you if you restart VSCode? Does the problem occur only on a certain file/folder? |
@alexandrudima I even tried to reinstall it. I also tried delete everything under |
CCing @dbaeumer who might help you pinpoint the failure better |
@joesonw would you be able to share your project with me. |
I had same experience when completionItemProvider reject the promise. |
@dbaeumer I'm working on completion on #633 try that with this code interface IDosomething{
getInfo(callback:(another:()=>void)=>void)
}
var x:IDosomething;
x.getI then try to complete x.getI with tab. you will get flowing error and suggestion, completion and quick-info won't work any more (need to reload). in this case the cause is nested function (which I'm working on it) however it should not impact the rest of application. [4363:1130/154007:INFO:CONSOLE(47)] "WARNING: Promise with no error callback:undefined", source: file:////home/user/vscode/out/vs/base/common/winjs.base.js (47) |
@UCNC testing with with a 'plain' VSCode doesn't show any wired behavior nor output written to the log. |
Have you added a tsconfig.json file to the root of the project? |
I have issues with intellisense, too. I created isolated project with issue https://github.com/RANUX/vscode-ts-project-tests When i use "exclude" directive in tsconfig.ts, everything works fine, but when i try use "files" directive intellisense doesn't work :( |
@RANUX the problem with your setup is that as soon as you start using a files section only the files listed there are parts of the project. So in your case the project only consists of "typings/meteor/meteor.d.ts" and no other files. Hence you don't get intellisense in any of the others. Either remove the files sections or list all files you want to have part of the project. |
@dbaeumer thanks for reply! But intellisense doesn't work for files listed in "files" section, that's my problem :( |
@RANUX but in our example you only list typings/meteor/meteor.d.ts in the file section. So if you add another file the meteor typings will not be available in that files and therefore you will not get intellisense in that file for meteor typings. |
It went smoothly at the start. Everything stopped working after a certain point (I use default settings, so nothing about
settings.json
). No autocomplete or type hinting anymore, it's just like a regular text editor to me right now. But it has hints when i was editingsettings.json
though.The text was updated successfully, but these errors were encountered: