Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Aug 25, 2024
1 parent c392bfb commit 3584e49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/language-server/tests/renaming.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ describe('Renaming', async () => {

const position = document.positionAt(offset);
const edit = await server.sendRenameRequest(document.uri, position, newName);
expect(edit).toBeDefined();
expect(edit?.changes).toBeDefined();

for (const [uri, edits] of Object.entries(edit!.changes!)) {
delete edit!.changes![uri];
Expand Down
4 changes: 2 additions & 2 deletions test-workspace/tsc/passedFixtures/vue3.5/#3779/named.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import { exactType } from '../../shared';
const props = defineProps<{
defineProps<{
optionalBoolean?: boolean;
}>();
</script>

<template>
<h1>{{ exactType(optionalBoolean, true as boolean) }}</h1>
<h1>{{ exactType(optionalBoolean, {} as boolean | undefined) }}</h1>
</template>
1 change: 1 addition & 0 deletions test-workspace/tsc/passedFixtures/vue3.5/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.base.json",
"vueCompilerOptions": {
"lib": "vue3.5",
"target": 3.5,
},
"include": [
Expand Down

0 comments on commit 3584e49

Please sign in to comment.