Skip to content

Commit

Permalink
Upgrade Theia dependencies to 1.28.0
Browse files Browse the repository at this point in the history
Update code for removed API in ThemeService.

Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
  • Loading branch information
bhufmann committed Aug 31, 2022
1 parent 8fbb35e commit 4e699e2
Show file tree
Hide file tree
Showing 8 changed files with 1,409 additions and 820 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]
node-version: [16.x]

steps:
- name: install dependencies on ubuntu
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN sudo apt-get update \
# Clear package info (to free space)
&& sudo rm -rf /var/lib/apt/lists/*

ENV NODE_VERSION="12.14.1"
ENV NODE_VERSION="16.17.0"
RUN bash -c ". .nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION \
Expand Down
30 changes: 15 additions & 15 deletions examples/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@
}
},
"dependencies": {
"@theia/core": "1.21.0",
"@theia/editor": "1.21.0",
"@theia/filesystem": "1.21.0",
"@theia/getting-started": "1.21.0",
"@theia/keymaps": "1.21.0",
"@theia/markers": "1.21.0",
"@theia/messages": "1.21.0",
"@theia/monaco": "1.21.0",
"@theia/navigator": "1.21.0",
"@theia/preferences": "1.21.0",
"@theia/process": "1.21.0",
"@theia/terminal": "1.21.0",
"@theia/vsx-registry": "1.21.0",
"@theia/workspace": "1.21.0",
"@theia/core": "1.28.0",
"@theia/editor": "1.28.0",
"@theia/filesystem": "1.28.0",
"@theia/getting-started": "1.28.0",
"@theia/keymaps": "1.28.0",
"@theia/markers": "1.28.0",
"@theia/messages": "1.28.0",
"@theia/monaco": "1.28.0",
"@theia/navigator": "1.28.0",
"@theia/preferences": "1.28.0",
"@theia/process": "1.28.0",
"@theia/terminal": "1.28.0",
"@theia/vsx-registry": "1.28.0",
"@theia/workspace": "1.28.0",
"theia-traceviewer": "0.1.0"
},
"devDependencies": {
"@theia/cli": "1.21.0"
"@theia/cli": "1.28.0"
},
"scripts": {
"prepare": "theia build --mode development",
Expand Down
33 changes: 17 additions & 16 deletions examples/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,26 @@
}
},
"dependencies": {
"@theia/core": "1.21.0",
"@theia/editor": "1.21.0",
"@theia/electron": "1.21.0",
"@theia/filesystem": "1.21.0",
"@theia/getting-started": "1.21.0",
"@theia/keymaps": "1.21.0",
"@theia/markers": "1.21.0",
"@theia/messages": "1.21.0",
"@theia/monaco": "1.21.0",
"@theia/navigator": "1.21.0",
"@theia/preferences": "1.21.0",
"@theia/process": "1.21.0",
"@theia/terminal": "1.21.0",
"@theia/vsx-registry": "1.21.0",
"@theia/workspace": "1.21.0",
"@theia/core": "1.28.0",
"@theia/editor": "1.28.0",
"@theia/electron": "1.28.0",
"@theia/filesystem": "1.28.0",
"@theia/getting-started": "1.28.0",
"@theia/keymaps": "1.28.0",
"@theia/markers": "1.28.0",
"@theia/messages": "1.28.0",
"@theia/monaco": "1.28.0",
"@theia/navigator": "1.28.0",
"@theia/preferences": "1.28.0",
"@theia/process": "1.28.0",
"@theia/terminal": "1.28.0",
"@theia/vsx-registry": "1.28.0",
"@theia/workspace": "1.28.0",
"theia-traceviewer": "0.1.0"
},
"devDependencies": {
"@theia/cli": "1.21.0",
"@theia/cli": "1.28.0",
"electron": "^15.3.5",
"electron-builder": "~22.9.1"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
},
"homepage": "https://github.com/theia-ide/theia-trace-extension",
"devDependencies": {
"@theia/cli": "1.21.0",
"@theia/cli": "1.28.0",
"jsonc-parser": "^3.0.0",
"lerna": "^4.0.0",
"typescript": "4.5.4"
"typescript": "4.5.5"
},
"workspaces": [
"examples/*",
Expand Down
6 changes: 3 additions & 3 deletions theia-extensions/viewer-prototype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"src"
],
"dependencies": {
"@theia/core": "1.21.0",
"@theia/editor": "1.21.0",
"@theia/filesystem": "1.21.0",
"@theia/core": "1.28.0",
"@theia/editor": "1.28.0",
"@theia/filesystem": "1.28.0",
"traceviewer-base": "0.1.0",
"traceviewer-react-components": "0.1.0",
"tree-kill": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class TraceViewerWidget extends ReactWidget implements StatefulWidget {
@inject(MessageService) protected readonly messageService: MessageService;
@inject(TraceExplorerContribution) protected readonly traceExplorerContribution: TraceExplorerContribution;
@inject(WidgetManager) protected readonly widgetManager!: WidgetManager;
@inject(ThemeService) protected readonly themeService: ThemeService;

@postConstruct()
async init(): Promise<void> {
Expand All @@ -90,8 +91,8 @@ export class TraceViewerWidget extends ReactWidget implements StatefulWidget {
this.title.label = 'Trace: ' + this.uri.base;
this.title.closable = true;
this.addClass('theia-trace-open');
this.backgroundTheme = ThemeService.get().getCurrentTheme().type;
ThemeService.get().onDidColorThemeChange(() => this.updateBackgroundTheme());
this.backgroundTheme = this.themeService.getCurrentTheme().type;
this.themeService.onDidColorThemeChange(() => this.updateBackgroundTheme());
if (!this.options.traceUUID) {
this.initialize();
}
Expand Down Expand Up @@ -143,7 +144,7 @@ export class TraceViewerWidget extends ReactWidget implements StatefulWidget {
}

protected updateBackgroundTheme(): void {
const currentThemeType = ThemeService.get().getCurrentTheme().type;
const currentThemeType = this.themeService.getCurrentTheme().type;
signalManager().fireThemeChangedSignal(currentThemeType);
}

Expand Down
Loading

0 comments on commit 4e699e2

Please sign in to comment.