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

Basic Instance.new completion #26

Open
Kampfkarren opened this issue Nov 28, 2019 · 1 comment
Open

Basic Instance.new completion #26

Kampfkarren opened this issue Nov 28, 2019 · 1 comment
Labels
enhancement New feature or request scope: ts

Comments

@Kampfkarren
Copy link
Owner

local part = Instance.new("Part")
part.

It should auto fill properties from Part there.

@JohnnyMorganz
Copy link
Contributor

The simplest way to go about this is similar to how GetService and required module auto fills are currently done, by searching the document to find if the variable has been defined and where.
However, this means that there is no support for context - you don’t know if the variable was defined in the current scope and can still be accessed - it will just always prompt those properties.

I guess it could just be published like above, and hope it works for most cases, depends if you want something there rather than nothing at all.

I don’t know what the alternative would be at the moment, maybe using the companion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope: ts
Projects
None yet
Development

No branches or pull requests

2 participants