File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/editor-codemirror/src/behaviors Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -225,12 +225,15 @@ async function getCompletions(
225225 const token = context . matchBefore ( / \S + / ) ?. text ;
226226
227227 const filteredItems = items . filter ( item => {
228+ // no namespaces
229+ if ( vsKindToType ( item . kind ) === 'namespace' ) return false ;
230+
228231 // no text completions that aren't snippets
229232 if ( item . kind === CompletionItemKind . Text &&
230233 item . insertTextFormat !== InsertTextFormat . Snippet ) return false ;
231234
232235 // only allow non-text edits if we have no token
233- if ( ! item . textEdit && token ) return false ;
236+ if ( item . textEdit === undefined && token ) return false ;
234237
235238 // require at least inclusion
236239 const replaceText = getReplaceText ( context , item ) . toLowerCase ( ) ;
You can’t perform that action at this time.
0 commit comments