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'
3
3
import { getExtensionSetting , registerExtensionCommand } from 'vscode-framework'
4
4
import { EmmetResult } from '../typescript/src/ipcTypes'
5
5
import { sendCommand } from './sendCommand'
6
+ import { Configuration } from './configurationType'
6
7
7
8
export const registerEmmet = async ( ) => {
8
9
if ( process . env . PLATFORM !== 'web' ) {
@@ -92,8 +93,12 @@ export const registerEmmet = async () => {
92
93
void vscode . window . showInformationMessage ( `Added to ${ addExcludeLangs . join ( ',' ) } emmet.excludeLanguages` )
93
94
}
94
95
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 )
97
102
} )
98
103
99
104
// TODO: select wrap, matching, rename tag
You can’t perform that action at this time.
0 commit comments