vscode-eslint 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/bin/vscode-eslint +24 -1
  2. package/client/out/client.d.ts +13 -0
  3. package/client/out/extension.d.ts +3 -0
  4. package/client/out/extension.js +2 -0
  5. package/client/out/extension.js.map +1 -0
  6. package/client/out/node-utils.d.ts +51 -0
  7. package/client/out/settings.d.ts +41 -0
  8. package/client/out/shared/customMessages.d.ts +89 -0
  9. package/client/out/shared/settings.d.ts +106 -0
  10. package/client/out/tasks.d.ts +31 -0
  11. package/client/out/tests/glob.test.d.ts +1 -0
  12. package/client/out/vscode-utils.d.ts +5 -0
  13. package/package.json +8 -1
  14. package/server/out/diff.d.ts +134 -0
  15. package/server/out/eslint.d.ts +298 -0
  16. package/server/out/eslintServer.d.ts +1 -0
  17. package/server/out/eslintServer.js +2 -0
  18. package/server/out/eslintServer.js.map +1 -0
  19. package/server/out/is.d.ts +3 -0
  20. package/server/out/languageDefaults.d.ts +6 -0
  21. package/server/out/linkedMap.d.ts +53 -0
  22. package/server/out/paths.d.ts +22 -0
  23. package/server/out/shared/customMessages.d.ts +89 -0
  24. package/server/out/shared/settings.d.ts +106 -0
  25. package/$shared/customMessages.ts +0 -113
  26. package/$shared/settings.ts +0 -189
  27. package/.CodeQL.yml +0 -5
  28. package/.azure-pipelines.yml +0 -27
  29. package/.gemini/agents/vscode-eslint.md +0 -23
  30. package/.github/commands.yml +0 -127
  31. package/.github/locker.yml +0 -6
  32. package/.github/needs_more_info.yml +0 -6
  33. package/.github/workflows/npm-publish.yml +0 -53
  34. package/.github/workflows/release-please.yml +0 -22
  35. package/.lsifrc.json +0 -4
  36. package/.vscode/launch.json +0 -20
  37. package/.vscode/settings.json +0 -52
  38. package/.vscode/spellright.dict +0 -8
  39. package/.vscode/tasks.json +0 -39
  40. package/.vscodeignore +0 -23
  41. package/CHANGELOG.md +0 -524
  42. package/SECURITY.md +0 -41
  43. package/agents.md +0 -36
  44. package/build/azure-pipelines/linux/build.yml +0 -14
  45. package/build/azure-pipelines/pre-release.yml +0 -42
  46. package/build/azure-pipelines/release.yml +0 -45
  47. package/build/azure-pipelines/win32/build.yml +0 -14
  48. package/build/bin/all.js +0 -29
  49. package/build/bin/linking.js +0 -102
  50. package/build/bin/symlink.js +0 -35
  51. package/client/.mocharc.json +0 -6
  52. package/client/agents.md +0 -5
  53. package/client/package-lock.json +0 -176
  54. package/client/package.json +0 -29
  55. package/client/src/client.ts +0 -992
  56. package/client/src/extension.ts +0 -180
  57. package/client/src/node-utils.ts +0 -393
  58. package/client/src/settings.ts +0 -379
  59. package/client/src/tasks.ts +0 -186
  60. package/client/src/tests/glob.test.ts +0 -31
  61. package/client/src/vscode-utils.ts +0 -28
  62. package/client/test/mocha.opts +0 -3
  63. package/client/tsconfig.json +0 -20
  64. package/client/webpack.config.js +0 -25
  65. package/contributing.md +0 -19
  66. package/esbuild.js +0 -62
  67. package/eslint.config.js +0 -129
  68. package/history/settings_1_9_x.md +0 -110
  69. package/images/2_1_10/eslint-dialog.png +0 -0
  70. package/images/2_1_10/eslint-status.png +0 -0
  71. package/package-json-schema.json +0 -9
  72. package/playgrounds/7.0/.eslintignore +0 -1
  73. package/playgrounds/7.0/.eslintrc.json +0 -71
  74. package/playgrounds/7.0/.vscode/settings.json +0 -85
  75. package/playgrounds/7.0/app.js +0 -12
  76. package/playgrounds/7.0/build/.eslintignore +0 -1
  77. package/playgrounds/7.0/build/.eslintrc.json +0 -30
  78. package/playgrounds/7.0/build/build.js +0 -11
  79. package/playgrounds/7.0/jsconfig.json +0 -5
  80. package/playgrounds/7.0/package-lock.json +0 -2133
  81. package/playgrounds/7.0/package.json +0 -10
  82. package/playgrounds/7.0/readme.md +0 -0
  83. package/playgrounds/7.0/subDir/sub.js +0 -11
  84. package/playgrounds/7.0/subDir/test.jsx +0 -10
  85. package/playgrounds/7.0/test.js +0 -11
  86. package/playgrounds/7.0/test.sh +0 -1
  87. package/playgrounds/7.0/test.vue +0 -33
  88. package/playgrounds/7.0/test2.html +0 -8
  89. package/playgrounds/8.0/.eslintignore +0 -1
  90. package/playgrounds/8.0/.eslintrc.json +0 -71
  91. package/playgrounds/8.0/.vscode/settings.json +0 -91
  92. package/playgrounds/8.0/app.js +0 -12
  93. package/playgrounds/8.0/build/.eslintignore +0 -1
  94. package/playgrounds/8.0/build/.eslintrc.json +0 -30
  95. package/playgrounds/8.0/build/build.js +0 -11
  96. package/playgrounds/8.0/jsconfig.json +0 -5
  97. package/playgrounds/8.0/package-lock.json +0 -2321
  98. package/playgrounds/8.0/package.json +0 -10
  99. package/playgrounds/8.0/readme.md +0 -17
  100. package/playgrounds/8.0/subDir/sub.js +0 -11
  101. package/playgrounds/8.0/subDir/test.jsx +0 -10
  102. package/playgrounds/8.0/test.ipynb +0 -49
  103. package/playgrounds/8.0/test.js +0 -3
  104. package/playgrounds/8.0/test.sh +0 -1
  105. package/playgrounds/8.0/test.vue +0 -33
  106. package/playgrounds/8.0/test2.html +0 -8
  107. package/playgrounds/9.0/flat/.vscode/settings.json +0 -3
  108. package/playgrounds/9.0/flat/app.js +0 -12
  109. package/playgrounds/9.0/flat/dist/ignore.js +0 -12
  110. package/playgrounds/9.0/flat/eslint.config.js +0 -61
  111. package/playgrounds/9.0/flat/package-lock.json +0 -1053
  112. package/playgrounds/9.0/flat/package.json +0 -9
  113. package/playgrounds/9.0/rc/.eslintrc.json +0 -57
  114. package/playgrounds/9.0/rc/.vscode/settings.json +0 -3
  115. package/playgrounds/9.0/rc/app.js +0 -12
  116. package/playgrounds/9.0/rc/package-lock.json +0 -1345
  117. package/playgrounds/9.0/rc/package.json +0 -9
  118. package/playgrounds/flat-config/.vscode/settings.json +0 -22
  119. package/playgrounds/flat-config/app.js +0 -12
  120. package/playgrounds/flat-config/eslint.config.js +0 -51
  121. package/playgrounds/flat-config/package-lock.json +0 -2733
  122. package/playgrounds/flat-config/package.json +0 -12
  123. package/playgrounds/flat-config/sub/sub.js +0 -2
  124. package/playgrounds/flat-config/test.ts +0 -7
  125. package/playgrounds/flat-config/tsconfig.json +0 -11
  126. package/playgrounds/flat-config-fail/f1/app.js +0 -12
  127. package/playgrounds/flat-config-fail/f1/eslint.config.js +0 -51
  128. package/playgrounds/flat-config-fail/package-lock.json +0 -1683
  129. package/playgrounds/flat-config-fail/package.json +0 -11
  130. package/playgrounds/flat-config-mjs/.vscode/settings.json +0 -21
  131. package/playgrounds/flat-config-mjs/app.js +0 -12
  132. package/playgrounds/flat-config-mjs/eslint.config.mjs +0 -53
  133. package/playgrounds/flat-config-mjs/package-lock.json +0 -2860
  134. package/playgrounds/flat-config-mjs/package.json +0 -11
  135. package/playgrounds/flat-config-mjs/sub/sub.js +0 -2
  136. package/playgrounds/flat-config-mjs/test.ts +0 -7
  137. package/playgrounds/flat-config-mjs/tsconfig.json +0 -11
  138. package/playgrounds/load-eslint/.vscode/settings.json +0 -21
  139. package/playgrounds/load-eslint/app.js +0 -12
  140. package/playgrounds/load-eslint/eslint.config.js +0 -51
  141. package/playgrounds/load-eslint/package-lock.json +0 -2860
  142. package/playgrounds/load-eslint/package.json +0 -11
  143. package/playgrounds/load-eslint/sub/sub.js +0 -2
  144. package/playgrounds/load-eslint/test.ts +0 -7
  145. package/playgrounds/load-eslint/tsconfig.json +0 -11
  146. package/playgrounds/noLib/test.js +0 -22
  147. package/playgrounds/noWD/.vscode/settings.json +0 -2
  148. package/playgrounds/noWD/src/.eslintrc.json +0 -18
  149. package/playgrounds/noWD/src/package-lock.json +0 -2812
  150. package/playgrounds/noWD/src/package.json +0 -12
  151. package/playgrounds/noWD/src/test.js +0 -3
  152. package/playgrounds/notebooks/notebook.ipynb +0 -7072
  153. package/playgrounds/notebooks/notebook2.ipynb +0 -20
  154. package/playgrounds/testing.code-workspace +0 -28
  155. package/playgrounds/ts/.eslintrc.base.json +0 -23
  156. package/playgrounds/ts/.eslintrc.json +0 -191
  157. package/playgrounds/ts/.vscode/settings.json +0 -12
  158. package/playgrounds/ts/package-lock.json +0 -2687
  159. package/playgrounds/ts/package.json +0 -11
  160. package/playgrounds/ts/test copy.ts +0 -4
  161. package/playgrounds/ts/test.ipynb +0 -49
  162. package/playgrounds/ts/test.ts +0 -4
  163. package/playgrounds/ts/test.tsx +0 -14
  164. package/playgrounds/ts/tsconfig.json +0 -100
  165. package/server/agents.md +0 -9
  166. package/server/package-lock.json +0 -93
  167. package/server/package.json +0 -32
  168. package/server/src/diff.ts +0 -1079
  169. package/server/src/eslint.ts +0 -1471
  170. package/server/src/eslintServer.ts +0 -865
  171. package/server/src/is.ts +0 -18
  172. package/server/src/languageDefaults.ts +0 -40
  173. package/server/src/linkedMap.ts +0 -448
  174. package/server/src/paths.ts +0 -128
  175. package/server/src/thenable.d.ts +0 -5
  176. package/server/tsconfig.json +0 -21
  177. package/server/webpack.config.js +0 -25
  178. package/shared.webpack.config.js +0 -59
  179. package/tsconfig.base.json +0 -9
  180. package/tsconfig.json +0 -21
