Skip to content

Commit c637b46

Browse files
committed
fix: there should be a way to disable emmet completions with ext setting
1 parent 4dd7d1a commit c637b46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/emmet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as vscode from 'vscode'
2-
import { getExtensionSetting, registerExtensionCommand, updateExtensionSetting } from 'vscode-framework'
2+
import { getExtensionSetting, registerExtensionCommand } from 'vscode-framework'
33
import { EmmetResult } from '../typescript/src/ipcTypes'
44
import { sendCommand } from './sendCommand'
55

@@ -11,6 +11,7 @@ export const registerEmmet = async () => {
1111
reactLangs,
1212
{
1313
async provideCompletionItems(document, position, token, context) {
14+
if (!getExtensionSetting('jsxEmmet')) return
1415
const emmetConfig = vscode.workspace.getConfiguration('emmet')
1516
if (!emmetConfig.excludeLanguages.includes(document.languageId)) return
1617

0 commit comments

Comments
 (0)