Skip to content

Commit 95433f0

Browse files
committed
Revert "Prettify in all other files"
This reverts commit df14ca2.
1 parent df14ca2 commit 95433f0

File tree

5 files changed

+14
-24
lines changed

5 files changed

+14
-24
lines changed

packages/completion-theme/src/index.ts

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

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

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ 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(
129-
protected extension: ILSPExtension,
130-
public widget: T
131-
) {
128+
protected constructor(protected extension: ILSPExtension, public widget: T) {
132129
this.app = extension.app;
133130
this.connection_manager = extension.connection_manager;
134131
this.adapterConnected = new Signal(this);

packages/jupyterlab-lsp/src/connection.ts

Lines changed: 8 additions & 8 deletions
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-
// ISignal does not have emit, which is intended - client cannot emit server notifications.
145-
readonly [key in T]: ISignal<LSPConnection, IServerNotifyParams[key]>;
144+
readonly // ISignal does not have emit, which is intended - client cannot emit server notifications.
145+
[key in T]: ISignal<LSPConnection, IServerNotifyParams[key]>;
146146
};
147147

148148
export type ClientNotifications<
149149
T extends keyof IClientNotifyParams = keyof IClientNotifyParams
150150
> = {
151-
// Signal has emit.
152-
readonly [key in T]: Signal<LSPConnection, IClientNotifyParams[key]>;
151+
readonly // Signal has emit.
152+
[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-
// has async request(params) returning a promise with result.
177-
readonly [key in T]: IClientRequestHandler<key>;
176+
readonly // has async request(params) returning a promise with result.
177+
[key in T]: IClientRequestHandler<key>;
178178
};
179179

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

187187
class ClientRequestHandler<

packages/jupyterlab-lsp/src/feature.ts

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

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

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

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

0 commit comments

Comments
 (0)