From 7bbe46339979a5ddfb9f09dba7af0c98b5c3abbc Mon Sep 17 00:00:00 2001 From: Igor Vinokur Date: Mon, 8 Jul 2019 12:47:06 +0300 Subject: [PATCH] Fix Converting circular structure to JSON Error in tree-view Signed-off-by: Igor Vinokur --- CHANGELOG.md | 1 + packages/plugin-ext/src/plugin/tree/tree-views.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17671f35f4f2d..603b42a1a3af8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [task] added support for VS Code task contribution points: `taskDefinitions`, `problemMatchers`, and `problemPatterns` - [plugin] added support of debug activation events [#5645](https://github.com/theia-ide/theia/pull/5645) +- [plugin] Fixed `Converting circular structure to JSON` Error [#5661](https://github.com/theia-ide/theia/pull/5661) Breaking changes: diff --git a/packages/plugin-ext/src/plugin/tree/tree-views.ts b/packages/plugin-ext/src/plugin/tree/tree-views.ts index 40b4d299df30a..9afb84396470a 100644 --- a/packages/plugin-ext/src/plugin/tree/tree-views.ts +++ b/packages/plugin-ext/src/plugin/tree/tree-views.ts @@ -242,6 +242,9 @@ class TreeViewExtImpl extends Disposable { } } + if (treeItem.command) { + treeItem.command.arguments = [id]; + } const treeViewItem = { id, label: label,