pub enum WillCreateFilesRequest {}Expand description
The will create files request is sent from the client to the server before files are actually created as long as the creation is triggered from within the client.
The request can return a WorkspaceEdit which will be applied to workspace before the
files are created. Hence the WorkspaceEdit can not manipulate the content of the file
to be created.
@since 3.16.0
Trait Implementations§
Source§impl Debug for WillCreateFilesRequest
impl Debug for WillCreateFilesRequest
Source§impl Request for WillCreateFilesRequest
impl Request for WillCreateFilesRequest
const METHOD: LspRequestMethod<'static> = LspRequestMethod::WorkspaceWillCreateFiles
const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer
type Params = CreateFilesParams
type Result = Option<WorkspaceEdit>
Auto Trait Implementations§
impl Freeze for WillCreateFilesRequest
impl RefUnwindSafe for WillCreateFilesRequest
impl Send for WillCreateFilesRequest
impl Sync for WillCreateFilesRequest
impl Unpin for WillCreateFilesRequest
impl UnsafeUnpin for WillCreateFilesRequest
impl UnwindSafe for WillCreateFilesRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more