File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
testAssets/SimpleCppProject Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 98
98
"request" : " launch" ,
99
99
"runtimeExecutable" : " ${execPath}" ,
100
100
"args" : [
101
- " ${workspaceFolder}/test/integrationTests/testAssets/SimpleCppProject" ,
101
+ " ${workspaceFolder}/test/integrationTests/testAssets/SimpleCppProject/simpleCppProject.code-workspace " ,
102
102
" --extensionDevelopmentPath=${workspaceFolder}" ,
103
103
" --extensionTestsPath=${workspaceFolder}/out/test/integrationTests/languageServer/index"
104
104
],
Original file line number Diff line number Diff line change @@ -705,7 +705,7 @@ export class DefaultClient implements Client {
705
705
706
706
constructor ( allClients : ClientCollection , workspaceFolder ?: vscode . WorkspaceFolder ) {
707
707
this . rootFolder = workspaceFolder ;
708
- this . rootRealPath = this . RootPath ? fs . realpathSync ( this . RootPath ) : "" ;
708
+ this . rootRealPath = this . RootPath ? ( fs . existsSync ( this . RootPath ) ? fs . realpathSync ( this . RootPath ) : this . RootPath ) : "" ;
709
709
let storagePath : string | undefined ;
710
710
if ( util . extensionContext ) {
711
711
const path : string | undefined = util . extensionContext . storageUri ?. fsPath ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ async function main() {
12
12
// Passed to --extensionTestsPath
13
13
const extensionTestsPath = path . resolve ( __dirname , './index' ) ;
14
14
15
- const testWorkspace = path . resolve ( extensionDevelopmentPath , 'test/integrationTests/testAssets/SimpleCppProject' ) ;
15
+ const testWorkspace = path . resolve ( extensionDevelopmentPath , 'test/integrationTests/testAssets/SimpleCppProject/simpleCppProject.code-workspace ' ) ;
16
16
17
17
const launchArgs = [ "--disable-extensions" , testWorkspace ] ;
18
18
Original file line number Diff line number Diff line change
1
+ {
2
+ "folders" : [
3
+ {
4
+ "path" : " ."
5
+ },
6
+ {
7
+ "path" : " ../nonExistent"
8
+ }
9
+ ]
10
+ }
You can’t perform that action at this time.
0 commit comments