[css] fix path completion participant

This commit is contained in:
Martin Aeschlimann
2018-04-17 12:05:30 +02:00
parent 99f9459174
commit a509b1797b

View File

@@ -20,7 +20,7 @@ export function getPathCompletionParticipant(
result: CompletionList
): ICompletionParticipant {
return {
onURILiteralValue: ({ position, range, uriValue }) => {
onCssURILiteralValue: ({ position, range, uriValue }) => {
const isValueQuoted = startsWith(uriValue, `'`) || startsWith(uriValue, `"`);
const fullValue = stripQuotes(uriValue);
const valueBeforeCursor = isValueQuoted