policies.patch 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. diff --git a/build/.moduleignore b/build/.moduleignore
  2. index 01541e8..5b67f2b 100644
  3. --- a/build/.moduleignore
  4. +++ b/build/.moduleignore
  5. @@ -120,9 +120,11 @@ vsda/**
  6. -@vscode/policy-watcher/build/**
  7. -@vscode/policy-watcher/.husky/**
  8. -@vscode/policy-watcher/src/**
  9. -@vscode/policy-watcher/binding.gyp
  10. -@vscode/policy-watcher/README.md
  11. -@vscode/policy-watcher/index.d.ts
  12. -!@vscode/policy-watcher/build/Release/vscode-policy-watcher.node
  13. +@vscodium/policy-watcher/.github/**
  14. +@vscodium/policy-watcher/.husky/**
  15. +@vscodium/policy-watcher/build/**
  16. +@vscodium/policy-watcher/src/**
  17. +@vscodium/policy-watcher/.release-it.yml
  18. +@vscodium/policy-watcher/binding.gyp
  19. +@vscodium/policy-watcher/README.md
  20. +@vscodium/policy-watcher/index.d.ts
  21. +!@vscodium/policy-watcher/build/Release/vscode-policy-watcher.node
  22. diff --git a/build/lib/policies.js b/build/lib/policies.js
  23. index 1560dc7..07c7348 100644
  24. --- a/build/lib/policies.js
  25. +++ b/build/lib/policies.js
  26. @@ -61,3 +61,3 @@ class BasePolicy {
  27. return [
  28. - `<policy name="${this.name}" class="Both" displayName="$(string.${this.name})" explainText="$(string.${this.name}_${this.description.nlsKey.replace(/\./g, '_')})" key="Software\\Policies\\Microsoft\\${regKey}" presentation="$(presentation.${this.name})">`,
  29. + `<policy name="${this.name}" class="Both" displayName="$(string.${this.name})" explainText="$(string.${this.name}_${this.description.nlsKey.replace(/\./g, '_')})" key="Software\\Policies\\VSCodium\\${regKey}" presentation="$(presentation.${this.name})">`,
  30. ` <parentCategory ref="${this.category.name.nlsKey}" />`,
  31. @@ -373,3 +373,3 @@ function renderADMX(regKey, versions, categories, policies) {
  32. <policyNamespaces>
  33. - <target prefix="${regKey}" namespace="Microsoft.Policies.${regKey}" />
  34. + <target prefix="${regKey}" namespace="VSCodium.Policies.${regKey}" />
  35. </policyNamespaces>
  36. diff --git a/build/lib/policies.ts b/build/lib/policies.ts
  37. index f602c8a..11919c9 100644
  38. --- a/build/lib/policies.ts
  39. +++ b/build/lib/policies.ts
  40. @@ -80,3 +80,3 @@ abstract class BasePolicy implements Policy {
  41. return [
  42. - `<policy name="${this.name}" class="Both" displayName="$(string.${this.name})" explainText="$(string.${this.name}_${this.description.nlsKey.replace(/\./g, '_')})" key="Software\\Policies\\Microsoft\\${regKey}" presentation="$(presentation.${this.name})">`,
  43. + `<policy name="${this.name}" class="Both" displayName="$(string.${this.name})" explainText="$(string.${this.name}_${this.description.nlsKey.replace(/\./g, '_')})" key="Software\\Policies\\VSCodium\\${regKey}" presentation="$(presentation.${this.name})">`,
  44. ` <parentCategory ref="${this.category.name.nlsKey}" />`,
  45. @@ -553,3 +553,3 @@ function renderADMX(regKey: string, versions: string[], categories: Category[],
  46. <policyNamespaces>
  47. - <target prefix="${regKey}" namespace="Microsoft.Policies.${regKey}" />
  48. + <target prefix="${regKey}" namespace="VSCodium.Policies.${regKey}" />
  49. </policyNamespaces>
  50. diff --git a/package-lock.json b/package-lock.json
  51. index 99a6c49..0997218 100644
  52. --- a/package-lock.json
  53. +++ b/package-lock.json
  54. @@ -18,3 +18,2 @@
  55. "@vscode/iconv-lite-umd": "0.7.0",
  56. - "@vscode/policy-watcher": "^1.1.8",
  57. "@vscode/proxy-agent": "^0.30.0",
  58. @@ -29,2 +28,3 @@
  59. "@vscode/windows-registry": "^1.1.0",
  60. + "@vscodium/policy-watcher": "^1.1.8-2501211616",
  61. "@xterm/addon-clipboard": "^0.2.0-beta.79",
  62. @@ -2830,22 +2830,2 @@
  63. },
  64. - "node_modules/@vscode/policy-watcher": {
  65. - "version": "1.1.8",
  66. - "resolved": "https://registry.npmjs.org/@vscode/policy-watcher/-/policy-watcher-1.1.8.tgz",
  67. - "integrity": "sha512-IFT3eIPLIcjjgyOUBvbxfKlqTjSDJU+ZJrTlrgdjZrwS3HRLexAMTCfmBqIgZ+vS5N9QWtQW0yp8vX8UJv8JFg==",
  68. - "hasInstallScript": true,
  69. - "license": "MIT",
  70. - "dependencies": {
  71. - "bindings": "^1.5.0",
  72. - "node-addon-api": "^8.2.0"
  73. - }
  74. - },
  75. - "node_modules/@vscode/policy-watcher/node_modules/node-addon-api": {
  76. - "version": "8.2.0",
  77. - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.2.0.tgz",
  78. - "integrity": "sha512-qnyuI2ROiCkye42n9Tj5aX1ns7rzj6n7zW1XReSnLSL9v/vbLeR6fJq6PU27YU/ICfYw6W7Ouk/N7cysWu/hlw==",
  79. - "license": "MIT",
  80. - "engines": {
  81. - "node": "^18 || ^20 || >= 21"
  82. - }
  83. - },
  84. "node_modules/@vscode/proxy-agent": {
  85. @@ -3264,2 +3244,22 @@
  86. },
  87. + "node_modules/@vscodium/policy-watcher": {
  88. + "version": "1.1.8-2501211616",
  89. + "resolved": "https://registry.npmjs.org/@vscodium/policy-watcher/-/policy-watcher-1.1.8-2501211616.tgz",
  90. + "integrity": "sha512-zrMcMkvh4D7Kicwz/Z/6Nm4FsCLrDIhjLZswzBMlZhTH1vP4XhEBYsic7j/RSgeCPCUxkBQx7c9io3yVovy2HA==",
  91. + "hasInstallScript": true,
  92. + "license": "MIT",
  93. + "dependencies": {
  94. + "bindings": "^1.5.0",
  95. + "node-addon-api": "^8.2.0"
  96. + }
  97. + },
  98. + "node_modules/@vscodium/policy-watcher/node_modules/node-addon-api": {
  99. + "version": "8.3.0",
  100. + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.3.0.tgz",
  101. + "integrity": "sha512-8VOpLHFrOQlAH+qA0ZzuGRlALRA6/LVh8QJldbrC4DY0hXoMP0l4Acq8TzFC018HztWiRqyCEj2aTWY2UvnJUg==",
  102. + "license": "MIT",
  103. + "engines": {
  104. + "node": "^18 || ^20 || >= 21"
  105. + }
  106. + },
  107. "node_modules/@webassemblyjs/ast": {
  108. diff --git a/package.json b/package.json
  109. index 2a79290..a924360 100644
  110. --- a/package.json
  111. +++ b/package.json
  112. @@ -76,3 +76,3 @@
  113. "@vscode/iconv-lite-umd": "0.7.0",
  114. - "@vscode/policy-watcher": "^1.1.8",
  115. + "@vscodium/policy-watcher": "^1.1.8-2501211616",
  116. "@vscode/proxy-agent": "^0.30.0",
  117. diff --git a/src/vs/platform/policy/node/nativePolicyService.ts b/src/vs/platform/policy/node/nativePolicyService.ts
  118. index 67f7892..5b8859c 100644
  119. --- a/src/vs/platform/policy/node/nativePolicyService.ts
  120. +++ b/src/vs/platform/policy/node/nativePolicyService.ts
  121. @@ -8,3 +8,3 @@ import { IStringDictionary } from '../../../base/common/collections.js';
  122. import { Throttler } from '../../../base/common/async.js';
  123. -import type { PolicyUpdate, Watcher } from '@vscode/policy-watcher';
  124. +import type { PolicyUpdate, Watcher } from '@vscodium/policy-watcher';
  125. import { MutableDisposable } from '../../../base/common/lifecycle.js';
  126. @@ -27,3 +27,3 @@ export class NativePolicyService extends AbstractPolicyService implements IPolic
  127. - const { createWatcher } = await import('@vscode/policy-watcher');
  128. + const { createWatcher } = await import('@vscodium/policy-watcher');
  129. @@ -31,3 +31,3 @@ export class NativePolicyService extends AbstractPolicyService implements IPolic
  130. try {
  131. - this.watcher.value = createWatcher(this.productName, policyDefinitions, update => {
  132. + this.watcher.value = createWatcher('VSCodium', this.productName, policyDefinitions, update => {
  133. this._onDidPolicyChange(update);