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

bugfix/flaky nodes #2670

Merged
merged 9 commits into from
May 17, 2023
Prev Previous commit
Next Next commit
- fixes flaky selection with multiple indexers in the extension
  • Loading branch information
baywet committed May 16, 2023
commit 029dc7de908b536647f3c157a23d8ee5101ffa9a
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed a bug where Operation filters would be greedy and exclude non operation filters. [#2651](https://github.com/microsoft/kiota/issues/2651)
- Shorten Go File names to a max of 252
- Fixed a bug where clean output option would fail because of the log file. [#2645](https://github.com/microsoft/kiota/issues/2645)
- Fixed a bug in the extension where selection in multiple indexers would fail. [#2666](https://github.com/microsoft/kiota/issues/2666)

## [1.2.0] - 2023-05-04

Expand Down
8 changes: 7 additions & 1 deletion vscode/microsoft-kiota/src/openApiTreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,15 @@ export class OpenApiTreeProvider implements vscode.TreeDataProvider<OpenApiTreeN
}
const segment = segments.shift();
if (segment) {
const child = currentNode.children.find(x => x.segment === segment);
let child = currentNode.children.find(x => x.segment === segment);
if (child) {
return this.findApiNode(segments, child);
} else if (segment.startsWith('{') && segment.endsWith('}')) {
// in case there are multiple single parameters nodes with different names at the same level
child = currentNode.children.find(x => x.segment.startsWith('{') && x.segment.endsWith('}'));
if (child) {
return this.findApiNode(segments, child);
}
}
}
return undefined;
Expand Down