fix(language-core): optimize matching of scoped class and v-bind()
#6411
Annotations
9 errors
Unused '@ts-expect-error' directive.
|
|
|
|
packages/language-service/tests/rename.ts#L60
AssertionError: expected '<script lang="ts" setup>\nconst bar =…' to be '<script lang="ts" setup>\nconst bar =…' // Object.is equality
- Expected
+ Received
<script lang="ts" setup>
const bar = 1;
// ^^^rename: bar
</script>
<style>
/* .bar { color: v-bind(foo); } */
.bar { color: v-bind(bar); }
/* ^^^rename: bar */
.bar { color: v-bind('bar'); }
.bar { color: v-bind("bar"); }
- .bar { color: v-bind(bar + bar); }
+ .bar { color: v-bind(foo + foo); }
.bar { color: v-bind('bar + bar'); }
.bar { color: v-bind("bar + bar"); }
.bar { color: v-bind(); }
</style>
<style lang="scss">
// .bar { color: v-bind(foo); }
</style>
❯ packages/language-service/tests/rename.ts:60:32
|
packages/language-service/tests/rename.ts#L60
AssertionError: expected '<script lang="ts" setup>\nconst bar =…' to be '<script lang="ts" setup>\nconst bar =…' // Object.is equality
- Expected
+ Received
<script lang="ts" setup>
const bar = 1;
// ^^^rename: bar
</script>
<style>
/* .bar { color: v-bind(foo); } */
.bar { color: v-bind(bar); }
/* ^^^rename: bar */
.bar { color: v-bind('bar'); }
.bar { color: v-bind("bar"); }
- .bar { color: v-bind(bar + bar); }
+ .bar { color: v-bind(foo + foo); }
.bar { color: v-bind('bar + bar'); }
.bar { color: v-bind("bar + bar"); }
.bar { color: v-bind(); }
</style>
<style lang="scss">
// .bar { color: v-bind(foo); }
</style>
❯ packages/language-service/tests/rename.ts:60:32
|
packages/language-service/tests/rename.ts#L60
AssertionError: expected '<script lang="ts" setup>\nconst bar =…' to be '<script lang="ts" setup>\nconst bar =…' // Object.is equality
- Expected
+ Received
<script lang="ts" setup>
const bar = 1;
// ^^^rename: bar
</script>
<style>
/* .bar { color: v-bind(foo); } */
.bar { color: v-bind(bar); }
/* ^^^rename: bar */
.bar { color: v-bind('bar'); }
.bar { color: v-bind("bar"); }
- .bar { color: v-bind(bar + bar); }
+ .bar { color: v-bind(foo + foo); }
.bar { color: v-bind('bar + bar'); }
.bar { color: v-bind("bar + bar"); }
.bar { color: v-bind(); }
</style>
<style lang="scss">
// .bar { color: v-bind(foo); }
</style>
❯ packages/language-service/tests/rename.ts:60:32
|
packages/language-service/tests/rename.ts#L60
AssertionError: expected '<script lang="ts" setup>\nconst bar =…' to be '<script lang="ts" setup>\nconst bar =…' // Object.is equality
- Expected
+ Received
<script lang="ts" setup>
const bar = 1;
// ^^^rename: bar
</script>
<style>
/* .bar { color: v-bind(foo); } */
.bar { color: v-bind(bar); }
/* ^^^rename: bar */
.bar { color: v-bind('bar'); }
.bar { color: v-bind("bar"); }
- .bar { color: v-bind(bar + bar); }
+ .bar { color: v-bind(foo + foo); }
.bar { color: v-bind('bar + bar'); }
.bar { color: v-bind("bar + bar"); }
.bar { color: v-bind(); }
</style>
<style lang="scss">
// .bar { color: v-bind(foo); }
</style>
❯ packages/language-service/tests/rename.ts:60:32
|
|
This job failed
Loading