Skip to content

The problem of deleted file is still in problems panel. #1147

Closed
@zuoez02

Description

@zuoez02
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.16.2
  • VS Code version: 1.33.0-insider

Problem

The problems in deleted files are still exist in PROBLEMS panel.

Actually, it is also a bug on both code and code-insider. I just use code-insider as a clean version without other extensions.

Reproducible Case

  1. Generate a new vue project with vue-cli 3 with Typescript.
  2. Write a .vue file with problem.
<template>
<div>{{ hello }}</div>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';

@Component
export default class File extends Vue {
    public hello: string = 123;
}
</script>
  1. It said Type '123' is not assignable to type 'string'. in PROBLEM panel.
  2. Delete the file
  3. It is still there. Click the file and vscode says File not found
  4. Reload the Code and problem is not shown anymore.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions