-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat additionnal project yaml #128
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,6 +302,11 @@ export class CeedlingAdapter implements TestAdapter { | |
return shellPath !== "null" ? shellPath : undefined; | ||
} | ||
|
||
private getProjectCustom(): string { | ||
const projectCustom = this.getConfiguration().get('projectCustom', 'null'); | ||
return projectCustom !== "null" ? projectCustom : ""; | ||
} | ||
|
||
private getProjectPath(): string { | ||
const defaultProjectPath = '.'; | ||
const projectPath = this.getConfiguration().get<string>('projectPath', defaultProjectPath); | ||
|
@@ -337,7 +342,9 @@ export class CeedlingAdapter implements TestAdapter { | |
} | ||
|
||
private getCeedlingCommand(args: ReadonlyArray<string>) { | ||
const line = `ceedling ${args.join(" ")}`; | ||
const projectCustom = this.getProjectCustom(); | ||
const project = projectCustom ? `project:${projectCustom} ` : ''; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The documentation define a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have always used project: probably this was documented this way in previous versions of Ceedling but I will do some tests with options: and update this PR |
||
const line = `ceedling ${project}${args.join(" ")}`; | ||
return line; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be named
options
to keep the same ceedling vocabulary. It should also be a list of name.