Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: check if file exists before processing#218

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mrmckeb merged 3 commits intomrmckeb:mainfromadam-26:patch-1
Apr 10, 2023

Conversation

adam-26
Copy link
Contributor

@adam-26adam-26 commentedMar 29, 2023
edited
Loading

This prevents the VSCode plugin from crashing when an imported css/scss/etc... file does not exist.

A more elegant solution would be to check if the file exists before thereadFileSync call.

Will alsofix:#216

This prevents the VSCode plugin from crashing when an imported css/scss/etc... file does not exist.
mrmckeb
mrmckeb previously approved these changesApr 10, 2023
@mrmckeb
Copy link
Owner

Thanks for this, and sorry for the slow turnaround.

mrmckeb
mrmckeb previously approved these changesApr 10, 2023
@mrmckeb
Copy link
Owner

@adam-26, as there was a type issue I moved the check up to the plugin root, so we don't call the function if the file doesn't exist.

Thanks again for your help!

@mrmckebmrmckeb changed the titlefix: plugin crash when import does not existfix: check if file exists before processingApr 10, 2023
@mrmckebmrmckeb merged commitd7260e1 intomrmckeb:mainApr 10, 2023
calvellido referenced this pull request in arrow-kt/arrow-websiteApr 10, 2023
[![MendRenovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)This PR contains the following updates:| Package | Change | Age | Adoption | Passing | Confidence ||---|---|---|---|---|---||[typescript-plugin-css-modules](https://togithub.com/mrmckeb/typescript-plugin-css-modules)| [`5.0.0` ->`5.0.1`](https://renovatebot.com/diffs/npm/typescript-plugin-css-modules/5.0.0/5.0.1)|[![age](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/5.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/5.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/5.0.1/compatibility-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/5.0.1/confidence-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/)|---### Release Notes<details><summary>mrmckeb/typescript-plugin-css-modules</summary>###[`v5.0.1`](https://togithub.com/mrmckeb/typescript-plugin-css-modules/releases/tag/v5.0.1)[CompareSource](https://togithub.com/mrmckeb/typescript-plugin-css-modules/compare/v5.0.0...v5.0.1)**Bug fixes:**- fix: check if file exists before processing([@&#8203;adam-26](https://togithub.com/adam-26),[https://github.com/mrmckeb/typescript-plugin-css-modules/pull/218](https://togithub.com/mrmckeb/typescript-plugin-css-modules/pull/218)).**New contributors:**- [@&#8203;adam-26](https://togithub.com/adam-26) made their firstcontribution in[https://github.com/mrmckeb/typescript-plugin-css-modules/pull/218](https://togithub.com/mrmckeb/typescript-plugin-css-modules/pull/218).**Full changelog**:mrmckeb/typescript-plugin-css-modules@v5.0.0...v5.0.1</details>---### Configuration📅 **Schedule**: Branch creation - At any time (no schedule defined),Automerge - At any time (no schedule defined).🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR becomes conflicted, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.---- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, checkthis box---This PR has been generated by [MendRenovate](https://www.mend.io/free-developer-tools/renovate/). Viewrepository job log[here](https://app.renovatebot.com/dashboard#github/arrow-kt/arrow-website).<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS40MC4wIiwidXBkYXRlZEluVmVyIjoiMzUuNDAuMCJ9-->Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mrmckebmrmckebmrmckeb approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

When importing a non-existent index.module.less file, ts will crash.
2 participants
@adam-26@mrmckeb

[8]ページ先頭

©2009-2025 Movatter.jp