@@ -33,29 +33,29 @@ export function activate(context: vscode.ExtensionContext): void {
33
33
commandRegistrar . register ( 'citeWeb' , addWebCiteFactory ) ;
34
34
35
35
configureLuaLibrary (
36
- " Scribunto" ,
37
- vscode . workspace . getConfiguration ( " wikitext" ) . get < string > ( " scopedLuaIntegration" ) !== " disabled"
36
+ ' Scribunto' ,
37
+ vscode . workspace . getConfiguration ( ' wikitext' ) . get < string > ( ' scopedLuaIntegration' ) !== ' disabled'
38
38
) ;
39
39
}
40
40
41
41
export function deactivate ( ) : void {
42
42
console . log ( "Extension is inactive." ) ;
43
43
44
- if ( vscode . workspace . getConfiguration ( " wikitext" ) . get < string > ( " scopedLuaIntegration" ) !== " enabled" ) {
45
- configureLuaLibrary ( " Scribunto" , false ) ;
44
+ if ( vscode . workspace . getConfiguration ( ' wikitext' ) . get < string > ( ' scopedLuaIntegration' ) !== ' enabled' ) {
45
+ configureLuaLibrary ( ' Scribunto' , false ) ;
46
46
}
47
47
}
48
48
49
49
export function configureLuaLibrary ( folder : string , enable : boolean ) {
50
- const extensionId = " rowewilsonfrederiskholme.wikitext" ;
50
+ const extensionId = ' rowewilsonfrederiskholme.wikitext' ;
51
51
const extensionPath = vscode . extensions . getExtension ( extensionId ) ?. extensionPath ;
52
52
if ( extensionPath === undefined ) {
53
53
return ;
54
54
}
55
55
56
- const folderPath = path . join ( extensionPath , " EmmyLua" , folder ) ;
57
- const config = vscode . workspace . getConfiguration ( " Lua" ) ;
58
- let library : string [ ] | undefined = config . get ( " workspace.library" ) ;
56
+ const folderPath = path . join ( extensionPath , ' EmmyLua' , folder ) ;
57
+ const config = vscode . workspace . getConfiguration ( ' Lua' ) ;
58
+ let library : string [ ] | undefined = config . get ( ' workspace.library' ) ;
59
59
if ( library === undefined ) {
60
60
return ;
61
61
}
@@ -75,6 +75,6 @@ export function configureLuaLibrary(folder: string, enable: boolean) {
75
75
else if ( index >= 0 ) {
76
76
library . splice ( index , 1 ) ;
77
77
}
78
- config . update ( " workspace.library" , library , false ) ;
78
+ config . update ( ' workspace.library' , library , false ) ;
79
79
}
80
80
}
0 commit comments