@@ -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" ;
2622export interface RegisterProjectFolderParams {
2723 path ?: string ;
2824 setAsCurrentWorkspace : boolean ;
@@ -40,10 +36,7 @@ export interface PullFileDiagnosticsParams {
4036}
4137export type RuleCategories = RuleCategory [ ] ;
4238export type RuleCode = string ;
43- export type RuleCategory =
44- | "Lint"
45- | "Action"
46- | "Transformation" ;
39+ export type RuleCategory = "Lint" | "Action" | "Transformation" ;
4740export 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" ;
188176export 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" ;
233217export 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" ;
596576export 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 =
1010990export 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" ;
1018994export interface RuleWithOptions_for_Null {
1019995 /**
1020996 * The severity of the emitted diagnostics by the rule
@@ -1066,9 +1042,13 @@ export interface CloseFileParams {
10661042export type Configuration = PartialConfiguration ;
10671043export 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