Skip to content

Commit 39ab00f

Browse files
more ready
1 parent d3feab6 commit 39ab00f

4 files changed

Lines changed: 28 additions & 68 deletions

File tree

crates/pgls_completions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ tracing = { workspace = true }
2525
tree-sitter.workspace = true
2626

2727
[dev-dependencies]
28-
pgls_schema_cache = { workspace = true, features = ["db"] }
2928
criterion.workspace = true
3029
insta.workspace = true
30+
pgls_schema_cache = { workspace = true, features = ["db"] }
3131
pgls_test_utils.workspace = true
3232
regex = "1.12.2"
3333
sqlx.workspace = true

crates/pgls_hover/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ tracing = { workspace = true }
2525
tree-sitter.workspace = true
2626

2727
[dev-dependencies]
28-
pgls_schema_cache = { workspace = true, features = ["db"] }
2928
insta = { version = "1.42.1" }
29+
pgls_schema_cache = { workspace = true, features = ["db"] }
3030
pgls_test_utils.workspace = true
3131
sqlx.workspace = true
3232

packages/@postgres-language-server/backend-jsonrpc/src/workspace.ts

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ export type FileKind = FileKind2[];
1818
/**
1919
* The priority of the file
2020
*/
21-
export type FileKind2 =
22-
| "Config"
23-
| "Ignore"
24-
| "Inspectable"
25-
| "Handleable";
21+
export type FileKind2 = "Config" | "Ignore" | "Inspectable" | "Handleable";
2622
export interface RegisterProjectFolderParams {
2723
path?: string;
2824
setAsCurrentWorkspace: boolean;
@@ -40,10 +36,7 @@ export interface PullFileDiagnosticsParams {
4036
}
4137
export type RuleCategories = RuleCategory[];
4238
export type RuleCode = string;
43-
export type RuleCategory =
44-
| "Lint"
45-
| "Action"
46-
| "Transformation";
39+
export type RuleCategory = "Lint" | "Action" | "Transformation";
4740
export interface PullDiagnosticsResult {
4841
diagnostics: Diagnostic[];
4942
skipped_diagnostics: number;
@@ -179,12 +172,7 @@ export type MarkupBuf = MarkupNodeBuf[];
179172
/**
180173
* The severity to associate to a diagnostic.
181174
*/
182-
export type Severity =
183-
| "hint"
184-
| "information"
185-
| "warning"
186-
| "error"
187-
| "fatal";
175+
export type Severity = "hint" | "information" | "warning" | "error" | "fatal";
188176
export type DiagnosticTags = DiagnosticTag[];
189177
/**
190178
* Serializable representation of a [Diagnostic](super::Diagnostic) advice
@@ -225,11 +213,7 @@ export type DiagnosticTag =
225213
/**
226214
* The category for a log advice, defines how the message should be presented to the user.
227215
*/
228-
export type LogCategory =
229-
| "none"
230-
| "info"
231-
| "warn"
232-
| "error";
216+
export type LogCategory = "none" | "info" | "warn" | "error";
233217
export interface TextEdit {
234218
dictionary: string;
235219
ops: CompressedOp[];
@@ -584,15 +568,11 @@ If we can't find the configuration, it will attempt to use the current working d
584568
/**
585569
* Keyword casing style for the formatter.
586570
*/
587-
export type KeywordCase =
588-
| "upper"
589-
| "lower";
571+
export type KeywordCase = "upper" | "lower";
590572
/**
591573
* Indentation style for the formatter.
592574
*/
593-
export type IndentStyle =
594-
| "spaces"
595-
| "tabs";
575+
export type IndentStyle = "spaces" | "tabs";
596576
export interface LinterRules {
597577
/**
598578
* It enables ALL rules. The rules that belong to `nursery` won't be enabled.
@@ -1010,11 +990,7 @@ export type RuleConfiguration_for_Null =
1010990
export type RuleConfiguration_for_SplinterRuleOptions =
1011991
| RulePlainConfiguration
1012992
| RuleWithOptions_for_SplinterRuleOptions;
1013-
export type RulePlainConfiguration =
1014-
| "warn"
1015-
| "error"
1016-
| "info"
1017-
| "off";
993+
export type RulePlainConfiguration = "warn" | "error" | "info" | "off";
1018994
export interface RuleWithOptions_for_Null {
1019995
/**
1020996
* The severity of the emitted diagnostics by the rule
@@ -1066,9 +1042,13 @@ export interface CloseFileParams {
10661042
export type Configuration = PartialConfiguration;
10671043
export interface Workspace {
10681044
isPathIgnored(params: IsPathIgnoredParams): Promise<boolean>;
1069-
registerProjectFolder(params: RegisterProjectFolderParams): Promise<ProjectKey>;
1045+
registerProjectFolder(
1046+
params: RegisterProjectFolderParams,
1047+
): Promise<ProjectKey>;
10701048
getFileContent(params: GetFileContentParams): Promise<string>;
1071-
pullFileDiagnostics(params: PullFileDiagnosticsParams): Promise<PullDiagnosticsResult>;
1049+
pullFileDiagnostics(
1050+
params: PullFileDiagnosticsParams,
1051+
): Promise<PullDiagnosticsResult>;
10721052
getCompletions(params: GetCompletionsParams): Promise<CompletionsResult>;
10731053
updateSettings(params: UpdateSettingsParams): Promise<void>;
10741054
openFile(params: OpenFileParams): Promise<void>;

packages/@postgrestools/backend-jsonrpc/src/workspace.ts

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ export type FileKind = FileKind2[];
1818
/**
1919
* The priority of the file
2020
*/
21-
export type FileKind2 =
22-
| "Config"
23-
| "Ignore"
24-
| "Inspectable"
25-
| "Handleable";
21+
export type FileKind2 = "Config" | "Ignore" | "Inspectable" | "Handleable";
2622
export interface RegisterProjectFolderParams {
2723
path?: string;
2824
setAsCurrentWorkspace: boolean;
@@ -40,10 +36,7 @@ export interface PullFileDiagnosticsParams {
4036
}
4137
export type RuleCategories = RuleCategory[];
4238
export type RuleCode = string;
43-
export type RuleCategory =
44-
| "Lint"
45-
| "Action"
46-
| "Transformation";
39+
export type RuleCategory = "Lint" | "Action" | "Transformation";
4740
export interface PullDiagnosticsResult {
4841
diagnostics: Diagnostic[];
4942
skipped_diagnostics: number;
@@ -179,12 +172,7 @@ export type MarkupBuf = MarkupNodeBuf[];
179172
/**
180173
* The severity to associate to a diagnostic.
181174
*/
182-
export type Severity =
183-
| "hint"
184-
| "information"
185-
| "warning"
186-
| "error"
187-
| "fatal";
175+
export type Severity = "hint" | "information" | "warning" | "error" | "fatal";
188176
export type DiagnosticTags = DiagnosticTag[];
189177
/**
190178
* Serializable representation of a [Diagnostic](super::Diagnostic) advice
@@ -225,11 +213,7 @@ export type DiagnosticTag =
225213
/**
226214
* The category for a log advice, defines how the message should be presented to the user.
227215
*/
228-
export type LogCategory =
229-
| "none"
230-
| "info"
231-
| "warn"
232-
| "error";
216+
export type LogCategory = "none" | "info" | "warn" | "error";
233217
export interface TextEdit {
234218
dictionary: string;
235219
ops: CompressedOp[];
@@ -584,15 +568,11 @@ If we can't find the configuration, it will attempt to use the current working d
584568
/**
585569
* Keyword casing style for the formatter.
586570
*/
587-
export type KeywordCase =
588-
| "upper"
589-
| "lower";
571+
export type KeywordCase = "upper" | "lower";
590572
/**
591573
* Indentation style for the formatter.
592574
*/
593-
export type IndentStyle =
594-
| "spaces"
595-
| "tabs";
575+
export type IndentStyle = "spaces" | "tabs";
596576
export interface LinterRules {
597577
/**
598578
* It enables ALL rules. The rules that belong to `nursery` won't be enabled.
@@ -1010,11 +990,7 @@ export type RuleConfiguration_for_Null =
1010990
export type RuleConfiguration_for_SplinterRuleOptions =
1011991
| RulePlainConfiguration
1012992
| RuleWithOptions_for_SplinterRuleOptions;
1013-
export type RulePlainConfiguration =
1014-
| "warn"
1015-
| "error"
1016-
| "info"
1017-
| "off";
993+
export type RulePlainConfiguration = "warn" | "error" | "info" | "off";
1018994
export interface RuleWithOptions_for_Null {
1019995
/**
1020996
* The severity of the emitted diagnostics by the rule
@@ -1066,9 +1042,13 @@ export interface CloseFileParams {
10661042
export type Configuration = PartialConfiguration;
10671043
export interface Workspace {
10681044
isPathIgnored(params: IsPathIgnoredParams): Promise<boolean>;
1069-
registerProjectFolder(params: RegisterProjectFolderParams): Promise<ProjectKey>;
1045+
registerProjectFolder(
1046+
params: RegisterProjectFolderParams,
1047+
): Promise<ProjectKey>;
10701048
getFileContent(params: GetFileContentParams): Promise<string>;
1071-
pullFileDiagnostics(params: PullFileDiagnosticsParams): Promise<PullDiagnosticsResult>;
1049+
pullFileDiagnostics(
1050+
params: PullFileDiagnosticsParams,
1051+
): Promise<PullDiagnosticsResult>;
10721052
getCompletions(params: GetCompletionsParams): Promise<CompletionsResult>;
10731053
updateSettings(params: UpdateSettingsParams): Promise<void>;
10741054
openFile(params: OpenFileParams): Promise<void>;

0 commit comments

Comments
 (0)