Skip to content
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

Need to create zls.json manually? #1127

Closed
20kano opened this issue Apr 13, 2023 · 4 comments
Closed

Need to create zls.json manually? #1127

20kano opened this issue Apr 13, 2023 · 4 comments
Labels
question Further information is requested

Comments

@20kano
Copy link

20kano commented Apr 13, 2023

Isn't zls.json generated automatically?
Do I have to create it manually?
I have removed it by accident...

@20kano 20kano added the enhancement New feature or request label Apr 13, 2023
@20kano 20kano changed the title Do I have to create zls.json manually? Need to create zls.json manually? Apr 14, 2023
@20kano
Copy link
Author

20kano commented Apr 14, 2023

Are the vls.json file and the VSCode Setting linked?
It doesn't seem to be.

@llogick
Copy link
Contributor

llogick commented Apr 14, 2023

Now that you mention it.. there used to be a setup/config option.. what OS are you using?

on *nix OSs it's at ~/.config/zls.json
https://github.com/zigtools/zls/blob/master/schema.json offers an overview of the settings and here's an example

{
  "zig_exe_path": "/home/rad/lab/zig/build/zig",
  "enable_snippets": true,
  "enable_ast_check_diagnostics": true,
  "enable_autofix": true,
  "enable_import_embedfile_argument_completions": true,
  "warn_style": true,
  "semantic_tokens": "none",
  "enable_inlay_hints": true,
  "inlay_hints_show_builtin": true,
  "inlay_hints_exclude_single_argument": true,
  "inlay_hints_hide_redundant_param_names": true,
  "inlay_hints_hide_redundant_param_names_last_token": true,
  "operator_completions": true,
  "include_at_in_builtins": false,
  "max_detail_length": 1048576,
  "skip_std_references": true,
  "highlight_global_var_declarations": true,
  "use_comptime_interpreter": false
}

@20kano
Copy link
Author

20kano commented Apr 14, 2023

Linux, Thanks!

@Techatrix Techatrix added question Further information is requested and removed enhancement New feature or request labels Apr 14, 2023
@Techatrix
Copy link
Member

Looks like this question has been answered. If there any more questions, feel free to head over to the discussions page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants