7

关于 Python Language Server 在 VsCode 中增加代码提示的问题

 2 years ago
source link: https://www.v2ex.com/t/811889
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

关于 Python Language Server 在 VsCode 中增加代码提示的问题

  susecjh · 8 小时 19 分钟前 · 330 次点击

先说说我干了啥,在 Python 的初始化的时候,自动为每个 View 生成 Schema class(使用 pydantic ,联动对应的 Model)用以校验请求入参和出参,并且生成了对应的 schema 对象(例如:req_obj, resp_obj),现在我在想,有没有可能,我在写某个对应的 View 时,使用到了req_obj/resp_obj能够在 VsCode 展示对应的提示,现在想到了两种方式:

  1. 使用 VsCode 插件
  2. 对 Language Server 做插件

两种方式都没有做过,想来问问各位大佬有木有建议教教小弟


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK