[css] .asar file breaks CSS path completion. Fixes #46638

This commit is contained in:
Martin Aeschlimann
2018-03-28 21:39:44 +02:00
parent 9e0374f29f
commit d9d762d1ce
4 changed files with 34 additions and 4 deletions

View File

@@ -77,5 +77,19 @@ suite('Completions', () => {
{ label: 'src/', resultText: `html { background-image: url('../src/')` }
]
}, testUri);
assertCompletions(`html { background-image: url('../src/a|')`, {
items: [
{ label: 'feature.js', resultText: `html { background-image: url('../src/feature.js')` },
{ label: 'data/', resultText: `html { background-image: url('../src/data/')` },
{ label: 'test.js', resultText: `html { background-image: url('../src/test.js')` }
]
}, testUri);
assertCompletions(`html { background-image: url('../src/data/f|.asar')`, {
items: [
{ label: 'foo.asar', resultText: `html { background-image: url('../src/data/foo.asar')` }
]
}, testUri);
});
});