vscode-css-languageservice 6.3.3-2 → 6.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,19 +119,18 @@ export function getBrowserLabel(browsers = []) {
119
119
  if (browsers.length === 0) {
120
120
  return null;
121
121
  }
122
- return browsers
123
- .map(b => {
124
- let result = '';
122
+ const entries = [];
123
+ for (const b of browsers) {
125
124
  const matches = b.match(/([A-Z]+)(\d+)?/);
126
125
  const name = matches[1];
127
126
  const version = matches[2];
128
127
  if (name in browserNames) {
129
- result += browserNames[name];
128
+ let result = browserNames[name];
129
+ if (version) {
130
+ result += ' ' + version;
131
+ }
132
+ entries.push(result);
130
133
  }
131
- if (version) {
132
- result += ' ' + version;
133
- }
134
- return result;
135
- })
136
- .join(', ');
134
+ }
135
+ return entries.join(', ');
137
136
  }
@@ -1,5 +1,5 @@
1
1
  // copied from js-beautify/js/lib/beautify-css.js
2
- // version: 1.15.1
2
+ // version: 1.15.4
3
3
  /* AUTO-GENERATED. DO NOT MODIFY. */
4
4
  /*
5
5
 
@@ -125,6 +125,7 @@ export interface IPropertyData {
125
125
  name: string;
126
126
  description?: string | MarkupContent;
127
127
  browsers?: string[];
128
+ baseline?: BaselineStatus;
128
129
  restrictions?: string[];
129
130
  status?: EntryStatus;
130
131
  syntax?: string;
@@ -137,6 +138,7 @@ export interface IAtDirectiveData {
137
138
  name: string;
138
139
  description?: string | MarkupContent;
139
140
  browsers?: string[];
141
+ baseline?: BaselineStatus;
140
142
  status?: EntryStatus;
141
143
  references?: IReference[];
142
144
  }
@@ -144,6 +146,7 @@ export interface IPseudoClassData {
144
146
  name: string;
145
147
  description?: string | MarkupContent;
146
148
  browsers?: string[];
149
+ baseline?: BaselineStatus;
147
150
  status?: EntryStatus;
148
151
  references?: IReference[];
149
152
  }
@@ -151,6 +154,7 @@ export interface IPseudoElementData {
151
154
  name: string;
152
155
  description?: string | MarkupContent;
153
156
  browsers?: string[];
157
+ baseline?: BaselineStatus;
154
158
  status?: EntryStatus;
155
159
  references?: IReference[];
156
160
  }
@@ -158,6 +162,7 @@ export interface IValueData {
158
162
  name: string;
159
163
  description?: string | MarkupContent;
160
164
  browsers?: string[];
165
+ baseline?: BaselineStatus;
161
166
  status?: EntryStatus;
162
167
  references?: IReference[];
163
168
  }
@@ -168,6 +173,12 @@ export interface CSSDataV1 {
168
173
  pseudoClasses?: IPseudoClassData[];
169
174
  pseudoElements?: IPseudoElementData[];
170
175
  }
176
+ export interface BaselineStatus {
177
+ status: Baseline;
178
+ baseline_low_date?: string;
179
+ baseline_high_date?: string;
180
+ }
181
+ export type Baseline = 'false' | 'low' | 'high';
171
182
  export interface ICSSDataProvider {
172
183
  provideProperties(): IPropertyData[];
173
184
  provideAtDirectives(): IAtDirectiveData[];