import { IParserConfigHandler } from "ui5plugin-parser" ; import * as vscode from "vscode" ; export class VSCodeParserConfigHandler implements IParserConfigHandler { getUI5Version ( ) { return vscode . workspace . getConfiguration ( "ui5.plugin" ) . get ( "ui5version" ) || "1.60.11" ; } getExcludeFolderPatterns ( ) { return vscode . workspace . getConfiguration ( "ui5.plugin" ) . get ( "excludeFolderPattern" ) || [ "**/resources/**" , "**/dist/**/**" , "**/node_modules/**" ] ; } getDataSource ( ) { return vscode . workspace . getConfiguration ( "ui5.plugin" ) . get ( "dataSource" ) || "https://ui5.sap.com/" ; } getRejectUnauthorized ( ) { return vscode . workspace . getConfiguration ( "ui5.plugin" ) . get ( "rejectUnauthorized" ) || false ; } getLibsToLoad ( ) { const additionalLibs = vscode . workspace . getConfiguration ( "ui5.plugin" ) . get ( "libsToLoad" ) || [ ] ; return [ "sap.m" , "sap.ui.comp" , "sap.f" , "sap.ui.core" , "sap.ui.commons" , "sap.ui.export" , "sap.ui.layout" , "sap.ui.support" , "sap.ui.table" , "sap.ui.unified" , "sap.ushell" , "sap.tnt" , "sap.suite.ui.microchart" ] . concat ( additionalLibs ) ; } }