package/bin/vscode-eslint CHANGED
@@ -49,11 +49,34 @@ if (!wantsStdio) {
49
49
  // Run the bundled server produced by server/webpack.config.js
50
50
  // We require it directly so it runs in the same process,
51
51
  // similar to how typescript-language-server and other LSPs are structured.
52
- const serverEntry = path.resolve(__dirname, '..', 'server', 'out', 'eslintServer.js');
52
+ let serverEntry;
53
+ const candidatePaths = [
54
+ path.resolve(__dirname, '..', 'server', 'out', 'eslintServer.js'),
55
+ path.resolve(__dirname, '..', 'out', 'eslintServer.js'), // For cases where it might be flattened
56
+ ];
57
+
58
+ for (const candidate of candidatePaths) {
59
+ try {
60
+ if (require.resolve(candidate)) {
61
+ serverEntry = candidate;
62
+ break;
63
+ }
64
+ } catch (err) {
65
+ // Continue to next candidate
66
+ }
67
+ }
68
+
69
+ if (!serverEntry) {
70
+ process.stderr.write('Failed to start ESLint server: Cannot find server entry point.\n');
71
+ process.stderr.write('Tried the following paths:\n');
72
+ candidatePaths.forEach(p => process.stderr.write(` - ${p}\n`));
73
+ process.exit(1);
74
+ }
53
75
 
54
76
  try {
55
77
  require(serverEntry);
56
78
  } catch (err) {
57
79
  process.stderr.write(`Failed to start ESLint server: ${err.message}\n`);
80
+ process.stderr.write(`Tried path: ${serverEntry}\n`);
58
81
  process.exit(1);
59
82
  }
@@ -0,0 +1,13 @@
1
+ import { Uri, TextDocument, ExtensionContext } from 'vscode';
2
+ import { LanguageClient } from 'vscode-languageclient/node';
3
+ import { Validate } from './shared/settings';
4
+ export declare class Validator {
5
+ private readonly probeFailed;
6
+ clear(): void;
7
+ add(uri: Uri): void;
8
+ check(textDocument: TextDocument): Validate;
9
+ }
10
+ export declare namespace ESLintClient {
11
+ function migrateSettings(client: LanguageClient): Promise<void>;
12
+ function create(context: ExtensionContext, validator: Validator): [LanguageClient, () => void];
13
+ }
@@ -0,0 +1,3 @@
1
+ import { ExtensionContext } from 'vscode';
2
+ export declare function activate(context: ExtensionContext): void;
3
+ export declare function deactivate(): Promise<void>;