fix(language-core): optimize matching of scoped class and v-bind()
#6412
Annotations
13 errors
build (18, macos-latest)
Unused '@ts-expect-error' directive.
|
build (18, macos-latest)
Property 'foo' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.
|
build (18, macos-latest)
Property 'foo' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.
|
build (18, macos-latest)
Default export of the module has or is using private name 'Props'.
|
packages/language-service/tests/index.spec.ts > rename: css-vars > /Users/runner/work/language-tools/language-tools/test-workspace/language-service/rename/css-vars/input/entry.vue:2:7 => bar:
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/index.spec.ts > rename: css-vars > /Users/runner/work/language-tools/language-tools/test-workspace/language-service/rename/css-vars/input/entry.vue:2:8 => bar:
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/index.spec.ts > rename: css-vars > /Users/runner/work/language-tools/language-tools/test-workspace/language-service/rename/css-vars/input/entry.vue:2:9 => bar:
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/index.spec.ts > rename: css-vars > /Users/runner/work/language-tools/language-tools/test-workspace/language-service/rename/css-vars/input/entry.vue:2:10 => bar:
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
|
build (18, macos-latest)
Process completed with exit code 1.
|
build (18, windows-latest)
The job was canceled because "_18_macos-latest" failed.
|
build (18, windows-latest)
The operation was canceled.
|
build (18, ubuntu-latest)
The job was canceled because "_18_macos-latest" failed.
|
build (18, ubuntu-latest)
The operation was canceled.
|