-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from ls1intum/theia-integration-test
Fix repo detection for theia
- Loading branch information
Showing
7 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,15 @@ | |
"request": "launch", | ||
"args": ["--extensionDevelopmentPath=${workspaceFolder}"], | ||
"outFiles": ["${workspaceFolder}/dist/**/*.js"], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
"preLaunchTask": "${defaultBuildTask}", | ||
"env": { | ||
// "THEIA":"true", | ||
"ARTEMIS_TOKEN":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhcnRlbWlzX2FkbWluIiwiYXV0aCI6IlJPTEVfVVNFUixST0xFX0FETUlOIiwidG9vbHMiOiJTQ09SUElPIiwiZXhwIjoxNzM1MjMwNzM3fQ.ipSGyQ4E3iE_g5v1ZLAMxs5E3CJ_TgyUoM9-Ni3tdz63dhFcEWtqSmM-WQlzPmjp0Bf_6t6Uu6OOsT8fIyMGVw", | ||
"ARTEMIS_URL":"https://artemis-test9.artemis.cit.tum.de", | ||
"GIT_URI":"https://[email protected]/git/THEIATESTTESTEXERCISE/theiatesttestexercise-artemis_admin.git", | ||
"GIT_USER":"artemis_admin", | ||
"GIT_MAIL":"[email protected]" | ||
} | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as vscode from "vscode"; | ||
|
||
export async function getLevel1Subfolders(folderUri: vscode.Uri): Promise<vscode.Uri[]> { | ||
const subfolders: vscode.Uri[] = []; | ||
const entries = await vscode.workspace.fs.readDirectory(folderUri); | ||
|
||
for (const [name, type] of entries) { | ||
if (type === vscode.FileType.Directory) { | ||
subfolders.push(vscode.Uri.joinPath(folderUri, name)); | ||
} | ||
} | ||
|
||
return subfolders; | ||
} | ||
|
||
export async function getLevel1SubfoldersOfWorkspace(workspaceFolders :readonly vscode.WorkspaceFolder[]) | ||
: Promise<vscode.Uri[]> { | ||
return Promise.all( | ||
workspaceFolders.map((folder) => getLevel1Subfolders(folder.uri)) | ||
).then((results) => { | ||
const level1SubfoldersPath = results.flat(); | ||
return level1SubfoldersPath; | ||
}); | ||
} | ||
|