@@ -33,29 +33,29 @@ export function activate(context: vscode.ExtensionContext): void {
3333 commandRegistrar . register ( 'citeWeb' , addWebCiteFactory ) ;
3434
3535 configureLuaLibrary (
36- " Scribunto" ,
37- vscode . workspace . getConfiguration ( " wikitext" ) . get < string > ( " scopedLuaIntegration" ) !== " disabled"
36+ ' Scribunto' ,
37+ vscode . workspace . getConfiguration ( ' wikitext' ) . get < string > ( ' scopedLuaIntegration' ) !== ' disabled'
3838 ) ;
3939}
4040
4141export function deactivate ( ) : void {
4242 console . log ( "Extension is inactive." ) ;
4343
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 ) ;
4646 }
4747}
4848
4949export function configureLuaLibrary ( folder : string , enable : boolean ) {
50- const extensionId = " rowewilsonfrederiskholme.wikitext" ;
50+ const extensionId = ' rowewilsonfrederiskholme.wikitext' ;
5151 const extensionPath = vscode . extensions . getExtension ( extensionId ) ?. extensionPath ;
5252 if ( extensionPath === undefined ) {
5353 return ;
5454 }
5555
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' ) ;
5959 if ( library === undefined ) {
6060 return ;
6161 }
@@ -75,6 +75,6 @@ export function configureLuaLibrary(folder: string, enable: boolean) {
7575 else if ( index >= 0 ) {
7676 library . splice ( index , 1 ) ;
7777 }
78- config . update ( " workspace.library" , library , false ) ;
78+ config . update ( ' workspace.library' , library , false ) ;
7979 }
8080}
0 commit comments