Skip to content

Prevent crash when loading workspace with deleted folder#3358

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3356-failed-to-watch-directory
Sep 28, 2023
Merged

Prevent crash when loading workspace with deleted folder#3358
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3356-failed-to-watch-directory

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

Fixes #3356

Signed-off-by: David Thompson davthomp@redhat.com

@datho7561
Copy link
Copy Markdown
Contributor Author

@dgolovin if you have time, could you please check if this fixes your issue?

@mohitsuman mohitsuman requested a review from dgolovin September 27, 2023 17:29
@datho7561 datho7561 force-pushed the 3356-failed-to-watch-directory branch from 1f3d1da to d519b80 Compare September 27, 2023 17:29
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 27, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (925263e) 36.96% compared to head (599352e) 37.01%.
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3358      +/-   ##
==========================================
+ Coverage   36.96%   37.01%   +0.05%     
==========================================
  Files          77       77              
  Lines        5367     5373       +6     
  Branches     1034     1035       +1     
==========================================
+ Hits         1984     1989       +5     
- Misses       3383     3384       +1     
Files Coverage Δ
src/serverlessFunction/functionModel.ts 35.89% <80.00%> (+3.95%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@datho7561 datho7561 requested a review from vrubezhny September 27, 2023 18:04
dgolovin
dgolovin previously approved these changes Sep 27, 2023
Copy link
Copy Markdown
Collaborator

@dgolovin dgolovin left a comment

Choose a reason for hiding this comment

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

Works for me.
See my comment about empty catch bloc added (fixing is optional).

Comment thread src/serverlessFunction/functionModel.ts Outdated
vrubezhny
vrubezhny previously approved these changes Sep 28, 2023
Copy link
Copy Markdown
Contributor

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

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

Looks good to me.

See @dgolovin's comment on file watcher setup error handling

Fixes redhat-developer#3356

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 dismissed stale reviews from vrubezhny and dgolovin via 599352e September 28, 2023 12:36
@datho7561 datho7561 force-pushed the 3356-failed-to-watch-directory branch from d519b80 to 599352e Compare September 28, 2023 12:36
@datho7561 datho7561 merged commit 83dac0f into redhat-developer:main Sep 28, 2023
@datho7561 datho7561 deleted the 3356-failed-to-watch-directory branch September 28, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extension fails to activate after installation from marketplace

3 participants