mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Alternate fix for #34162 using minscore for fuzzymatching
This commit is contained in:
@@ -11,6 +11,7 @@ import { expandEmmetAbbreviation, wrapWithAbbreviation, wrapIndividualLinesWithA
|
||||
const cssContents = `
|
||||
.boo {
|
||||
margin: 20px 10px;
|
||||
m10
|
||||
background-image: url('tryme.png');
|
||||
m10
|
||||
}
|
||||
@@ -189,9 +190,9 @@ suite('Tests for Expand Abbreviations (CSS)', () => {
|
||||
|
||||
test('Expand abbreviation (CSS)', () => {
|
||||
return withRandomFileEditor(cssContents, 'css', (editor, doc) => {
|
||||
editor.selection = new Selection(4, 1, 4, 4);
|
||||
editor.selections = [new Selection(3, 1, 3, 4), new Selection(5, 1, 5, 4)];
|
||||
return expandEmmetAbbreviation(null).then(() => {
|
||||
assert.equal(editor.document.getText(), cssContents.replace('m10', 'margin: 10px;'));
|
||||
assert.equal(editor.document.getText(), cssContents.replace(/m10/g, 'margin: 10px;'));
|
||||
return Promise.resolve();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user