Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
10 changes: 10 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
semi: true,
singleQuote: false,
tabWidth: 2,
useTabs: false,
trailingComma: "all",
objectWrap: "preserve",
requirePragma: true,
endOfLine: "lf",
};
7 changes: 3 additions & 4 deletions BUILDING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Build process is not finalized yet, currently only Appimage is built for linux systems.

Build process is not finalized yet, but you can run the full app with extension support enabled.
It is recommended to build from source for now, see `DEVELOPING.md` first for basic environment setup.

See `DEVELOPING.md` first for basic environment setup.

The sources for the two kinds of builds are in `applications/`, with Electron builds being packaged by electron-builder.
The sources for the two kinds of builds are `browser-app` and `electron-app`, with Electron builds being packaged by electron-builder.
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Start watching either type of build you're working with:
# or
yarn watch:electron

> right now there seems to be a problem with the 'watch' automatic recompilation, for now just use `build:*` instead.
> right now there seems to be a problem with the 'watch' automatic recompilation, for now just use `build:*` or `start:*` instead.

To build without watching, use `build:browser` or `build:electron` instead.

Expand Down
34 changes: 17 additions & 17 deletions browser-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"name": "browser-app",
"version": "0.0.0",
"dependencies": {
"@theia/core": "1.58.1",
"@theia/editor": "1.58.1",
"@theia/filesystem": "1.58.1",
"@theia/markers": "1.58.1",
"@theia/messages": "1.58.1",
"@theia/monaco": "1.58.1",
"@theia/navigator": "1.58.1",
"@theia/plugin-dev": "^1.58.1",
"@theia/plugin-ext": "^1.58.1",
"@theia/plugin-ext-vscode": "^1.58.1",
"@theia/preferences": "1.58.1",
"@theia/process": "1.58.1",
"@theia/terminal": "1.58.1",
"@theia/vsx-registry": "^1.58.1",
"@theia/workspace": "1.58.1",
"@theia/core": "1.65.0",
"@theia/editor": "1.65.0",
"@theia/filesystem": "1.65.0",
"@theia/markers": "1.65.0",
"@theia/messages": "1.65.0",
"@theia/monaco": "1.65.0",
"@theia/navigator": "1.65.0",
"@theia/plugin-dev": "1.65.0",
"@theia/plugin-ext": "1.65.0",
"@theia/plugin-ext-vscode": "1.65.0",
"@theia/preferences": "1.65.0",
"@theia/process": "1.65.0",
"@theia/terminal": "1.65.0",
"@theia/vsx-registry": "1.65.0",
"@theia/workspace": "1.65.0",
"coderibbon-theia": "^0.0.0"
},
"devDependencies": {
"@theia/cli": "1.58.1"
"@theia/cli": "1.65.0"
},
"scripts": {
"bundle": "yarn rebuild && theia build --mode development",
Expand All @@ -32,4 +32,4 @@
"theia": {
"target": "browser"
}
}
}
4 changes: 2 additions & 2 deletions coderibbon-theia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"src"
],
"dependencies": {
"@theia/core": "1.58.1"
"@theia/core": "1.65.0"
},
"devDependencies": {
"less": "^4.1.3",
Expand All @@ -28,4 +28,4 @@
"frontend": "lib/browser/coderibbon-theia-frontend-module"
}
]
}
}
2 changes: 2 additions & 0 deletions coderibbon-theia/src/browser/coderibbon-theia-commands.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

import { injectable, inject } from "@theia/core/shared/inversify";

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

import { ContainerModule } from "@theia/core/shared/inversify";

import {
Expand All @@ -13,7 +15,7 @@ import {
// bindViewContribution, WidgetFactory,
KeybindingContribution,
} from "@theia/core/lib/browser";
import { PreferenceContribution } from "@theia/core/lib/browser/preferences";
import { PreferenceContribution } from "@theia/core/lib/common/preferences";
import { ApplicationShell } from "@theia/core/lib/browser/shell/application-shell";

// import { CodeRibbonTheiaRibbonViewContribution } from './coderibbon-theia-ribbon';
Expand Down
2 changes: 2 additions & 0 deletions coderibbon-theia/src/browser/coderibbon-theia-keybinds.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

import { injectable, inject } from "@theia/core/shared/inversify";

// import {
Expand Down
6 changes: 4 additions & 2 deletions coderibbon-theia/src/browser/coderibbon-theia-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/** @format */

import { injectable, inject } from "@theia/core/shared/inversify";

import { Widget } from "@phosphor/widgets";
import { Widget } from "@lumino/widgets";
import { MessageService } from "@theia/core/lib/common";
import {
AbstractViewContribution,
Expand All @@ -10,7 +12,7 @@ import {
import { FrontendApplication } from "@theia/core/lib/browser/frontend-application";
import { FrontendApplicationStateService } from "@theia/core/lib/browser/frontend-application-state";
import { ApplicationShell } from "@theia/core/lib/browser/shell/application-shell";
import { CorePreferences } from "@theia/core/lib/browser/core-preferences";
import { CorePreferences } from "@theia/core/lib/common/core-preferences";

// import { CodeRibbonApplicationShell } from './cr-application-shell';

Expand Down
2 changes: 2 additions & 0 deletions coderibbon-theia/src/browser/coderibbon-theia-menus.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

import { injectable } from "@theia/core/shared/inversify";

import { CommonMenus } from "@theia/core/lib/browser";
Expand Down
2 changes: 2 additions & 0 deletions coderibbon-theia/src/browser/coderibbon-theia-preferences.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

// @ts-nocheck

import { injectable } from "@theia/core/shared/inversify";
Expand Down
10 changes: 6 additions & 4 deletions coderibbon-theia/src/browser/cr-application-shell.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

import {
injectable,
inject,
Expand All @@ -13,18 +15,18 @@ import {
DockLayout,
BoxLayout,
FocusTracker,
} from "@phosphor/widgets";
} from "@lumino/widgets";
import { MessageService } from "@theia/core/lib/common";
import { FrontendApplicationStateService } from "@theia/core/lib/browser/frontend-application-state";
// import {
// FrontendApplication, FrontendApplicationContribution,
// } from '@theia/core/lib/browser/frontend-application';
import { CorePreferences } from "@theia/core/lib/browser/core-preferences";
import { CorePreferences } from "@theia/core/lib/common/core-preferences";
import {
TheiaDockPanel,
BOTTOM_AREA_ID,
MAIN_AREA_ID,
MAXIMIZED_CLASS,
// MAXIMIZED_CLASS,
} from "@theia/core/lib/browser/shell/theia-dock-panel";
import {
DockPanelRenderer,
Expand Down Expand Up @@ -93,7 +95,7 @@ export class CodeRibbonApplicationShell extends ApplicationShell {
alignment: "start",
direction: "left-to-right",
spacing: 0,
mode: 'multiple-document',
mode: "multiple-document",
renderer,
});

Expand Down
11 changes: 6 additions & 5 deletions coderibbon-theia/src/browser/cr-interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Widget, BoxLayout, DockLayout } from "@phosphor/widgets";
/** @format */

import { Widget, BoxLayout, DockLayout } from "@lumino/widgets";

import { CodeRibbonTheiaRibbonLayout } from "./cr-ribbon-layout";

Expand Down Expand Up @@ -49,22 +51,21 @@ export namespace RibbonPanel {
*/
skipAdjustRibbonTailLength?: boolean;
}
export type Mode = (
export type Mode =
/**
* The single document mode.
*
* In this mode, only a single widget is visible at a time, and that
* widget fills the available layout space. No tab bars are visible.
*/
'single-document' |
| "single-document"
/**
* The multiple document mode.
*
* In this mode, multiple documents are displayed in separate tab
* areas, and those areas can be individually resized by the user.
*/
'multiple-document'
);
| "multiple-document";
export interface IOptions {
direction?: BoxLayout.Direction; // only horizontal
alignment?: BoxLayout.Alignment; // only ...
Expand Down
2 changes: 2 additions & 0 deletions coderibbon-theia/src/browser/cr-logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

// import { injectable } from '@theia/core/shared/inversify';
//
// import { CommonMenus } from '@theia/core/lib/browser';
Expand Down
Loading