Skip to content

Autocompletion with quoted properties #9632

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

Closed
unional opened this issue Jul 12, 2016 · 2 comments
Closed

Autocompletion with quoted properties #9632

unional opened this issue Jul 12, 2016 · 2 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@unional
Copy link
Contributor

unional commented Jul 12, 2016

Don't know if this is too much to ask, but it would be nice. 🌷

export interface Config {
  files: ConfigFiles
}

export interface ConfigFiles {
  jspm: string;
  'jspm:browser': string;
  'jspm:dev': string;
  'jspm:node': string;
}

let configFiles: ConfigFiles;
configFile.jspm = '' // autocomplete works
configFiles['jspm:dev'] = '' // autocomplete possible?

let config: Config;
config = {
  files: {
    jspm: '' // autocomplete works
    'jspm:dev': '' // autocomplete possible?
} as Config;
@mhegazy
Copy link
Contributor

mhegazy commented Jul 12, 2016

This is a feature we added in TS 2.0, the first one works as expected, see screenshot, the second is not working but this is a bug, it should.

animation

@mhegazy mhegazy added the Bug A bug in TypeScript label Jul 12, 2016
@mhegazy mhegazy self-assigned this Jul 12, 2016
@mhegazy mhegazy added this to the TypeScript 2.0.1 milestone Jul 12, 2016
@unional
Copy link
Contributor Author

unional commented Jul 12, 2016

Nice! Thank. 🌷

@mhegazy mhegazy assigned ghost and unassigned mhegazy Jul 13, 2016
@mhegazy mhegazy modified the milestones: TypeScript 2.1, TypeScript 2.0.1 Jul 13, 2016
@mhegazy mhegazy assigned yuit and unassigned ghost Jul 13, 2016
@mhegazy mhegazy modified the milestones: TypeScript 2.0.1, TypeScript 2.1 Jul 13, 2016
@yuit yuit added the Fixed A PR has been merged for this issue label Jul 27, 2016
@yuit yuit closed this as completed Jul 27, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants