-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Offline mode #54831
Conversation
b755231
to
7fef11f
Compare
8849a67
to
35d20ed
Compare
d54056b
to
b6dd980
Compare
bc09c7b
to
67b0554
Compare
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."), [ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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!
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."), |
There was a problem hiding this comment.
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)
a3c2221
to
7d83013
Compare
Abandoning this PR as per #54354 (comment) |
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