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 { getConfig , setConfig } from "../../languageserver" ;
34import { createChildLogger } from "./logging.service" ;
45import { LIBRARY_SETTING } from "../config" ;
@@ -25,7 +26,13 @@ export const getLibraryPaths = async (): Promise<
2526
2627 for ( const folder of vscode . workspace . workspaceFolders ) {
2728 const libraries = await getConfig ( LIBRARY_SETTING , folder . uri ) ;
28- result . push ( { folder, paths : libraries ?? [ ] } ) ;
29+ const libraryPaths = libraries . map ( ( libraryPath : string ) => {
30+ if ( path . isAbsolute ( libraryPath ) ) {
31+ return libraryPath ;
32+ }
33+ return path . join ( folder . uri . fsPath , libraryPath ) ;
34+ } )
35+ result . push ( { folder, paths : libraryPaths ?? [ ] } ) ;
2936 }
3037
3138 return result ;
You can’t perform that action at this time.
0 commit comments