Skip to content

Users cannot rename/delete directories because tsserver locks them #7762

Closed
@dbaeumer

Description

@dbaeumer

TypeScript Version:

1.8.9

To reproduce use VSCode from Insider Channel (https://code.visualstudio.com/Download#insiders)

  • create workspace
  • create tsconfig.json with content
{
    "compilerOptions": {
        "module": "commonjs"
    }
}
  • create test.ts with content
class A {   
}
  • create folder libs
  • create folder libs\superLib
  • create file libs\superLib\lib.d.ts with content
export function foo();
  • start VSCode
  • open test.ts
  • try to rename libs to libs2

Observer: you can't the directory is locked.

  • Use for example handle.exe from SysInternals or a process explorer to check who is holding a lock on the .\libs directory. It is the tsserver.

capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions