Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get container after Workbench is mounted #848

Merged
merged 5 commits into from
Mar 29, 2023
Merged

Conversation

wewoor
Copy link
Collaborator

@wewoor wewoor commented Feb 23, 2023

Description

Refactor the initial logic of monacoService. the initWorkspace method depends on the container property of layoutService, but the container should be set after the Workbench component is mounted.

Fixes #846

Changes

@wewoor wewoor changed the title fix: get container after Workbench did mount fix: get container after Workbench is mounted Feb 23, 2023
@wewoor wewoor requested a review from mortalYoung February 23, 2023 07:50
@wewoor wewoor added the bug Something isn't working label Feb 23, 2023
@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (5629316) 91.05% compared to head (b89a631) 91.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #848      +/-   ##
==========================================
+ Coverage   91.05%   91.06%   +0.01%     
==========================================
  Files         188      188              
  Lines        6071     6078       +7     
  Branches     1476     1476              
==========================================
+ Hits         5528     5535       +7     
  Misses        537      537              
  Partials        6        6              
Impacted Files Coverage Δ
src/model/workbench/layout.ts 100.00% <ø> (ø)
src/controller/layout.ts 100.00% <100.00%> (ø)
src/provider/create.ts 100.00% <100.00%> (ø)
src/services/instanceService.tsx 100.00% <100.00%> (ø)
src/services/workbench/layoutService.ts 100.00% <100.00%> (ø)
src/workbench/workbench.tsx 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wewoor wewoor force-pushed the fix/quickAccessPosition branch from 5f13ec2 to b89a631 Compare March 27, 2023 03:27
Copy link
Collaborator

@mortalYoung mortalYoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wewoor wewoor merged commit 222e536 into main Mar 29, 2023
@wewoor wewoor deleted the fix/quickAccessPosition branch March 29, 2023 02:09
wewoor added a commit that referenced this pull request Apr 3, 2023
* feat: support onWorkbenchDidMount event

* test: unit test for onWorkbenchDidMount event

* fix: initWorkspace after workbench did mount

* feat: add EmbeddedWorkbench example

* fix: rename standalone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: the position of QuickAccess component in embedded pages is not correct.
2 participants