Skip to content

Commit df14ca2

Browse files
committed
Prettify in all other files
1 parent 5505c4b commit df14ca2

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

packages/completion-theme/src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export class CompletionThemeManager implements ILSPCompletionThemeManager {
2929
private icon_overrides: Map<string, CompletionItemKindStrings>;
3030
private trans: TranslationBundle;
3131

32-
constructor(protected themeManager: IThemeManager, trans: TranslationBundle) {
32+
constructor(
33+
protected themeManager: IThemeManager,
34+
trans: TranslationBundle
35+
) {
3336
this.themes = new Map();
3437
this.icons_cache = new Map();
3538
this.icon_overrides = new Map();

packages/jupyterlab-lsp/src/adapters/adapter.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ export abstract class WidgetAdapter<T extends IDocumentWidget> {
125125
// note: it could be using namespace/IOptions pattern,
126126
// but I do not know how to make it work with the generic type T
127127
// (other than using 'any' in the IOptions interface)
128-
protected constructor(protected extension: ILSPExtension, public widget: T) {
128+
protected constructor(
129+
protected extension: ILSPExtension,
130+
public widget: T
131+
) {
129132
this.app = extension.app;
130133
this.connection_manager = extension.connection_manager;
131134
this.adapterConnected = new Signal(this);

packages/jupyterlab-lsp/src/connection.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ export interface IClientResult {
141141
export type ServerNotifications<
142142
T extends keyof IServerNotifyParams = keyof IServerNotifyParams
143143
> = {
144-
readonly // ISignal does not have emit, which is intended - client cannot emit server notifications.
145-
[key in T]: ISignal<LSPConnection, IServerNotifyParams[key]>;
144+
// ISignal does not have emit, which is intended - client cannot emit server notifications.
145+
readonly [key in T]: ISignal<LSPConnection, IServerNotifyParams[key]>;
146146
};
147147

148148
export type ClientNotifications<
149149
T extends keyof IClientNotifyParams = keyof IClientNotifyParams
150150
> = {
151-
readonly // Signal has emit.
152-
[key in T]: Signal<LSPConnection, IClientNotifyParams[key]>;
151+
// Signal has emit.
152+
readonly [key in T]: Signal<LSPConnection, IClientNotifyParams[key]>;
153153
};
154154

155155
export interface IClientRequestHandler<
@@ -173,15 +173,15 @@ export interface IServerRequestHandler<
173173
export type ClientRequests<
174174
T extends keyof IClientRequestParams = keyof IClientRequestParams
175175
> = {
176-
readonly // has async request(params) returning a promise with result.
177-
[key in T]: IClientRequestHandler<key>;
176+
// has async request(params) returning a promise with result.
177+
readonly [key in T]: IClientRequestHandler<key>;
178178
};
179179

180180
export type ServerRequests<
181181
T extends keyof IServerRequestParams = keyof IServerRequestParams
182182
> = {
183-
readonly // has async request(params) returning a promise with result.
184-
[key in T]: IServerRequestHandler<key>;
183+
// has async request(params) returning a promise with result.
184+
readonly [key in T]: IServerRequestHandler<key>;
185185
};
186186

187187
class ClientRequestHandler<

packages/jupyterlab-lsp/src/feature.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export class FeatureSettings<T> implements IFeatureSettings<T> {
6868
public changed: Signal<FeatureSettings<T>, void>;
6969
private _ready = new PromiseDelegate<void>();
7070

71-
constructor(protected settingRegistry: ISettingRegistry, featureID: string) {
71+
constructor(
72+
protected settingRegistry: ISettingRegistry,
73+
featureID: string
74+
) {
7275
this.changed = new Signal(this);
7376
if (!(featureID in settingRegistry.plugins)) {
7477
this._ready.reject(

packages/jupyterlab-lsp/src/features/jump_to.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,10 @@ const COMMANDS = (trans: TranslationBundle): IFeatureCommand[] => [
414414
character: virtual_position.ch
415415
}
416416
};
417-
const targets = await connection.clientRequests[
418-
'textDocument/definition'
419-
].request(positionParams);
417+
const targets =
418+
await connection.clientRequests['textDocument/definition'].request(
419+
positionParams
420+
);
420421
await jumpFeature.handleJump(targets, positionParams);
421422
},
422423
is_enabled: ({ connection }) =>

0 commit comments

Comments
 (0)