* Allow quoted names in completions * Don't allow string literal completions if not in an object literal; and use string literals for number keys * Add TODO
24 lines
633 B
TypeScript
24 lines
633 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
//// export interface Config {
|
|
//// files: ConfigFiles
|
|
//// }
|
|
|
|
//// export interface ConfigFiles {
|
|
//// jspm: string;
|
|
//// 'jspm:browser': string;
|
|
//// 'jspm:dev': string;
|
|
//// 'jspm:node': string;
|
|
//// }
|
|
|
|
//// let config: Config;
|
|
//// config = {
|
|
//// files: {
|
|
//// /*0*/: '',
|
|
//// '/*1*/': ''
|
|
//// }
|
|
//// }
|
|
|
|
verify.completionsAt("0", ["jspm", '"jspm:browser"', '"jspm:dev"', '"jspm:node"'], { isNewIdentifierLocation: true });
|
|
verify.completionsAt("1", ["jspm", "jspm:browser", "jspm:dev", "jspm:node"], { isNewIdentifierLocation: true });
|