From d3e8048c213caf83c71ec7ca370acd24eca74353 Mon Sep 17 00:00:00 2001 From: ematipico Date: Mon, 5 Dec 2022 09:07:15 +0000 Subject: [PATCH] fix: rebase, codegen and bindings --- crates/rome_formatter/src/diagnostics.rs | 6 +++--- crates/rome_js_syntax/src/union_ext.rs | 2 +- crates/rome_service/src/diagnostics.rs | 2 +- npm/backend-jsonrpc/src/workspace.ts | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/rome_formatter/src/diagnostics.rs b/crates/rome_formatter/src/diagnostics.rs index c43417408843..dd54f911b76c 100644 --- a/crates/rome_formatter/src/diagnostics.rs +++ b/crates/rome_formatter/src/diagnostics.rs @@ -18,10 +18,10 @@ pub enum FormatError { InvalidDocument(InvalidDocumentError), /// Formatting failed because some content encountered a situation where a layout - /// choice by an enclosing [`Format`] resulted in a poor layout for a child [`Format`]. + /// choice by an enclosing [crate::Format] resulted in a poor layout for a child [crate::Format]. /// - /// It's up to an enclosing [`Format`] to handle the error and pick another layout. - /// This error should not be raised if there's no outer [`Format`] handling the poor layout error, + /// It's up to an enclosing [crate::Format] to handle the error and pick another layout. + /// This error should not be raised if there's no outer [crate::Format] handling the poor layout error, /// avoiding that formatting of the whole document fails. PoorLayout, } diff --git a/crates/rome_js_syntax/src/union_ext.rs b/crates/rome_js_syntax/src/union_ext.rs index 76313b3454ed..873964933d41 100644 --- a/crates/rome_js_syntax/src/union_ext.rs +++ b/crates/rome_js_syntax/src/union_ext.rs @@ -109,7 +109,7 @@ impl AnyJsClassMember { } } - /// Tests if the member has a [`JsLiteralMemberName`](rome_js_syntax::JsLiteralMemberName) of `name`. + /// Tests if the member has a [`JsLiteralMemberName`](crate::JsLiteralMemberName) of `name`. pub fn has_name(&self, name: &str) -> SyntaxResult { match self.name()? { Some(AnyJsClassMemberName::JsLiteralMemberName(literal)) => { diff --git a/crates/rome_service/src/diagnostics.rs b/crates/rome_service/src/diagnostics.rs index 08b330f8ab49..fdb6cb6c3687 100644 --- a/crates/rome_service/src/diagnostics.rs +++ b/crates/rome_service/src/diagnostics.rs @@ -19,7 +19,7 @@ use std::path::PathBuf; pub enum RomeError { /// The project contains uncommitted changes DirtyWorkspace, - /// The file does not exist in the [Workspace] + /// The file does not exist in the [crate::Workspace] NotFound, /// A file is not supported. It contains the language and path of the file /// Use this error if Rome is trying to process a file that Rome can't understand diff --git a/npm/backend-jsonrpc/src/workspace.ts b/npm/backend-jsonrpc/src/workspace.ts index 221e79e90be2..d874ebf9149e 100644 --- a/npm/backend-jsonrpc/src/workspace.ts +++ b/npm/backend-jsonrpc/src/workspace.ts @@ -725,6 +725,7 @@ export type Category = | "suppressions/unknownRule" | "suppressions/unused" | "suppressions/deprecatedSyntax" + | "configuration" | "args/fileNotFound" | "flags/invalid" | "semanticTests";