REditorSupport / REditorSupport/languageserver

Control how language server interacts with workspace

Open
#681 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
675
Forks
118
Avg merge
1d 37m
Merged PRs (30d)
11

Description

Hello, I am fairly new to using LSP, but I'm trying to get to the bottom of a bug when using the languageserver and lintr packages within the zed editor: https://github.com/ocsmit/zed-r/issues/6

As I understand it, zed is sending all open files to the languageserver which is causing lintr to be run on the file. I know that .lintr files can be used to list directories (or specific files) that lintr shouldn't be run, but is there a way to specify the converse, i.e. which files lintr should only be run on?

I wasn't really sure if this is something that is done via the languageserver options, the lintr package, or just zed itself.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked zed-r issue and inspect how Zed sends open files to the language server. Determine whether file selection belongs in language server options, lintr, or Zed itself; done means establishing and documenting or implementing a clear way to restrict linting to selected files.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.