146
147
if (configuredExtensionKind && configuredExtensionKind.length > 0) {
149
>
for (const extensionKind of configuredExtensionKind) {
150
>
if (extensionKind !== '-web') {
151
result.push(extensionKind);
152
}
154
>
155
>
// If opted out from web without specifying other extension kinds then default to ui, workspace
156
>
if (configuredExtensionKind.includes('-web') && !result.length) {
157
result.push('ui');
158
result.push('workspace');
159
}
161
>
// Add web kind if not opted out from web and can run in web
162
>
if (isWeb && !configuredExtensionKind.includes('-web') && !configuredExtensionKind.includes('web') && deducedExtensionKind.includes('web')) {
163
result.push('web');
164
}
166
>
return result;
167
>
}
168
169
return deducedExtensionKind;