引擎未正确抛出错误信息

Open Beginner friendly
#3,036 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Open packages/shell/src/api/material.ts and inspect the code around line 36, especially the error path involving workspace.window.editor. Verify the reported failure when editor is absent, then confirm the guarded access prevents the incorrect error without changing normal behavior. Done means the relevant scenario no longer throws incorrectly.

Written by the indexing model from the issue text.

Description

引擎未正确抛出错误信息

image 代码地址: https://github.com/alibaba/lowcode-engine/blob/main/packages/shell/src/api/material.ts 地36行 image 是不是应该改成:

if (!workspace.window?.editor) {.....

加个问号好一点啊

Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from alibaba/lowcode-engine

All issues in alibaba/lowcode-engine

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.