[BUG] vscode/微信开发者工具中没有补全能力

オープン
#175 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
vscode
領域
frontend, tooling

調査の方向性

Start with the app.json useExtendedLib configuration and the page JSON usingComponents entries shown in the report, then inspect how the listed VS Code plugins handle these component paths. Compare completion for component names and properties in the reported setup. Done means the relevant editor can provide both kinds of completion for the WeUI components, or the limitation is documented.

索引モデルが issue の本文から書いたものです。

説明

Bug描述

使用微信开发者工具或vscode进行微信小程序开发,使用weui组件库时无法为引入的components提供补全能力。

复现方式

app.json:

"useExtendedLib": {
        "weui": true
    }

%%page%%.json:

{
    "usingComponents": {
        "mp-toptips": "weui-miniprogram/toptips/toptips",
        "mp-cells": "weui-miniprogram/cells/cells",
        "mp-cell": "weui-miniprogram/cell/cell",
        "mp-checkbox": "weui-miniprogram/checkbox/checkbox",
        "mp-checkbox-group": "weui-miniprogram/checkbox-group/checkbox-group",
        "mp-form": "weui-miniprogram/form/form",
        "mp-dialog": "weui-miniprogram/dialog/dialog"
    }
}
VS Code

有组件名提示,无属性提示,运行正常。
image
image

插件列表:

  • minapp
  • vscode wxml
  • vscode-icons
  • wechat-snippet
  • wxml

以上插件均未进行额外配置。

微信开发者工具

无组件名提示、无属性提示,运行正常。

image

版本信息

  • weui 版本 : useExtendedLib

初次接触,不知是哪步问题?另外,使用weui样式库时也有类似的需求,但现象可能不同,如有方案还请告知,谢谢各位。

主要言語
TypeScript
スター
2.4k
フォーク
549
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wechat-miniprogram/weui-miniprogram のほかの issue

wechat-miniprogram/weui-miniprogram の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。