From cbf99296afd3b3cb9d2c70fb481ddecabce9abfa Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Tue, 3 Aug 2021 10:50:51 +0000 Subject: [PATCH] Add '@vscode/codicons' dependency to core package --- packages/core/package.json | 1 + packages/core/src/browser/frontend-application-module.ts | 1 + packages/core/src/browser/widgets/widget.ts | 2 +- yarn.lock | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/core/package.json b/packages/core/package.json index d83beab0e5b3a..2c8274f4334ff 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -32,6 +32,7 @@ "@types/safer-buffer": "^2.1.0", "@types/ws": "^5.1.2", "@types/yargs": "^15", + "@vscode/codicons": "^0.0.21", "ajv": "^6.5.3", "body-parser": "^1.17.2", "cookie": "^0.4.0", diff --git a/packages/core/src/browser/frontend-application-module.ts b/packages/core/src/browser/frontend-application-module.ts index 8ab0b4dd709fc..3136c9f621d52 100644 --- a/packages/core/src/browser/frontend-application-module.ts +++ b/packages/core/src/browser/frontend-application-module.ts @@ -18,6 +18,7 @@ import '../../src/browser/style/index.css'; require('../../src/browser/style/materialcolors.css').use(); import 'font-awesome/css/font-awesome.min.css'; import 'file-icons-js/css/style.css'; +import '@vscode/codicons/dist/codicon.css'; import { ContainerModule } from 'inversify'; import { diff --git a/packages/core/src/browser/widgets/widget.ts b/packages/core/src/browser/widgets/widget.ts index 8bdd7151c591c..22f426c38dba5 100644 --- a/packages/core/src/browser/widgets/widget.ts +++ b/packages/core/src/browser/widgets/widget.ts @@ -32,7 +32,7 @@ export * from '@phosphor/messaging'; export const DISABLED_CLASS = 'theia-mod-disabled'; export const EXPANSION_TOGGLE_CLASS = 'theia-ExpansionToggle'; -export const CODICON_TREE_ITEM_CLASSES = ['codicon', 'codicon-tree-item-expanded']; +export const CODICON_TREE_ITEM_CLASSES = ['codicon', 'codicon-chevron-down']; export const COLLAPSED_CLASS = 'theia-mod-collapsed'; export const BUSY_CLASS = 'theia-mod-busy'; export const SELECTED_CLASS = 'theia-mod-selected'; diff --git a/yarn.lock b/yarn.lock index be72751dc0da2..67a098dc6d7a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1774,6 +1774,11 @@ "@typescript-eslint/types" "4.28.5" eslint-visitor-keys "^2.0.0" +"@vscode/codicons@^0.0.21": + version "0.0.21" + resolved "https://registry.yarnpkg.com/@vscode/codicons/-/codicons-0.0.21.tgz#20ef724b141fdddba3ad86e85f34aaad29e4d3a0" + integrity sha512-oUfqbWTaEc2NIVLUxOK2Vi8AB/ixFfp52CkmR+pYZcWAr82IVIDDn50pdEDRXfJNIc4giHDSc5F5ZTsVMZK9Sg== + "@webassemblyjs/ast@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7"