Vscode-extension-for-zowe: Overwrite File Message - Do you want to overwrite changes made on file system?

Created on 20 Nov 2019  路  6Comments  路  Source: zowe/vscode-extension-for-zowe

In a Che Theia environment, the below message appears in Zowe Explorer after it had been left idle for a while. The message also appears after doing a screen refresh.

Attachment

280 Same message seen here.

Theia

Most helpful comment

Updates and Findings:

  • Changing the configuration target from Global to Local did not solve this issue. The same pop-up confirmation occurs, just pointing to a local file.
  • Changing the call to getConfiguration based on Theia API did not solve the issue.
  • Eclipse Theia team confirmed that this is a bug on Theia side and there is a planned fix for it.
  • I opened an issue in Theia repository (#6845) so I can track the fix there.
  • This issue will be moved to Backlog and closed when the Theia issue is resolved.

All 6 comments

I think this occurs due to usage of user (global) settings. The Zowe Explorer stores profile metadata in user settings, so the number of prompts you see upon refresh increase with the number of connection profiles managed in the Zowe explorer.

Can Zowe explorer profile metadata be stored in workspace (local) settings? Is it configurable? May be a good short-term workaround.

@crawr could you please assign this issue to a target milestone (1.1, 1.2, or 1.3)?

Changing the configuration from global to local will not prevent these pop-up error message.

Open questions and considerations:

  • Should this implementation of local config settings just be unique to a Theia route or should this be implemented to VSCode as well?
  • For persistence of profiles, can this settings file be tied to the .zowe folder?
  • Can the pop-ups be turned off by default and is it possible to be enabled again?
* Should this implementation of local config settings just be unique to a Theia route or should this be implemented to VSCode as well?

I would say, try it. I don't have any objections for the persisted values for favorites, history and sessions to become local particulalry if it means consistency between Theia and VSCode. I wouldn't want to touch anything else such as Zowe-Temp-Folder-Location as I don't understand it's use.

Updates and Findings:

  • Changing the configuration target from Global to Local did not solve this issue. The same pop-up confirmation occurs, just pointing to a local file.
  • Changing the call to getConfiguration based on Theia API did not solve the issue.
  • Eclipse Theia team confirmed that this is a bug on Theia side and there is a planned fix for it.
  • I opened an issue in Theia repository (#6845) so I can track the fix there.
  • This issue will be moved to Backlog and closed when the Theia issue is resolved.

Fixed by PR #7110 in Theia repository

The pop-up does not appear on startup, after session has been left idle for a while, and after screen refresh.

Was this page helpful?
0 / 5 - 0 ratings