-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Intellisense autocomplete does not work well for JS #31233
Comments
Where is the type |
Yes it comes with Defined in file: |
Try using the module name when referencing types: /**
* @param {builder.Session} session
*/
function ReceiveMessage(/*Session*/session) {
session.send("You said: %s", session.message.text);
} Also try enabling JavaScript type checking to track down undefined type references |
Both does not work: |
Looks like microsoft/TypeScript#11825 These patterns should work: import * as builder from 'botbuilder';
/**
* @param {builder.Session} session
*/
function ReceiveMessage(session) {
session.send("You said: %s", session.message.text);
} or const {Session} = require('botbuilder');
/**
* @param {Session} session
*/
function ReceiveMessage(session) {
session.send("You said: %s", session.message.text);
} Closing as upstream |
Thanks! Works. |
And if I make |
Guys, please reopen this bug as the issue was not solved! Things works fine in IntelliJ IDEA and fails in VS Code. |
@akontsevich microsoft/TypeScript#11825 is tracking the issue with The unexpected token one seems unrelated. Does this reproduce with all extensions disabled? |
Yes, reproducible. |
Steps to Reproduce:
session
parameter.session
parameter (in ReceiveMessage() function) even with JSDoc definitions.VS Code for Node.js Development Quickstart Pack extension installed, does not work without it as well.
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: