File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
apps/vscode/src/providers/editor Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -85,18 +85,19 @@ export function vscodeCodeViewServer(_engine: MarkdownEngine, document: TextDocu
8585 // see if we have an embedded langaage
8686 const language = embeddedLanguage ( context . language ) ;
8787
88- // is this in Positron? If so, no completions
89- // TODO: fix LSP issues for visual editor in Positron:
90- // https://github.com/posit-dev/positron/issues/1805
91- if ( language && ! hasHooks ( ) ) {
88+ if ( language ) {
9289
9390 // if this is a yaml comment line then call the lsp
9491 const line = context . code [ context . selection . start . line ] ;
9592 if ( language . comment && line . startsWith ( `${ language . comment } | ` ) ) {
9693 return lspCellYamlOptionsCompletions ( context , lspRequest ) ;
9794
9895 // otherwise delegate to vscode completion system
99- } else {
96+ // is this in Positron? If so, no completions
97+ // TODO: fix LSP issues for visual editor in Positron:
98+ // https://github.com/posit-dev/positron/issues/1805
99+ }
100+ if ( ! hasHooks ( ) ) {
100101 const vdoc = virtualDocForCode ( context . code , language ) ;
101102 const completions = await vdocCompletions (
102103 vdoc ,
@@ -113,12 +114,11 @@ export function vscodeCodeViewServer(_engine: MarkdownEngine, document: TextDocu
113114 isIncomplete : false
114115 } ;
115116 }
116- } else {
117- return {
118- items : [ ] ,
119- isIncomplete : false
120- } ;
121117 }
118+ return {
119+ items : [ ] ,
120+ isIncomplete : false
121+ } ;
122122 }
123123 } ,
124124 async codeViewPreviewDiagram ( state : DiagramState , activate : boolean ) {
You can’t perform that action at this time.
0 commit comments