@lvce-editor/problems-view 1.34.0 → 1.34.1

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.
@@ -2351,7 +2351,7 @@ const getProblems = async (workspaceUri, activeUri) => {
2351
2351
  };
2352
2352
  } catch (error) {
2353
2353
  return {
2354
- error: `${error}`,
2354
+ error: String(error),
2355
2355
  problems: []
2356
2356
  };
2357
2357
  }
@@ -3219,7 +3219,7 @@ const getBadgeVirtualDom = (className, count) => {
3219
3219
  childCount: 1,
3220
3220
  className: mergeClassNames('Badge', className) + (''),
3221
3221
  type: Div
3222
- }, text(`${count}`)];
3222
+ }, text(String(count))];
3223
3223
  };
3224
3224
 
3225
3225
  const getChevronDownVirtualDom = (extraClassName = '') => {
@@ -3269,7 +3269,7 @@ const getProblemsIconVirtualDom = type => {
3269
3269
  const getProblemSourceDetail = (source, code) => {
3270
3270
  let message = '';
3271
3271
  if (source) {
3272
- message += `${source}`;
3272
+ message += source;
3273
3273
  }
3274
3274
  if (code) {
3275
3275
  message += `(${code})`;
@@ -3326,17 +3326,18 @@ const getProblemVirtualDom = problem => {
3326
3326
  className = mergeClassNames(className, ProblemSelected);
3327
3327
  }
3328
3328
  if (listItemType === Expanded || listItemType === Collapsed) {
3329
+ const fileIconDom = icon ? [getFileIconVirtualDom(icon)] : [];
3329
3330
  return [{
3330
3331
  ariaExpanded: !isCollapsed,
3331
3332
  ariaLevel: level,
3332
3333
  ariaPosInSet: posInSet,
3333
3334
  ariaSelected: isActive,
3334
3335
  ariaSetSize: setSize,
3335
- childCount: 5,
3336
+ childCount: 4 + fileIconDom.length,
3336
3337
  className,
3337
3338
  role: TreeItem,
3338
3339
  type: Div
3339
- }, listItemType === Collapsed ? getChevronRightVirtualDom() : getChevronDownVirtualDom(), getFileIconVirtualDom(icon), {
3340
+ }, listItemType === Collapsed ? getChevronRightVirtualDom() : getChevronDownVirtualDom(), ...fileIconDom, {
3340
3341
  ...labelNode,
3341
3342
  'data-uri': uri,
3342
3343
  onClick: HandleFileNameClick
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/problems-view",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "description": "Problems View Worker",
5
5
  "repository": {
6
6
  "type": "git",