File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,9 @@ export class CppProperties {
238
238
// Check for vcpkg instance and include relevent paths if found.
239
239
if ( await util . checkFileExists ( util . getVcpkgPathDescriptorFile ( ) ) ) {
240
240
let vcpkgRoot : string = await util . readFileText ( util . getVcpkgPathDescriptorFile ( ) ) ;
241
+ vcpkgRoot = vcpkgRoot . trim ( ) ;
241
242
if ( await util . checkDirectoryExists ( vcpkgRoot ) ) {
242
- let vcpkgInstalledPath : string = path . join ( vcpkgRoot . trim ( ) , "/installed" ) ;
243
+ let vcpkgInstalledPath : string = path . join ( vcpkgRoot , "/installed" ) ;
243
244
let list : string [ ] = await util . readDir ( vcpkgInstalledPath ) ;
244
245
if ( list !== undefined ) {
245
246
// For every *directory* in the list (non-recursive). Each directory is basically a platform.
You can’t perform that action at this time.
0 commit comments