@@ -299,6 +299,7 @@ export interface MainThreadLanguageFeaturesShape extends IDisposable {
299299 $unregister ( handle : number ) : void ;
300300 $registerDocumentSymbolProvider ( handle : number , selector : ISerializedDocumentFilter [ ] , label : string ) : void ;
301301 $registerCodeLensSupport ( handle : number , selector : ISerializedDocumentFilter [ ] , eventHandle : number | undefined ) : void ;
302+ $registerCodeInsetSupport ( handle : number , selector : ISerializedDocumentFilter [ ] , eventHandle : number , extension : IExtensionDescription ) : void ;
302303 $emitCodeLensEvent ( eventHandle : number , event ?: any ) : void ;
303304 $registerDefinitionSupport ( handle : number , selector : ISerializedDocumentFilter [ ] ) : void ;
304305 $registerDeclarationSupport ( handle : number , selector : ISerializedDocumentFilter [ ] ) : void ;
@@ -473,7 +474,7 @@ export interface WebviewPanelShowOptions {
473474}
474475
475476export interface MainThreadWebviewsShape extends IDisposable {
476- $createWebviewPanel ( handle : WebviewPanelHandle , viewType : string , title : string , showOptions : WebviewPanelShowOptions , options : vscode . WebviewPanelOptions & vscode . WebviewOptions , extensionId : ExtensionIdentifier , extensionLocation : UriComponents ) : void ;
477+ $createWebview ( handle : WebviewPanelHandle , viewType : string , title : string , showOptions : WebviewPanelShowOptions , options : vscode . WebviewPanelOptions & vscode . WebviewOptions , extensionId : ExtensionIdentifier , extensionLocation : UriComponents ) : void ;
477478 $disposeWebview ( handle : WebviewPanelHandle ) : void ;
478479 $reveal ( handle : WebviewPanelHandle , showOptions : WebviewPanelShowOptions ) : void ;
479480 $setTitle ( handle : WebviewPanelHandle , value : string ) : void ;
@@ -499,6 +500,18 @@ export interface ExtHostWebviewsShape {
499500 $deserializeWebviewPanel ( newWebviewHandle : WebviewPanelHandle , viewType : string , title : string , state : any , position : EditorViewColumn , options : vscode . WebviewOptions ) : Promise < void > ;
500501}
501502
503+ // export type CodeInsetWebviewHandle = string;
504+
505+ // export interface ExtHostCodeInsetWebviewsShape {
506+ // }
507+
508+ // export interface ExtHostCodeInsetWebviewShape extends IDisposable {
509+ // $setHtml(handle: WebviewPanelHandle, value: string): void;
510+ // $setOptions(handle: WebviewPanelHandle, options: vscode.WebviewOptions): void;
511+ // $postMessage(handle: WebviewPanelHandle, value: any): Promise<boolean>;
512+ // }
513+
514+
502515export interface MainThreadUrlsShape extends IDisposable {
503516 $registerUriHandler ( handle : number , extensionId : ExtensionIdentifier ) : Promise < void > ;
504517 $unregisterUriHandler ( handle : number ) : Promise < void > ;
@@ -892,10 +905,14 @@ export interface CodeLensDto extends ObjectIdentifier {
892905 command ?: CommandDto ;
893906}
894907
908+ export type CodeInsetDto = ObjectIdentifier & modes . ICodeInsetSymbol ;
909+
895910export interface ExtHostLanguageFeaturesShape {
896911 $provideDocumentSymbols ( handle : number , resource : UriComponents , token : CancellationToken ) : Promise < modes . DocumentSymbol [ ] | undefined > ;
897912 $provideCodeLenses ( handle : number , resource : UriComponents , token : CancellationToken ) : Promise < CodeLensDto [ ] > ;
898913 $resolveCodeLens ( handle : number , resource : UriComponents , symbol : CodeLensDto , token : CancellationToken ) : Promise < CodeLensDto > ;
914+ $provideCodeInsets ( handle : number , resource : UriComponents , token : CancellationToken ) : Promise < CodeInsetDto [ ] > ;
915+ $resolveCodeInset ( handle : number , resource : UriComponents , symbol : CodeInsetDto , token : CancellationToken ) : Promise < CodeInsetDto > ;
899916 $provideDefinition ( handle : number , resource : UriComponents , position : IPosition , token : CancellationToken ) : Promise < DefinitionLinkDto [ ] > ;
900917 $provideDeclaration ( handle : number , resource : UriComponents , position : IPosition , token : CancellationToken ) : Promise < DefinitionLinkDto [ ] > ;
901918 $provideImplementation ( handle : number , resource : UriComponents , position : IPosition , token : CancellationToken ) : Promise < DefinitionLinkDto [ ] > ;
@@ -1157,6 +1174,7 @@ export const ExtHostContext = {
11571174 ExtHostWorkspace : createExtId < ExtHostWorkspaceShape > ( 'ExtHostWorkspace' ) ,
11581175 ExtHostWindow : createExtId < ExtHostWindowShape > ( 'ExtHostWindow' ) ,
11591176 ExtHostWebviews : createExtId < ExtHostWebviewsShape > ( 'ExtHostWebviews' ) ,
1177+ // ExtHostCodeInsetWebviews: createExtId<ExtHostCodeInsetWebviewsShape>('ExtHostWebviews'),
11601178 ExtHostProgress : createMainId < ExtHostProgressShape > ( 'ExtHostProgress' ) ,
11611179 ExtHostComments : createMainId < ExtHostCommentsShape > ( 'ExtHostComments' ) ,
11621180 ExtHostStorage : createMainId < ExtHostStorageShape > ( 'ExtHostStorage' ) ,
0 commit comments