Skip to content

Commit 5d94169

Browse files
use previous prettier config
1 parent b59c83c commit 5d94169

File tree

2 files changed

+33
-31
lines changed

2 files changed

+33
-31
lines changed

editors/code/.prettierrc.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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,
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,
57
};

editors/code/src/main.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
import { ExtensionContext } from "vscode";
1+
import { ExtensionContext } from 'vscode';
22

33
import {
4-
Executable,
5-
LanguageClient,
6-
LanguageClientOptions,
7-
ServerOptions,
8-
} from "vscode-languageclient/node";
4+
Executable,
5+
LanguageClient,
6+
LanguageClientOptions,
7+
ServerOptions,
8+
} from 'vscode-languageclient/node';
99

1010
let client: LanguageClient;
1111

1212
export function activate(context: ExtensionContext) {
13-
// If the extension is launched in debug mode then the debug server options are used
14-
// Otherwise the run options are used
15-
const run: Executable = {
16-
command: "pglsp",
17-
};
18-
const serverOptions: ServerOptions = {
19-
run,
20-
debug: run,
21-
};
13+
// If the extension is launched in debug mode then the debug server options are used
14+
// Otherwise the run options are used
15+
const run: Executable = {
16+
command: 'pglsp',
17+
};
18+
const serverOptions: ServerOptions = {
19+
run,
20+
debug: run,
21+
};
2222

23-
// Options to control the language client
24-
const clientOptions: LanguageClientOptions = {
25-
// Register the server for plain text documents
26-
documentSelector: [{ scheme: "file", language: "sql" }],
27-
};
23+
// Options to control the language client
24+
const clientOptions: LanguageClientOptions = {
25+
// Register the server for plain text documents
26+
documentSelector: [{ scheme: 'file', language: 'sql' }],
27+
};
2828

29-
// Create the language client and start the client.
30-
client = new LanguageClient("postgres_lsp", "Postgres LSP", serverOptions, clientOptions);
29+
// Create the language client and start the client.
30+
client = new LanguageClient('postgres_lsp', 'Postgres LSP', serverOptions, clientOptions);
3131

32-
// Start the client. This will also launch the server
33-
client.start();
32+
// Start the client. This will also launch the server
33+
client.start();
3434
}
3535

3636
export function deactivate(): Thenable<void> | undefined {
37-
if (!client) {
38-
return undefined;
39-
}
40-
return client.stop();
37+
if (!client) {
38+
return undefined;
39+
}
40+
return client.stop();
4141
}

0 commit comments

Comments
 (0)