File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
client/src/addon_manager/services Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
2+ import * as path from "path" ;
23import { ConfigChange , getConfig , setConfig } from "../../languageserver" ;
34import { createChildLogger } from "./logging.service" ;
45import { LIBRARY_SETTING } from "../config" ;
@@ -23,7 +24,13 @@ export const getLibraryPaths = async (): Promise<
2324
2425 for ( const folder of vscode . workspace . workspaceFolders ) {
2526 const libraries = await getConfig ( LIBRARY_SETTING , folder . uri ) ;
26- result . push ( { folder, paths : libraries ?? [ ] } ) ;
27+ const libraryPaths = libraries . map ( ( libraryPath : string ) => {
28+ if ( path . isAbsolute ( libraryPath ) ) {
29+ return libraryPath ;
30+ }
31+ return path . join ( folder . uri . fsPath , libraryPath ) ;
32+ } )
33+ result . push ( { folder, paths : libraryPaths ?? [ ] } ) ;
2734 }
2835
2936 return result ;
You can’t perform that action at this time.
0 commit comments