@@ -43,24 +43,24 @@ function getInvalidApplyDiagnostics(
43
43
let message : string
44
44
45
45
if ( Array . isArray ( meta ) ) {
46
- message = `\` @apply\` cannot be used with \`. ${ className } \` because it is included in multiple rulesets.`
46
+ message = `' @apply' cannot be used with ' ${ className } ' because it is included in multiple rulesets.`
47
47
} else if ( meta . source !== 'utilities' ) {
48
- message = `\` @apply\` cannot be used with \`. ${ className } \` because it is not a utility.`
48
+ message = `' @apply' cannot be used with ' ${ className } ' because it is not a utility.`
49
49
} else if ( meta . context && meta . context . length > 0 ) {
50
50
if ( meta . context . length === 1 ) {
51
- message = `\` @apply\` cannot be used with \`. ${ className } \` because it is nested inside of an at-rule (${ meta . context [ 0 ] } ).`
51
+ message = `' @apply' cannot be used with ' ${ className } ' because it is nested inside of an at-rule (' ${ meta . context [ 0 ] } ' ).`
52
52
} else {
53
- message = `\` @apply\` cannot be used with \`. ${ className } \` because it is nested inside of at-rules (${ meta . context . join (
54
- ', '
55
- ) } ).`
53
+ message = `' @apply' cannot be used with ' ${ className } ' because it is nested inside of at-rules (${ meta . context
54
+ . map ( ( c ) => `' ${ c } '` )
55
+ . join ( ', ' ) } ).`
56
56
}
57
57
} else if ( meta . pseudo && meta . pseudo . length > 0 ) {
58
58
if ( meta . pseudo . length === 1 ) {
59
- message = `\` @apply\` cannot be used with \`. ${ className } \` because its definition includes a pseudo-selector (${ meta . pseudo [ 0 ] } )`
59
+ message = `' @apply' cannot be used with ' ${ className } ' because its definition includes a pseudo-selector (' ${ meta . pseudo [ 0 ] } ' )`
60
60
} else {
61
- message = `\` @apply\` cannot be used with \`. ${ className } \` because its definition includes pseudo-selectors (${ meta . pseudo . join (
62
- ', '
63
- ) } )`
61
+ message = `' @apply' cannot be used with ' ${ className } ' because its definition includes pseudo-selectors (${ meta . pseudo
62
+ . map ( ( p ) => `' ${ p } '` )
63
+ . join ( ', ' ) } ). `
64
64
}
65
65
}
66
66
@@ -119,7 +119,7 @@ function getUtilityConflictDiagnostics(
119
119
severity === 'error'
120
120
? DiagnosticSeverity . Error
121
121
: DiagnosticSeverity . Warning ,
122
- message : `You can’t use \` ${ className . className } \` and \` ${ otherClassName . className } \` together ` ,
122
+ message : `' ${ className . className } ' and ' ${ otherClassName . className } ' apply the same CSS properties. ` ,
123
123
relatedInformation : [
124
124
{
125
125
message : otherClassName . className ,
0 commit comments