vscode icon indicating copy to clipboard operation
vscode copied to clipboard

No Intellisense with typescript

Open joesonw opened this issue 11 years ago • 12 comments

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.

joesonw avatar Nov 30 '15 08:11 joesonw

@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?

alexdima avatar Nov 30 '15 08:11 alexdima

@alexandrudima I even tried to reinstall it. I also tried delete everything under ${HOME}/Library/Application Support/Code, problems still persist. I can't really tell how did I got into this. I suspect it might be structure of project files? or package.json?

joesonw avatar Nov 30 '15 08:11 joesonw

CCing @dbaeumer who might help you pinpoint the failure better

alexdima avatar Nov 30 '15 09:11 alexdima

@joesonw would you be able to share your project with me.

dbaeumer avatar Nov 30 '15 10:11 dbaeumer

I had same experience when completionItemProvider reject the promise. I'm not sure but It might be related to #693 .

okian avatar Nov 30 '15 11:11 okian

@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) [4363:1130/154007:INFO:CONSOLE(48)] "Error: Promise did not implement oncancel", source: file:////home/user/vscode/out/vs/base/common/winjs.base.js (48)

okian avatar Nov 30 '15 12:11 okian

@ucnc testing with with a 'plain' VSCode doesn't show any wired behavior nor output written to the log.

dbaeumer avatar Dec 02 '15 15:12 dbaeumer

Have you added a tsconfig.json file to the root of the project?

alexdresko avatar Dec 13 '15 16:12 alexdresko

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 :( VSCode Version is 0.10.10 on OS X Yousemite. PS in js files intellisense works fine

RANUX avatar Mar 13 '16 18:03 RANUX

@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 avatar Mar 14 '16 10:03 dbaeumer

@dbaeumer thanks for reply! But intellisense doesn't work for files listed in "files" section, that's my problem :(

RANUX avatar Mar 14 '16 18:03 RANUX

@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.

dbaeumer avatar Mar 15 '16 08:03 dbaeumer