eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.84k stars 2.48k forks source link

Plugin host `onDidCreateFiles` isn't fired when running `Save As` command #13688

Closed msujew closed 2 months ago

msujew commented 3 months ago

Bug Description:

I've noticed this while looking into https://github.com/eclipse-theia/theia/discussions/13687. The vscode.workspace.onDidCreateFiles event isn't fired when a new file is created in the workspace as part of a "Save As" operation.

Consumers (such as language servers) therefore aren't notified about these files.

Steps to Reproduce:

  1. Set a breakpoint here.
  2. Use the New File command.
  3. Save the untitled resource.
  4. The breakpoint isn't hit, the event doesn't fire.

Additional Information