File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
packages/completion-theme/src Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ReactElement } from 'react' ;
2
- import { ICompletionTheme , ILicenseInfo } from './types' ;
2
+ import { ICompletionTheme , ILicenseInfo , COMPLETER_THEME_PREFIX } from './types' ;
3
3
import { LabIcon } from '@jupyterlab/ui-components' ;
4
4
5
5
function render_licence ( licence : ILicenseInfo ) : ReactElement {
@@ -32,7 +32,7 @@ function render_theme(
32
32
) ;
33
33
}
34
34
return (
35
- < div className = { 'lsp-completer-themes' } >
35
+ < div className = { 'lsp-completer-themes ' + COMPLETER_THEME_PREFIX + theme . id } >
36
36
< h4 >
37
37
{ theme . name }
38
38
{ is_current ? ' (current)' : '' }
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import {
10
10
ICompletionIconSet ,
11
11
ICompletionTheme ,
12
12
ILSPCompletionThemeManager ,
13
- PLUGIN_ID
13
+ PLUGIN_ID ,
14
+ COMPLETER_THEME_PREFIX
14
15
} from './types' ;
15
16
import { render_themes_list } from './about' ;
16
17
import '../style/index.css' ;
@@ -91,7 +92,7 @@ export class CompletionThemeManager implements ILSPCompletionThemeManager {
91
92
}
92
93
93
94
protected get current_theme_class ( ) {
94
- return 'lsp-completer-theme-' + this . current_theme_id ;
95
+ return COMPLETER_THEME_PREFIX + this . current_theme_id ;
95
96
}
96
97
97
98
set_theme ( id : string | null ) {
Original file line number Diff line number Diff line change 1
1
import { Token } from '@lumino/coreutils' ;
2
2
import { LabIcon } from '@jupyterlab/ui-components' ;
3
3
4
+ export const COMPLETER_THEME_PREFIX = 'lsp-completer-theme-' ;
5
+
4
6
// TODO, once features are extracted to standalone packages,
5
7
// import the CompletionItemKindStrings from @feature -completer
6
8
enum CompletionItemKind {
You can’t perform that action at this time.
0 commit comments