theia-blueprint icon indicating copy to clipboard operation
theia-blueprint copied to clipboard

Problem opening files from File Explorer

Open xmelfos opened this issue 2 years ago • 1 comments

Bug Description:

Hello: I tried to open a php file from the file scan and opening the context menu to select with which application to open it. But selecting TheiaBluePrint only opens the editor but does not open the php file. I can only open it from the file menu of the TheiaBluePrint. I put together pictures to explain the problem.

Steps to Reproduce:

  1. Open File Exprorer
  2. Select a PhP file and check contextal menu to indicate "Open with" 3.Select TheiaBluePrint

ima1 ima2 ima3 ima4 ima5 ima6 ima7

Additional Information

  • Operating System: Windows 7 Prof
  • Theia Version:1.24.0

xmelfos avatar Apr 17 '22 17:04 xmelfos

Hi, thank you for the report. I can reproduce the issue. After a first investigation I think the issue is that Theia tries to parse the opened file as a workspace-configuration-file, which leads to a warning similar to this: root WARN Not a valid workspace file: /c:/Users/user/git/theia-blueprint/README.md Since the file is not a valid workspace file, parsing will fail, and it will open with an empty workspace. We'll have to check how Theia may support this

jfaltermeier avatar Apr 19 '22 07:04 jfaltermeier