mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
30970aed7d
commit
70738ed4f2
|
@ -48,7 +48,7 @@ const invokeCompletionContext: CompletionContext = {
|
|||
|
||||
suite('Tests for Expand Abbreviations (HTML)', () => {
|
||||
const oldValueForExcludeLanguages = workspace.getConfiguration('emmet').inspect('excludeLanguages');
|
||||
const oldValueForInlcudeLanguages = workspace.getConfiguration('emmet').inspect('includeLanguages');
|
||||
const oldValueForIncludeLanguages = workspace.getConfiguration('emmet', null).inspect('includeLanguages');
|
||||
teardown(closeAllEditors);
|
||||
|
||||
test('Expand snippets (HTML)', () => {
|
||||
|
@ -374,7 +374,7 @@ suite('Tests for Expand Abbreviations (HTML)', () => {
|
|||
await expandPromise;
|
||||
assert.strictEqual(editor.document.getText(), htmlContents.replace('span.bye', '<span class="bye"></span>'));
|
||||
});
|
||||
return workspace.getConfiguration('emmet').update('includeLanguages', oldValueForInlcudeLanguages || {}, ConfigurationTarget.Global);
|
||||
return workspace.getConfiguration('emmet').update('includeLanguages', oldValueForIncludeLanguages || {}, ConfigurationTarget.Global);
|
||||
});
|
||||
|
||||
test('Expand html in completion list when inside script tag with javascript type if js is mapped to html (HTML)', async () => {
|
||||
|
@ -399,7 +399,7 @@ suite('Tests for Expand Abbreviations (HTML)', () => {
|
|||
assert.strictEqual(((<string>emmetCompletionItem.documentation) || '').replace(/\|/g, ''), expandedText, `Docs of completion item doesnt match.`);
|
||||
return Promise.resolve();
|
||||
});
|
||||
return workspace.getConfiguration('emmet').update('includeLanguages', oldValueForInlcudeLanguages || {}, ConfigurationTarget.Global);
|
||||
return workspace.getConfiguration('emmet').update('includeLanguages', oldValueForIncludeLanguages || {}, ConfigurationTarget.Global);
|
||||
});
|
||||
|
||||
// test('No expanding when html is excluded in the settings', () => {
|
||||
|
|
|
@ -104,7 +104,7 @@ suite('Tests for Wrap with Abbreviations', () => {
|
|||
const multiCursorsWithSelection = [new Selection(2, 2, 2, 28), new Selection(3, 2, 3, 33), new Selection(4, 6, 4, 36)];
|
||||
const multiCursorsWithFullLineSelection = [new Selection(2, 0, 2, 28), new Selection(3, 0, 3, 33), new Selection(4, 0, 4, 36)];
|
||||
|
||||
const oldValueForSyntaxProfiles = workspace.getConfiguration('emmet').inspect('syntaxProfile');
|
||||
const oldValueForSyntaxProfiles = workspace.getConfiguration('emmet').inspect('syntaxProfiles');
|
||||
|
||||
test('Wrap with block element using multi cursor', () => {
|
||||
return testWrapWithAbbreviation(multiCursors, 'div', wrapBlockElementExpected, htmlContentsForBlockWrapTests);
|
||||
|
|
Loading…
Reference in a new issue