File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const registerEmmet = async () => {
2525 const emmetConfig = vscode . workspace . getConfiguration ( 'emmet' )
2626 if ( isEmmetEnabled && ! emmetConfig . excludeLanguages . includes ( document . languageId ) ) return
2727
28- const curosrOffset : number = document . offsetAt ( position )
28+ const cursorOffset : number = document . offsetAt ( position )
2929
3030 if ( context . triggerKind !== vscode . CompletionTriggerKind . TriggerForIncompleteCompletions || ! lastStartOffset ) {
3131 const result = await sendCommand < EmmetResult > ( 'emmet-completions' , { document, position } )
@@ -34,10 +34,10 @@ export const registerEmmet = async () => {
3434 return
3535 }
3636
37- lastStartOffset = curosrOffset + result . emmetTextOffset
37+ lastStartOffset = cursorOffset + result . emmetTextOffset
3838 }
3939
40- const sendToEmmet = document . getText ( ) . slice ( lastStartOffset , curosrOffset )
40+ const sendToEmmet = document . getText ( ) . slice ( lastStartOffset , cursorOffset )
4141 const emmetCompletions = emmet . doComplete (
4242 {
4343 getText : ( ) => sendToEmmet ,
You can’t perform that action at this time.
0 commit comments