Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline mode #54831

Closed
wants to merge 22 commits into from
Closed

Offline mode #54831

wants to merge 22 commits into from

Conversation

ramya-rao-a
Copy link
Contributor

@ramya-rao-a ramya-rao-a commented Jul 23, 2018

This PR implements features detailed in #54354

Adding below folks as reviewers
@sbatten for Menu entries
@joaomoreno for vscode updates
@sandy081 for extension view and updates
@JacksonKearl for extension recommendations
@mjbvz for Release notes and logUploader

Pending items to be taken up in another PR

  • Disabling bing powered settings search in offline mode
  • Disabling the badges denoting existence of updates
  • Fix the issue with the update entries in the menus
  • Ensure built in extensions comply with offline mode

@ramya-rao-a ramya-rao-a self-assigned this Jul 23, 2018
@sbatten
Copy link
Member

sbatten commented Jul 24, 2018

menu stuff LGTM


run(): TPromise<any> {
if (this.storageService.getBoolean(this.disclaimerStorageKey, StorageScope.GLOBAL, false) === false) {
this.notificationService.prompt(Severity.Info, localize('offlineModeDisclaimer', "VS Code cannot stop extensions from making network requests in offline mode. If extensions make such requests, please log an issue against them."), [
Copy link
Collaborator

@mjbvz mjbvz Jul 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way for extensions to check if the user is in offline mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjbvz Yes, they can look at the value for the workbench.enableOfflineMode setting. I havent yet gone through built-in extensions to ensure they are able to comply with the offline mode. That will be another PR.

Copy link
Collaborator

@mjbvz mjbvz Jul 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so that will added to vscode.d.ts? Or read the setting value directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the setting value directly

Copy link
Collaborator

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release notes changes look good. Thanks!

@JacksonKearl
Copy link
Contributor

Extensions looks good.

},
'workbench.enableOfflineMode': {
'type': 'boolean',
'description': nls.localize('settingsOfflineMode', "Enables offline mode where no requests are made over the network by VS Code."),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this wording should be changed to say that no requests are made to Microsoft, as we do still make requests to SCM providers, and there's nothing we can do to stop extensions (so far as I know)

@ramya-rao-a
Copy link
Contributor Author

Abandoning this PR as per #54354 (comment)

@ramya-rao-a ramya-rao-a deleted the offline-mode branch July 25, 2018 02:37
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants