11// @generated
22
33/*---------------------------------------------------------------------------------------------
4- * Copyright (C) 2024-2025 Posit Software, PBC. All rights reserved.
4+ * Copyright (C) 2024-2026 Posit Software, PBC. All rights reserved.
55 *--------------------------------------------------------------------------------------------*/
66
77//
@@ -166,6 +166,17 @@ pub struct CallMethodParams {
166166 pub params : Vec < Param > ,
167167}
168168
169+ /// Parameters for the EditorContextChanged method.
170+ #[ derive( Clone , Debug , Serialize , Deserialize , PartialEq ) ]
171+ pub struct EditorContextChangedParams {
172+ /// The URI of the active document, or empty string if no editor is active
173+ pub document_uri : String ,
174+
175+ /// Whether this editor is the source of code being executed. When true,
176+ /// the backend may temporarily add the file's directory to sys.path.
177+ pub is_execution_source : bool ,
178+ }
179+
169180/// Parameters for the Busy method.
170181#[ derive( Clone , Debug , Serialize , Deserialize , PartialEq ) ]
171182pub struct BusyParams {
@@ -188,6 +199,10 @@ pub struct OpenEditorParams {
188199 /// How to interpret the 'file' argument: as a file path or as a URI. If
189200 /// omitted, defaults to 'path'.
190201 pub kind : OpenEditorKind ,
202+
203+ /// Whether to open the editor pinned (non-preview mode). If omitted,
204+ /// defaults to true.
205+ pub pinned : Option < bool > ,
191206}
192207
193208/// Parameters for the NewDocument method.
@@ -399,6 +414,15 @@ pub enum UiBackendRequest {
399414 #[ serde( rename = "call_method" ) ]
400415 CallMethod ( CallMethodParams ) ,
401416
417+ /// Active editor context changed
418+ ///
419+ /// This notification is sent from the frontend to the backend when the
420+ /// active text editor changes or when code is about to be executed from a
421+ /// file. It provides the document URI and indicates whether this is the
422+ /// source file for code execution.
423+ #[ serde( rename = "editor_context_changed" ) ]
424+ EditorContextChanged ( EditorContextChangedParams ) ,
425+
402426}
403427
404428/**
@@ -413,6 +437,9 @@ pub enum UiBackendReply {
413437 /// The method result
414438 CallMethodReply ( CallMethodResult ) ,
415439
440+ /// Unused response to notification
441+ EditorContextChangedReply ( ) ,
442+
416443}
417444
418445/**
0 commit comments