Skip to content

Commit fedfd9a

Browse files
more prettier
1 parent 5d94169 commit fedfd9a

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

editors/code/.prettierrc.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
2-
// use 100 because it's Rustfmt's default
3-
// https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#max_width
4-
printWidth: 100,
5-
singleQuote: true,
6-
tabWidth: 4,
2+
// use 100 because it's Rustfmt's default
3+
// https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#max_width
4+
printWidth: 100,
5+
singleQuote: true,
6+
tabWidth: 4,
7+
trailingComma: 'none'
78
};

editors/code/src/main.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
Executable,
55
LanguageClient,
66
LanguageClientOptions,
7-
ServerOptions,
7+
ServerOptions
88
} from 'vscode-languageclient/node';
99

1010
let client: LanguageClient;
@@ -13,21 +13,28 @@ export function activate(context: ExtensionContext) {
1313
// If the extension is launched in debug mode then the debug server options are used
1414
// Otherwise the run options are used
1515
const run: Executable = {
16-
command: 'pglsp',
16+
command: 'pglsp'
1717
};
1818
const serverOptions: ServerOptions = {
1919
run,
20-
debug: run,
20+
debug: run
2121
};
2222

2323
// Options to control the language client
2424
const clientOptions: LanguageClientOptions = {
2525
// Register the server for plain text documents
26-
documentSelector: [{ scheme: 'file', language: 'sql' }],
26+
documentSelector: [
27+
{ scheme: 'file', language: 'sql' }
28+
]
2729
};
2830

2931
// Create the language client and start the client.
30-
client = new LanguageClient('postgres_lsp', 'Postgres LSP', serverOptions, clientOptions);
32+
client = new LanguageClient(
33+
'postgres_lsp',
34+
'Postgres LSP',
35+
serverOptions,
36+
clientOptions
37+
);
3138

3239
// Start the client. This will also launch the server
3340
client.start();

0 commit comments

Comments
 (0)