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 () => {
25
25
const emmetConfig = vscode . workspace . getConfiguration ( 'emmet' )
26
26
if ( isEmmetEnabled && ! emmetConfig . excludeLanguages . includes ( document . languageId ) ) return
27
27
28
- const curosrOffset : number = document . offsetAt ( position )
28
+ const cursorOffset : number = document . offsetAt ( position )
29
29
30
30
if ( context . triggerKind !== vscode . CompletionTriggerKind . TriggerForIncompleteCompletions || ! lastStartOffset ) {
31
31
const result = await sendCommand < EmmetResult > ( 'emmet-completions' , { document, position } )
@@ -34,10 +34,10 @@ export const registerEmmet = async () => {
34
34
return
35
35
}
36
36
37
- lastStartOffset = curosrOffset + result . emmetTextOffset
37
+ lastStartOffset = cursorOffset + result . emmetTextOffset
38
38
}
39
39
40
- const sendToEmmet = document . getText ( ) . slice ( lastStartOffset , curosrOffset )
40
+ const sendToEmmet = document . getText ( ) . slice ( lastStartOffset , cursorOffset )
41
41
const emmetCompletions = emmet . doComplete (
42
42
{
43
43
getText : ( ) => sendToEmmet ,
You can’t perform that action at this time.
0 commit comments