Skip to content

Commit 545bd13

Browse files
committed
fix: fix enableStrictEmmetInJsx command
1 parent e5ecb9f commit 545bd13

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/emmet.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { compact } from '@zardoy/utils'
33
import { getExtensionSetting, registerExtensionCommand } from 'vscode-framework'
44
import { EmmetResult } from '../typescript/src/ipcTypes'
55
import { sendCommand } from './sendCommand'
6+
import { Configuration } from './configurationType'
67

78
export const registerEmmet = async () => {
89
if (process.env.PLATFORM !== 'web') {
@@ -92,8 +93,12 @@ export const registerEmmet = async () => {
9293
void vscode.window.showInformationMessage(`Added to ${addExcludeLangs.join(',')} emmet.excludeLanguages`)
9394
}
9495

95-
await vscode.workspace.getConfiguration(process.env.IDS_PREFIX).update('jsxEmmet', true, vscode.ConfigurationTarget.Global)
96-
await vscode.workspace.getConfiguration(process.env.IDS_PREFIX).update('jsxPseudoEmmet', false, vscode.ConfigurationTarget.Global)
96+
await vscode.workspace
97+
.getConfiguration(process.env.IDS_PREFIX)
98+
.update('jsxEmmet.enable' satisfies keyof Configuration, true, vscode.ConfigurationTarget.Global)
99+
await vscode.workspace
100+
.getConfiguration(process.env.IDS_PREFIX)
101+
.update('jsxPseudoEmmet.enable' satisfies keyof Configuration, false, vscode.ConfigurationTarget.Global)
97102
})
98103

99104
// TODO: select wrap, matching, rename tag

0 commit comments

Comments
 (0)