2018-02-06 18:28:03 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2018-03-20 21:07:59 +01:00
|
|
|
////declare const x: { "\"'": 0 };
|
2018-02-06 18:28:03 +01:00
|
|
|
////x[|./**/|];
|
|
|
|
|
|
|
|
const replacementSpan = test.ranges()[0];
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
|
|
|
exact: { name: `"'`, insertText: `["\\"'"]`, replacementSpan },
|
|
|
|
preferences: { includeInsertTextCompletions: true },
|
|
|
|
});
|
2018-03-20 21:07:59 +01:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
|
|
|
exact: { name: `"'`, insertText: `['"\\'']`, replacementSpan },
|
|
|
|
preferences: {
|
|
|
|
includeInsertTextCompletions: true,
|
|
|
|
quotePreference: "single",
|
|
|
|
},
|
2018-03-20 21:07:59 +01:00
|
|
|
});
|