-
Notifications
You must be signed in to change notification settings - Fork 236
Offer completion on non-imported items. #327
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
Comments
Do you mean something like C#'s "add references"? Or do you mean like completion in the following scenario? import { } from /*cursor here*/ |
Sorry, I could've been more specific. What I mean is, say I have this class in module my_module {
export class MyClass {}
} Then in module my_other_module {
export class MyOtherClass{
public method() : void {
var myClass = new MyCla /* Now show completions for MyClass - my_module */
}
}
} Upon hitting enter, an import statement (based on the current module type) would be inserted to the top of the module like so... module my_other_module {
import MyClass = my_module.MyClass;
export class MyOtherClass{
public method() : void {
var myClass = new MyClass();
}
}
} It seems to me that sublime is all about speed and simplicity. Having to move to the top of the file during authoring breaks your flow, doesn't it, so something like this would be fantastic at helping you keep up the pace. Thanks! |
Closing in favor of microsoft/TypeScript#4370. Thanks for the suggestion. |
Cheers |
So essentially an 'auto import' feature for classes within modules/namespaces that are accessible in the current context.
This would be a massive time saver. I realize there are multiple ways to do
import
's now, but the type of import could be inferred from themodule
type in tsconfig.Cheers
The text was updated successfully, but these errors were encountered: