Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 3c71dc7

Browse files
committed
fix errors an make highlighting work as intended, when it is disabled
1 parent defde90 commit 3c71dc7

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

rollup.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ const PreferencesEntries = Object.fromEntries(
6464

6565
const thirdParty = [
6666
'htmlparser2',
67-
'prismjs',
6867
'date-fns/formatDistanceToNow',
6968
'date-fns/locale',
7069
'hex-color-converter',
7170
'is-url',
7271
'pretty-bytes',
73-
'validate-color'
72+
'validate-color',
7473
];
7574

7675
const gnomeShellExternalModules = [/^resource:\/\/\/org\/gnome\/(shell|Shell\/Extensions)\/.*/];

src/components/codePanoItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class CodePanoItem extends PanoItem {
4343
this.body.set_style(`background-color: ${bodyBgColor}`);
4444
this.label.set_style(`font-size: ${bodyFontSize}px; font-family: ${bodyFontFamily};`);
4545

46-
this.label.clutterText.set_markup(markupCode(this.language, this.dbItem.content.trim()));
46+
this.label.clutterText.set_markup(markupCode(this.language, this.dbItem.content.trim(), characterLength));
4747
}
4848

4949
private setClipboardContent(): void {

src/utils/clipboardManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class ClipboardManager extends GObject.Object {
156156

157157
this.selectionChangedId = this.selection.connect(
158158
'owner-changed',
159-
async (_selection: Selection, selectionType: Meta.SelectionType, _selectionSource: Meta.SelectionSource) => {
159+
async (_selection: Meta.Selection, selectionType: Meta.SelectionType, _selectionSource: Meta.SelectionSource) => {
160160
if (this.settings.get_boolean('is-in-incognito')) {
161161
return;
162162
}

src/utils/pango.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ export type Language = {
77
language: string;
88
};
99

10-
export function detectLanguage(text: string): Language | undefined {
10+
export function detectLanguage(_text: string): Language | undefined {
1111
//TODO: implement language detection
12-
debug('TODO');
1312
return undefined;
1413
}
1514

16-
export function markupCode(language: string, text: string): string {
15+
export function markupCode(_language: string, _text: string, _characterLength: number): string {
1716
//TODO implement code highlighting
1817
debug('TODO');
1918
return '';

0 commit comments

Comments
 (0)