Skip to content

[LFX] KPM & LSP Integrated #1847

Description

@He1pa

Enhancement

Sometimes users will edit the kcl.mod file in the IDE to update project dependencies. The integration between LSP and KPM needs to be strengthened

  1. When users update kcl.mod in the IDE, the required dependencies are automatically downloaded
  2. When users use the kpm tool to update dependencies, the IDE can be updated (recompiled). For example
import k8s  # Error: Module not found

use kcl mod add k8s

kpm will download the k8s package and then the IDE errors will be eliminated

Pretest:
Research the implementation of similar features in other languages ​​(rust's cargo watch is recommended, but any other language is fine), provide research reports and design solutions (optional).
Any form of report is acceptable, but don't submit to this repository, use Google Doc or your own public repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions