Skip to content

Commit 250b3c4

Browse files
Component Viewer / Core Peripherals: Replace TreeView with a custom webview (#926)
* Replaced TreeView with new WebView implementation (includes AI generated parts) * Updated/added dependencies and TPIP documentation * Production Dependencies * @vscode/codicons 0.0.45 * react 18.3.1 * react-dom 18.3.1 * Dev Dependencies * @types/react 18.3.23 * @types/react-dom 18.3.7 * css-loader 7.1.4 * mini-css-extract-plugin 2.10.2 --------- Co-authored-by: Jen-Tse Huang <jen-tse.huang@arm.com>
1 parent 56d72b4 commit 250b3c4

23 files changed

Lines changed: 2510 additions & 224 deletions

.vscodeignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ __mocks__/**/*
66
coverage
77
dist/**/*.js.map
88
images/*.pptx
9-
node_modules
9+
node_modules/**
10+
!node_modules/@vscode/codicons/**
1011
scripts
1112
src
1213
test-data
@@ -20,4 +21,4 @@ tools/**/target.txt
2021
tools/**/sha256.txt
2122
docs/component-viewer
2223
*.config.{mjs,js,mts,ts}
23-
*.setup.{mjs,js,mts,ts}
24+
*.setup.{mjs,js,mts,ts}

TPIP.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ Generated for release: 1.6.1
88
| pyocd | 0.43.0 | https://github.com/pyocd/pyOCD | [Apache-2.0](https://github.com/pyocd/pyOCD/blob/v0.43.0/LICENSE) |
99
| vscode-uri | 3.1.0 | https://github.com/microsoft/vscode-uri | [MIT](https://github.com/microsoft/vscode-uri/blob/main/LICENSE.md) |
1010
| xml2js | 0.6.2 | https://github.com/Leonidas-from-XIV/node-xml2js | [MIT](https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/LICENSE) |
11-
| yaml | 2.8.2 | https://github.com/eemeli/yaml | [ISC](https://github.com/eemeli/yaml/blob/main/LICENSE) |
11+
| yaml | 2.8.3 | https://github.com/eemeli/yaml | [ISC](https://github.com/eemeli/yaml/blob/main/LICENSE) |
12+
| react | 18.3.1 | https://github.com/facebook/react | [MIT](https://github.com/facebook/react/blob/main/LICENSE) |
13+
| react-dom | 18.3.1 | https://github.com/facebook/react | [MIT](https://github.com/facebook/react/blob/main/LICENSE) |
14+
| css-loader | 7.1.4 | https://github.com/webpack-contrib/css-loader | [MIT](https://github.com/webpack-contrib/css-loader/blob/master/LICENSE) |
15+
| mini-css-extract-plugin | 2.10.2 | https://github.com/webpack-contrib/mini-css-extract-plugin | [MIT](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/LICENSE) |
16+
| @vscode/codicons | 0.0.45 | https://github.com/microsoft/vscode-codicons | [CC-BY-4.0](https://github.com/microsoft/vscode-codicons/blob/main/LICENSE) |

__mocks__/vscode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ module.exports = {
9191
reveal: jest.fn().mockResolvedValue(undefined),
9292
})),
9393
registerTreeDataProvider: jest.fn(() => ({ dispose: jest.fn() })),
94+
registerWebviewViewProvider: jest.fn(() => ({ dispose: jest.fn() })),
9495
showErrorMessage: jest.fn(),
9596
showInformationMessage: jest.fn(() => Promise.resolve(undefined)),
9697
showWarningMessage: jest.fn(),

docs/third-party-licenses.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,44 @@
2929
},
3030
{
3131
"name": "yaml",
32-
"version": "2.8.2",
32+
"version": "2.8.3",
3333
"spdx": "ISC",
3434
"url": "https://github.com/eemeli/yaml",
3535
"license": "https://github.com/eemeli/yaml/blob/main/LICENSE"
36+
},
37+
{
38+
"name": "react",
39+
"version": "18.3.1",
40+
"spdx": "MIT",
41+
"url": "https://github.com/facebook/react",
42+
"license": "https://github.com/facebook/react/blob/main/LICENSE"
43+
},
44+
{
45+
"name": "react-dom",
46+
"version": "18.3.1",
47+
"spdx": "MIT",
48+
"url": "https://github.com/facebook/react",
49+
"license": "https://github.com/facebook/react/blob/main/LICENSE"
50+
},
51+
{
52+
"name": "css-loader",
53+
"version": "7.1.4",
54+
"spdx": "MIT",
55+
"url": "https://github.com/webpack-contrib/css-loader",
56+
"license": "https://github.com/webpack-contrib/css-loader/blob/master/LICENSE"
57+
},
58+
{
59+
"name": "mini-css-extract-plugin",
60+
"version": "2.10.2",
61+
"spdx": "MIT",
62+
"url": "https://github.com/webpack-contrib/mini-css-extract-plugin",
63+
"license": "https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/LICENSE"
64+
},
65+
{
66+
"name": "@vscode/codicons",
67+
"version": "0.0.45",
68+
"spdx": "CC-BY-4.0",
69+
"url": "https://github.com/microsoft/vscode-codicons",
70+
"license": "https://github.com/microsoft/vscode-codicons/blob/main/LICENSE"
3671
}
37-
]
72+
]

jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const config: Config = {
3232
"src/**/*.{ts,tsx}",
3333
"!**/*.d.ts",
3434
"!**/*.factories.{ts,tsx}",
35-
"!**/__test__/**/*"
35+
"!**/__test__/**/*",
36+
"!src/webviews/**/*"
3637
],
3738
coverageDirectory: "./coverage",
3839
coverageReporters: ["lcov", "text"],

0 commit comments

Comments
 (0)