Skip to content
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

Closed
joesonw opened this issue Nov 30, 2015 · 12 comments
Closed

No Intellisense with typescript #812

joesonw opened this issue Nov 30, 2015 · 12 comments
Assignees
Labels
info-needed Issue requires more information from poster typescript Typescript support issues verified Verification succeeded
Milestone

Comments

@joesonw
Copy link

joesonw commented Nov 30, 2015

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.

@alexdima alexdima added the info-needed Issue requires more information from poster label Nov 30, 2015
@alexdima
Copy link
Member

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

@joesonw
Copy link
Author

joesonw commented Nov 30, 2015

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

@alexdima
Copy link
Member

CCing @dbaeumer who might help you pinpoint the failure better

@dbaeumer
Copy link
Member

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

@dbaeumer dbaeumer added the typescript Typescript support issues label Nov 30, 2015
@okian
Copy link

okian commented Nov 30, 2015

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

@okian
Copy link

okian commented Nov 30, 2015

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

@dbaeumer
Copy link
Member

dbaeumer commented Dec 2, 2015

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

@egamma egamma modified the milestone: Backlog Dec 10, 2015
@alexdresko
Copy link

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

@RANUX
Copy link

RANUX commented Mar 13, 2016

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

@dbaeumer
Copy link
Member

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

@RANUX
Copy link

RANUX commented Mar 14, 2016

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

@dbaeumer
Copy link
Member

@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 dbaeumer added the verified Verification succeeded label May 27, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster typescript Typescript support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants