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

support goToDefinition also for less #192

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

mariusGundersen
Copy link
Contributor

This adds support for sourcemaps for less as well.

@@ -85,6 +86,9 @@ export const getCssExports = ({
if (output === undefined) {
throw new Error('No Less output.');
}

// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
Copy link
Owner

Choose a reason for hiding this comment

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

Are the types wrong here? Did you encounter a situation where this could be falsey?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Less.RenderOutput.map is typed as string, but it can output undefined, so yes, the types are wrong.

mrmckeb
mrmckeb previously approved these changes Feb 18, 2023
@mrmckeb
Copy link
Owner

mrmckeb commented Feb 18, 2023

Thanks for this! I'm currently doing a big refactor, but will merge and release this by the end of the weekend.

@mrmckeb mrmckeb closed this Feb 18, 2023
@mrmckeb mrmckeb reopened this Feb 18, 2023
@mrmckeb
Copy link
Owner

mrmckeb commented Feb 18, 2023

(I closed and reopened as the CI checks wouldn't run for some reason)

@mrmckeb mrmckeb merged commit e570031 into mrmckeb:main Feb 18, 2023
calvellido pushed a commit to arrow-kt/arrow-website that referenced this pull request Feb 20, 2023
[![Mend
Renovate](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)
| [`4.1.1` ->
`4.2.2`](https://renovatebot.com/diffs/npm/typescript-plugin-css-modules/4.1.1/4.2.2)
|
[![age](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/4.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/4.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/4.2.2/compatibility-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/typescript-plugin-css-modules/4.2.2/confidence-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mrmckeb/typescript-plugin-css-modules</summary>

###
[`v4.2.2`](https://togithub.com/mrmckeb/typescript-plugin-css-modules/releases/tag/v4.2.2)

[Compare
Source](https://togithub.com/mrmckeb/typescript-plugin-css-modules/compare/v4.2.1...v4.2.2)

**Bug fixes:**

- Fix potentially fatal CSS classname regexp bug
([@&#8203;mrmckeb](https://togithub.com/mrmckeb),
[mrmckeb/typescript-plugin-css-modules#205).

**Full changelog**:
mrmckeb/typescript-plugin-css-modules@v4.2.1...v4.2.2

###
[`v4.2.1`](https://togithub.com/mrmckeb/typescript-plugin-css-modules/releases/tag/v4.2.1)

[Compare
Source](https://togithub.com/mrmckeb/typescript-plugin-css-modules/compare/v4.2.0...v4.2.1)

**Bug fixes:**

- Correct `additionalData` typo
([@&#8203;mrmckeb](https://togithub.com/mrmckeb),
[mrmckeb/typescript-plugin-css-modules#204).

**Full changelog**:
mrmckeb/typescript-plugin-css-modules@v4.2.0...v4.2.1

###
[`v4.2.0`](https://togithub.com/mrmckeb/typescript-plugin-css-modules/releases/tag/v4.2.0)

[Compare
Source](https://togithub.com/mrmckeb/typescript-plugin-css-modules/compare/v4.1.1...v4.2.0)

**New features:**

- Add Less support for `goToDefinition`
([@&#8203;mariusGundersen](https://togithub.com/mariusGundersen),
[mrmckeb/typescript-plugin-css-modules#192).
- Add `additionalData` option to append text content to files before
they're processed ([@&#8203;mrmckeb](https://togithub.com/mrmckeb),
[mrmckeb/typescript-plugin-css-modules#203).

**Bug fixes:**

- Fix Sass tilde importer partial support
([@&#8203;dennispg](https://togithub.com/dennispg),
[mrmckeb/typescript-plugin-css-modules#193).

**Other:**

- Remove unsupported `postcss-*` packages
([@&#8203;mrmckeb](https://togithub.com/mrmckeb),
[mrmckeb/typescript-plugin-css-modules#201).
- Improve `goToDefinition` documentation and add additional tests
([@&#8203;mrmckeb](https://togithub.com/mrmckeb),
[mrmckeb/typescript-plugin-css-modules#202).

**New contributors**

- [@&#8203;mariusGundersen](https://togithub.com/mariusGundersen) made
their first contribution in
[mrmckeb/typescript-plugin-css-modules#192
- [@&#8203;dennispg](https://togithub.com/dennispg) made their first
contribution in
[mrmckeb/typescript-plugin-css-modules#193

**Full changelog**:
mrmckeb/typescript-plugin-css-modules@v4.1.1...v4.2.0

</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 you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/arrow-kt/arrow-website).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE0Ni4xIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

2 participants