File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { compact } from '@zardoy/utils'
33import { getExtensionSetting , registerExtensionCommand } from 'vscode-framework'
44import { EmmetResult } from '../typescript/src/ipcTypes'
55import { sendCommand } from './sendCommand'
6+ import { Configuration } from './configurationType'
67
78export 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
You can’t perform that action at this time.
0 commit comments