Skip to content
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

chore: implement server-base list files #424

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

pavelfeldman
Copy link
Member

No description provided.

const result = JSON.parse(output) as ConfigListFilesReport;
let result: ConfigListFilesReport;
if (this._useTestServer(config))
result = await this._listFilesServer(config);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this one throw? Perhaps it makes sense to move the try/catch inside _listFilesCLI?

private async _listFilesServer(config: TestConfig): Promise<ConfigListFilesReport> {
const testServer = await this._testServerController.testServerFor(config);
if (!testServer)
throw new Error('Internal error: unable to connect to the test server');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can throw here.

@pavelfeldman pavelfeldman merged commit 3c03c45 into microsoft:main Feb 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants