mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 20:57:12 +00:00
dispose native policy service on shutdown
This commit is contained in:
@@ -133,8 +133,8 @@ class CliMain extends Disposable {
|
||||
fileService.registerProvider(Schemas.file, diskFileSystemProvider);
|
||||
|
||||
// Policy
|
||||
const policyService = isWindows && productService.win32RegValueName ? new NativePolicyService(productService.win32RegValueName)
|
||||
: environmentService.policyFile ? new FilePolicyService(environmentService.policyFile, fileService, logService)
|
||||
const policyService = isWindows && productService.win32RegValueName ? this._register(new NativePolicyService(productService.win32RegValueName))
|
||||
: environmentService.policyFile ? this._register(new FilePolicyService(environmentService.policyFile, fileService, logService))
|
||||
: new NullPolicyService();
|
||||
services.set(IPolicyService, policyService);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user