vue-codemirror icon indicating copy to clipboard operation
vue-codemirror copied to clipboard

autocompletion not show

Open ututuut opened this issue 3 years ago • 1 comments
trafficstars

Describe the bug

autocompletion not show ,but when i click enter,i can get autocompletion , this is my code image image

Reproduction

extensions: [sql(), oneDark, autocompletion({ override: [function myCompletions(context) { console.log(123123) let before = context.matchBefore(/\w+/) // If completion wasn't explicitly started and there // is no word before the cursor, don't open completions. if (!context.explicit && !before) return null console.log(456) return { from: before ? before.from : context.pos, options: [ {label: "select ", type: "keyword"}, {label: "park", type: "constant", info: "Test completion"}, {label: "password", type: "variable"}, ], // validFor: /^\w*$/ } }] })],

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (6) x64 AMD Ryzen 5 4500U with Radeon Graphics
    Memory: 2.73 GB / 15.23 GB
  Binaries:
    Node: 18.7.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.3.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (105.0.1343.53)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @antv/x6-vue-shape: ^1.5.2 => 1.5.2
    @codemirror/autocomplete: ^6.3.0 => 6.3.0
    @codemirror/lang-sql: ^6.3.0 => 6.3.0
    @codemirror/theme-one-dark: ^6.1.0 => 6.1.0
    @handsontable/vue3: ^12.1.3 => 12.1.3
    @vue/cli-plugin-router: ~5.0.0 => 5.0.8
    @vue/cli-plugin-vuex: ~5.0.0 => 5.0.8
    @vue/cli-service: ~5.0.0 => 5.0.8
    codemirror: ^6.0.1 => 6.0.1
    element-plus: ^2.2.17 => 2.2.17
    element-resize-detector: ^1.2.4 => 1.2.4
    handsontable: ^12.1.3 => 12.1.3
    heyui: ^2.2.0-alpha.1 => 2.2.0-alpha.1
    sass: ^1.32.7 => 1.55.0
    sass-loader: ^12.0.0 => 12.6.0
    splitpanes: ^3.1.1 => 3.1.1
    v-clipboard: ^2.2.3 => 2.2.3
    vue: ^3.2.13 => 3.2.39
    vue-codemirror: ^6.1.1 => 6.1.1
    vue-router: ^4.0.3 => 4.1.5
    vue3-clipboard: ^1.0.0 => 1.0.0
    vuedraggable: ^4.1.0 => 4.1.0
    vuex: ^4.0.0 => 4.0.2

Used Package Manager

npm

Validations

  • [X] Read the the documentation in detail.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
  • [X] The provided reproduction is a minimal reproducible example of the bug.

ututuut avatar Sep 29 '22 02:09 ututuut

Same here

hamonCordova avatar May 24 '23 20:05 hamonCordova