2018-01-09 03:57:46 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////declare const x: { " foo": 0, "foo ": 1 };
|
|
|
|
////x[|./**/|];
|
|
|
|
|
|
|
|
const replacementSpan = test.ranges()[0];
|
|
|
|
// No completion for " foo" because it starts with a space. See https://github.com/Microsoft/TypeScript/pull/20547
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
|
|
|
exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan }],
|
|
|
|
preferences: { includeInsertTextCompletions: true },
|
|
|
|
});
|