Skip to content

Commit e3cea1e

Browse files
committed
cleanup and formatting
1 parent 1145644 commit e3cea1e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

server/src/server.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as v from "vscode-languageserver";
44
import * as rpc from "vscode-jsonrpc/node";
55
import * as path from "path";
66
import fs from "fs";
7-
import os from "os";
87
// TODO: check DidChangeWatchedFilesNotification.
98
import {
109
DidOpenTextDocumentNotification,
@@ -41,7 +40,7 @@ let extensionConfiguration: extensionConfiguration = {
4140
askToStartBuild: true,
4241
inlayHints: {
4342
enable: false,
44-
maxLength: 25
43+
maxLength: 25,
4544
},
4645
codeLens: false,
4746
binaryPath: null,
@@ -78,7 +77,7 @@ let projectsFiles: Map<
7877
let codeActionsFromDiagnostics: codeActions.filesCodeActions = {};
7978

8079
// will be properly defined later depending on the mode (stdio/node-rpc)
81-
let send: (msg: p.Message) => void = (_) => { };
80+
let send: (msg: p.Message) => void = (_) => {};
8281

8382
let findBinaryDirPathFromProjectRoot = (
8483
directory: p.DocumentUri // This must be a directory and not a file!
@@ -405,7 +404,13 @@ function inlayHint(msg: p.RequestMessage) {
405404

406405
const response = utils.runAnalysisCommand(
407406
filePath,
408-
["inlayHint", filePath, params.range.start.line, params.range.end.line, extensionConfiguration.inlayHints.maxLength],
407+
[
408+
"inlayHint",
409+
filePath,
410+
params.range.start.line,
411+
params.range.end.line,
412+
extensionConfiguration.inlayHints.maxLength,
413+
],
409414
msg
410415
);
411416
return response;

0 commit comments

Comments
 (0)