1
- import { TextDocument , Position , CompletionList , CompletionItemKind , Range , SnippetString } from 'vscode-languageserver-types' ;
1
+ import { TextDocument , Position , CompletionList , CompletionItemKind , Range , InsertTextFormat } from 'vscode-languageserver-types' ;
2
2
import { HTMLDocument } from '../parser/htmlParser' ;
3
3
import { TokenType , createScanner , ScannerState } from '../parser/htmlScanner' ;
4
4
import { getAureliaTagProvider } from '../parser/aureliaTagProvider' ;
@@ -48,7 +48,7 @@ export function doComplete(document: TextDocument, position: Position, htmlDocum
48
48
documentation : label ,
49
49
kind : CompletionItemKind . Property ,
50
50
label : tag ,
51
- range,
51
+ // range,
52
52
} ) ;
53
53
} ) ;
54
54
return result ;
@@ -68,10 +68,11 @@ export function doComplete(document: TextDocument, position: Position, htmlDocum
68
68
codeSnippet = codeSnippet + value ;
69
69
}
70
70
result . items . push ( {
71
- insertText : SnippetString . create ( codeSnippet ) ,
71
+ insertText : codeSnippet ,
72
72
kind : type === 'handler' ? CompletionItemKind . Function : CompletionItemKind . Value ,
73
73
label : attribute ,
74
- range,
74
+ insertTextFormat : InsertTextFormat . Snippet
75
+ //range,
75
76
} ) ;
76
77
} ) ;
77
78
return result ;
@@ -101,7 +102,7 @@ export function doComplete(document: TextDocument, position: Position, htmlDocum
101
102
kind : CompletionItemKind . Unit ,
102
103
label : value ,
103
104
insertText,
104
- range,
105
+ // range,
105
106
} ) ;
106
107
} ) ;
107
108
return result ;
0 commit comments