@effect/language-service 0.27.1 → 0.27.2

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.
package/README.md CHANGED
@@ -24,6 +24,7 @@ This package implements a TypeScript language service plugin that allows additio
24
24
  - In VSCode you can do this by pressing "F1" and typing "TypeScript: Select TypeScript version". Then select "Use workspace version". If that option does not appear, TypeScript is not installed locally in your node_modules.
25
25
  - In JetBrains you may have to disable the Vue language service, and choose the workspace version of TypeScript in the settings from the dropdown.
26
26
  - In NVim with nvim-vtsls you should refer to [how to enable TypeScript plugins in vtsls](https://github.com/yioneko/vtsls?tab=readme-ov-file#typescript-plugin-not-activated)
27
+ - In Emacs, additional steps are required to enable LSPs, [step by step instructions can be found here](https://gosha.net/2025/effect-ls-emacs/)
27
28
 
28
29
  And you're done! You'll now be able to use a set of refactors and diagnostics that target Effect!
29
30
 
package/index.js CHANGED
@@ -10914,6 +10914,15 @@ var refactors = [
10914
10914
  // src/index.ts
10915
10915
  var LSP_INJECTED_URI = "@effect/language-service/injected";
10916
10916
  var init = (modules) => {
10917
+ const diagnosticsErrorCodes = diagnostics.map((diagnostic) => diagnostic.code);
10918
+ try {
10919
+ ;
10920
+ modules.typescript.codefix.registerCodeFix({
10921
+ errorCodes: diagnosticsErrorCodes,
10922
+ getCodeActions: () => void 0
10923
+ });
10924
+ } catch (_) {
10925
+ }
10917
10926
  let languageServicePluginOptions = parse({});
10918
10927
  function onConfigurationChanged(config) {
10919
10928
  languageServicePluginOptions = parse(config);
@@ -10923,15 +10932,6 @@ var init = (modules) => {
10923
10932
  languageServicePluginOptions = parse(info.config);
10924
10933
  if (languageService[LSP_INJECTED_URI]) return languageService;
10925
10934
  info.project.log("[@effect/language-service] Started!");
10926
- const diagnosticsErrorCodes = diagnostics.map((diagnostic) => diagnostic.code);
10927
- try {
10928
- ;
10929
- modules.typescript.codefix.registerCodeFix({
10930
- errorCodes: diagnosticsErrorCodes,
10931
- getCodeActions: () => void 0
10932
- });
10933
- } catch (_) {
10934
- }
10935
10935
  const proxy = /* @__PURE__ */ Object.create(null);
10936
10936
  proxy[LSP_INJECTED_URI] = true;
10937
10937
  for (const k of Object.keys(languageService)) {