text stringlengths 0 601k |
|---|
module Location = struct include Class . Make ( ) include [ % js : val uri : t -> Uri . t [ @@ js . get ] val range : t -> Range . t [ @@ js . get ] val make : uri : Uri . t -> rangeOrPosition : ( [ ` Range of Range . t | ` Position of Position . t ] [ @ js . union ] ) -> t [ @@ js . new " vscode . Location " ] ] end |
module ProgressLocation = struct type t = | SourceControl [ @ js 1 ] | Window [ @ js 10 ] | Notification [ @ js 15 ] [ @@ js . enum ] [ @@ js ] end |
module ProgressOptions = struct include Interface . Make ( ) type viewIdLocation = { viewId : string } [ @@ js ] type location = ( [ ` ProgressLocation of ProgressLocation . t | ` ViewIdLocation of viewIdLocation ] [ @ js . union ] ) [ @@ js ] let location_of_js js_val = match Ojs . type_of js_val with | " number " -> ... |
module DiagnosticSeverity = struct type t = | Error [ @ js 0 ] | Hint [ @ js 1 ] | Information [ @ js 2 ] | Warning [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module DiagnosticRelatedInformation = struct include Class . Make ( ) include [ % js : val location : t -> Location . t [ @@ js . get ] val message : t -> string [ @@ js . get ] val make : location : Location . t -> message : string -> t [ @@ js . new " vscode . DiagnosticRelatedInformation " ] ] end |
module DiagnosticTag = struct type t = | Unnecessary [ @ js 1 ] | Deprecated [ @ js 2 ] [ @@ js . enum ] [ @@ js ] end |
module Diagnostic = struct include Class . Make ( ) type string_or_int = ( [ ` String of string | ` Int of int ] [ @ js . union ] ) [ @@ js ] let string_or_int_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | " number " -> ` Int ( [ % js . to : int ] js_val ) |... |
module TextDocumentShowOptions = struct include Interface . Make ( ) include [ % js : val viewColumn : t -> ViewColumn . t or_undefined [ @@ js . get ] val preserveFocus : t -> bool or_undefined [ @@ js . get ] val preview : t -> bool or_undefined [ @@ js . get ] val selection : t -> Range . t or_undefined [ @@ js . ge... |
module TerminalOptions = struct include Interface . Make ( ) type shellArgs = ( [ ` Arg of string | ` Args of string list ] [ @ js . union ] ) [ @@ js ] let shellArgs_of_js js_val = match Ojs . type_of js_val with | " string " -> ` Arg ( [ % js . to : string ] js_val ) | _ -> ` Args ( [ % js . to : string list ] js_val... |
module TerminalDimensions = struct include Interface . Make ( ) include [ % js : val columns : t -> int [ @@ js . get ] val rows : t -> int [ @@ js . get ] val create : columns : int -> rows : int -> t [ @@ js . builder ] ] end |
module Pseudoterminal = struct include Interface . Make ( ) module OnDidWrite = Event . Make ( Js . String ) module OnDidOverrideDimensions = Event . Make ( Js . Or_undefined ( TerminalDimensions ) ) module OnDidClose = Event . Make ( Js . Or_undefined ( Js . Int ) ) include [ % js : val onDidWrite : t -> OnDidWrite . ... |
module ExtensionTerminalOptions = struct include Interface . Make ( ) include [ % js : val name : t -> string [ @@ js . get ] val pty : t -> Pseudoterminal . t [ @@ js . get ] val create : name : string -> pty : Pseudoterminal . t -> t [ @@ js . builder ] ] end |
module Extension = struct include Interface . Make ( ) end |
module Extensions = struct include [ % js : val getExtension : string -> Extension . t or_undefined [ @@ js . global " vscode . extensions . getExtension " ] ] end |
module TerminalExitStatus = struct include Interface . Make ( ) include [ % js : val code : t -> int [ @@ js . get ] val create : code : int -> t [ @@ js . builder ] ] end |
module Terminal = struct include Interface . Make ( ) type creationOptions = ( [ ` TerminalOptions of TerminalOptions . t | ` ExtensionTerminalOptions of ExtensionTerminalOptions . t ] [ @ js . union ] ) [ @@ js ] let creationOptions_of_js js_val = if Ojs . has_property js_val " pty " then ` ExtensionTerminalOptions ( ... |
module OutputChannel = struct include Interface . Make ( ) include [ % js : val name : t -> string [ @@ js . get ] val append : t -> value : string -> unit [ @@ js . call ] val appendLine : t -> value : string -> unit [ @@ js . call ] val clear : t -> unit [ @@ js . call ] val show : t -> ? preserveFocus : bool -> unit... |
module Memento = struct include Interface . Make ( ) include [ % js : val get : t -> key : string -> Js . Any . t or_undefined [ @@ js . call ] val get_default : t -> key : string -> defaultValue : Ojs . t -> Ojs . t [ @@ js . call ] val update : t -> key : string -> value : Js . Any . t -> Promise . void [ @@ js . cal... |
module EnvironmentVariableMutatorType = struct type t = | Replace [ @ js 1 ] | Append [ @ js 2 ] | Prepend [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module EnvironmentVariableMutator = struct include Interface . Make ( ) include [ % js : val type_ : t -> EnvironmentVariableMutatorType . t [ @@ js . get " type " ] val value : t -> string [ @@ js . get ] ] end |
module EnvironmentVariableCollection = struct include Interface . Make ( ) include [ % js : val persistent : t -> bool [ @@ js . get ] val replace : t -> variable : string -> value : string -> unit [ @@ js . call ] val append : t -> variable : string -> value : string -> unit [ @@ js . call ] val prepend : t -> variabl... |
module ExtensionMode = struct type t = | Production [ @ js 1 ] | Development [ @ js 2 ] | Test [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module SecretStorageChangeEvent = struct include Interface . Make ( ) include [ % js : val key : t -> string [ @@ js . get ] ] end |
module SecretStorage = struct include Interface . Make ( ) module OnDidChange = Event . Make ( SecretStorageChangeEvent ) include [ % js : val get : t -> key : string -> string or_undefined Promise . t [ @@ js . call ] val store : t -> key : string -> value : string -> Promise . void [ @@ js . call ] val delete : t -> ... |
module ExtensionContext = struct include Interface . Make ( ) include [ % js : val subscriptions : t -> Disposable . t list [ @@ js . get ] val workspaceState : t -> Memento . t [ @@ js . get ] val globalState : t -> Memento . t [ @@ js . get ] val secrets : t -> SecretStorage . t [ @@ js . get ] val extensionUri : t -... |
module ShellQuotingOptions = struct include Interface . Make ( ) type escapeLiteral = { escapeChar : string ; charsToEscape : string } [ @@ js ] type escape = ( [ ` String of string | ` Literal of escapeLiteral ] [ @ js . union ] ) [ @@ js ] let escape_of_js js_val = match Ojs . type_of js_val with | " string " -> ` St... |
module ShellExecutionOptions = struct include Interface . Make ( ) include [ % js : val executable : t -> string or_undefined [ @@ js . get ] val shellArgs : t -> string maybe_list [ @@ js . get ] val shellQuoting : t -> ShellQuotingOptions . t or_undefined [ @@ js . get ] val cwd : t -> string or_undefined [ @@ js . g... |
module ShellQuoting = struct type t = | Escape [ @ js 1 ] | Strong [ @ js 2 ] | Weak [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module ShellQuotedString = struct include Interface . Make ( ) include [ % js : val value : t -> string [ @@ js . get ] val quoting : t -> ShellQuoting . t [ @@ js . get ] val create : value : string -> quoting : ShellQuoting . t -> t [ @@ js . builder ] ] end |
module ShellExecution = struct include Class . Make ( ) type shellString = ( [ ` String of string | ` ShellQuotedString of ShellQuotedString . t ] [ @ js . union ] ) [ @@ js ] let shellString_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` ShellQuotedSt... |
module ProcessExecutionOptions = struct include Interface . Make ( ) include [ % js : val cwd : t -> string or_undefined [ @@ js . get ] val env : t -> string Dict . t or_undefined [ @@ js . get ] val create : ? cwd : string -> ? env : string Dict . t -> unit -> t [ @@ js . builder ] ] end |
module ProcessExecution = struct include Class . Make ( ) include [ % js : val makeProcess : process : string -> ? options : ProcessExecutionOptions . t -> unit -> t [ @@ js . new " vscode . ProcessExecution " ] val makeProcessArgs : process : string -> args : string list -> ? options : ProcessExecutionOptions . t -> u... |
module TaskDefinition = struct include Interface . Make ( ) include [ % js : val type_ : t -> string [ @@ js . get ] ] let get_attribute t = Ojs . get_prop_ascii ( [ % js . of : t ] t ) let set_attribute t = Ojs . set_prop_ascii ( [ % js . of : t ] t ) let create ~ type_ ( ? attributes = [ ] ) ( ) = let obj = Ojs . obj... |
module CustomExecution = struct include Class . Make ( ) include [ % js : val make : callback : ( resolvedDefinition : TaskDefinition . t -> Pseudoterminal . t Promise . t ) -> t [ @@ js . new " vscode . CustomExecution " ] ] end |
module RelativePattern = struct include Class . Make ( ) include [ % js : val base : t -> string [ @@ js . get ] val pattern : t -> string [ @@ js . get ] val make : base : ( [ ` WorkspaceFolder of WorkspaceFolder . t | ` Uri of Uri . t | ` String of string ] [ @ js . union ] ) -> pattern : string -> t [ @@ js . new " ... |
module GlobPattern = struct type t = ( [ ` String of string | ` RelativePattern of RelativePattern . t ] [ @ js . union ] ) [ @@ js ] let t_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` RelativePattern ( [ % js . to : RelativePattern . t ] js_val ) en... |
module DocumentFilter = struct include Interface . Make ( ) include [ % js : val language : t -> string or_undefined [ @@ js . get ] val scheme : t -> string or_undefined [ @@ js . get ] val pattern : t -> GlobPattern . t or_undefined [ @@ js . get ] val create : ? language : string -> ? scheme : string -> ? pattern : ... |
module DocumentSelector = struct type selector = ( [ ` Filter of DocumentFilter . t | ` String of string ] [ @ js . union ] ) [ @@ js ] let selector_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` Filter ( [ % js . to : DocumentFilter . t ] js_val ) typ... |
module DocumentFormattingEditProvider = struct include Interface . Make ( ) include [ % js : val provideDocumentFormattingEdits : t -> document : TextDocument . t -> options : FormattingOptions . t -> token : CancellationToken . t -> TextEdit . t list ProviderResult . t [ @@ js . call ] val create : provideDocumentForm... |
module Hover = struct include Interface . Make ( ) include [ % js : val contents : t -> MarkdownString . t [ @@ js . get ] val range : t -> Range . t or_undefined [ @@ js . get ] val make : contents : ( [ ` MarkdownString of MarkdownString . t | ` MarkdownStringArray of MarkdownString . t list ] [ @ js . union ] ) -> t... |
module HoverProvider = struct include Interface . Make ( ) include [ % js : val provideHover : t -> document : TextDocument . t -> position : Position . t -> token : CancellationToken . t -> Hover . t ProviderResult . t [ @@ js . call ] val create : provideHover : ( document : TextDocument . t -> position : Position . ... |
module TaskGroup = struct include Class . Make ( ) include [ % js : val clean : t [ @@ js . global " vscode . TaskGroup . Clean " ] val build : t [ @@ js . global " vscode . TaskGroup . Build " ] val rebuild : t [ @@ js . global " vscode . TaskGroup . Rebuild " ] val test : t [ @@ js . global " vscode . TaskGroup . Tes... |
module TaskScope = struct type t = | Folder of WorkspaceFolder . t | Global | Workspace let t_to_js = function | Folder f -> [ % js . of : WorkspaceFolder . t ] f | Global -> [ % js . of : int ] 1 | Workspace -> [ % js . of : int ] 2 let t_of_js js_val = match Ojs . type_of js_val with | " number " when [ % js . to : i... |
module RunOptions = struct include Interface . Make ( ) include [ % js : val reevaluateOnRerun : t -> bool or_undefined [ @@ js . get ] val create : ? reevaluateOnRerun : bool -> unit -> t [ @@ js . builder ] ] end |
module TaskRevealKind = struct type t = | Always [ @ js 1 ] | Silent [ @ js 2 ] | Never [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module TaskPanelKind = struct type t = | Shared [ @ js 1 ] | Dedicated [ @ js 2 ] | New [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module TaskPresentationOptions = struct include Interface . Make ( ) include [ % js : val reveal : t -> TaskRevealKind . t or_undefined [ @@ js . get ] val echo : t -> bool or_undefined [ @@ js . get ] val focus : t -> bool or_undefined [ @@ js . get ] val panel : t -> TaskPanelKind . t or_undefined [ @@ js . get ] val... |
module Task = struct include Class . Make ( ) type execution = ( [ ` ProcessExecution of ProcessExecution . t | ` ShellExecution of ShellExecution . t | ` CustomExecution of CustomExecution . t ] [ @ js . union ] ) [ @@ js ] let execution_of_js js_val = if Ojs . has_property js_val " process " then ` ProcessExecution (... |
module TaskProvider = struct include Interface . Generic ( Ojs ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] include [ % js : val provideTasks : t -> token : CancellationToken . t -> T . t list ProviderResult . t [ @@ js . call ] val resolveTask : t -> task : T . t -> token : CancellationTo... |
module ConfigurationScope = struct type t = ( [ ` Uri of Uri . t | ` TextDocument of TextDocument . t | ` WorkspaceFolder of WorkspaceFolder . t ] [ @ js . union ] ) [ @@ js ] let t_of_js js_val = if Ojs . has_property js_val " path " then ` Uri ( [ % js . to : Uri . t ] js_val ) else if Ojs . has_property js_val " ind... |
module MessageOptions = struct include Interface . Make ( ) include [ % js : val modal : t -> bool or_undefined [ @@ js . get ] val create : ? modal : bool -> unit -> t [ @@ js . builder ] ] end |
module Progress = struct include Interface . Make ( ) type value = { message : string or_undefined ; increment : int or_undefined } [ @@ js ] include [ % js : val report : t -> value : value -> unit [ @@ js . call ] ] end |
module TextDocumentContentChangeEvent = struct include Interface . Make ( ) include [ % js : val range : t -> Range . t [ @@ js . get ] val rangeLength : t -> int [ @@ js . get ] val rangeOffset : t -> int [ @@ js . get ] val text : t -> string [ @@ js . get ] ] end |
module TextDocumentChangeEvent = struct include Interface . Make ( ) include [ % js : val contentChanges : t -> TextDocumentContentChangeEvent . t list [ @@ js . get ] val document : t -> TextDocument . t [ @@ js . get ] ] end |
module TextDocumentContentProvider = struct include Interface . Make ( ) module OnDidChange = Event . Make ( Uri ) include [ % js : val onDidChange : t -> OnDidChange . t or_undefined [ @@ js . get ] val provideTextDocumentContent : t -> uri : Uri . t -> token : CancellationToken . t -> string ProviderResult . t [ @@ j... |
module FileSystemWatcher = struct include Interface . Make ( ) module OnDidChange = Event . Make ( Uri ) include [ % js : val onDidChange : t -> OnDidChange . t [ @@ js . get ] ] end |
module Workspace = struct module OnDidChangeWorkspaceFolders = Event . Make ( WorkspaceFolder ) module OnDidOpenTextDocument = Event . Make ( TextDocument ) module OnDidCloseTextDocument = Event . Make ( TextDocument ) module OnDidSaveTextDocument = Event . Make ( TextDocument ) module OnDidChangeTextDocument = Event .... |
module TreeItemCollapsibleState = struct type t = | None [ @ js 0 ] | Collapsed [ @ js 1 ] | Expanded [ @ js 2 ] [ @@ js . enum ] [ @@ js ] end |
module CustomDocument = struct module type T = sig include Js . T val uri : t -> Uri . t val dispose : t -> unit end include Interface . Make ( ) include [ % js : val uri : t -> Uri . t [ @@ js . get ] val dispose : t -> unit [ @@ js . call ] val create : uri : Uri . t -> dispose ( : unit -> unit ) -> t [ @@ js . build... |
module TreeItemLabel = struct include Interface . Make ( ) include [ % js : val label : t -> string [ @@ js . get ] val highlights : t -> ( int * int ) list or_undefined [ @@ js . get ] val create : label : string -> ? highlights ( : int * int ) list -> unit -> t [ @@ js . builder ] ] end |
module ThemeIcon = struct include Class . Make ( ) include [ % js : val make : id : string -> ? color : ThemeColor . t -> unit -> t [ @@ js . new " vscode . ThemeIcon " ] val file : t [ @@ js . global " vscode . ThemeIcon . File " ] val folder : t [ @@ js . global " vscode . ThemeIcon . Folder " ] val id : t -> string ... |
module TreeItem = struct include Class . Make ( ) type label = ( [ ` String of string | ` TreeItemLabel of TreeItemLabel . t ] [ @ js . union ] ) [ @@ js ] let label_of_js js_val = if Ojs . type_of js_val = " string " then ` String ( [ % js . to : string ] js_val ) else if Ojs . has_property js_val " label " then ` Tre... |
module TreeDataProvider = struct include Interface . Generic ( Ojs ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] module OnDidChangeTreeData = Event . Make ( struct type t = T . t or_undefined [ @@ js ] end ) type getTreeItemResult = ( [ ` Value of TreeItem . t | ` Promise of TreeItem . t Pr... |
module TreeViewOptions = struct include Class . Generic ( Ojs ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] module TreeDataProvider = TreeDataProvider . Make ( T ) include [ % js : val treeDataProvider : t -> TreeDataProvider . t [ @@ js . get ] val showCollapseAll : t -> bool or_undefined ... |
module TreeViewExpansionEvent = struct include Interface . Generic ( Ojs ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] include [ % js : val element : t -> T . t [ @@ js . get ] val create : element : T . t -> t [ @@ js . builder ] ] end end |
module TreeViewSelectionChangeEvent = struct include Interface . Generic ( Ojs ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] include [ % js : val selection : t -> T . t list [ @@ js . get ] val create : selection : T . t list -> t [ @@ js . builder ] ] end end |
module TreeViewVisibilityChangeEvent = struct include Interface . Make ( ) include [ % js : val visible : t -> bool [ @@ js . get ] val create : visible : bool -> t [ @@ js . builder ] ] end |
module TreeView = struct include Class . Generic ( Disposable ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] module OnDidExpandElement = Event . Make ( TreeViewExpansionEvent . Make ( T ) ) module OnDidCollapseElement = Event . Make ( TreeViewExpansionEvent . Make ( T ) ) module OnDidChangeS... |
module WebviewPanelOptions = struct include Interface . Make ( ) include [ % js : val enableFindWidget : t -> bool or_undefined [ @@ js . get ] val retainContextWhenHidden : t -> bool or_undefined [ @@ js . get ] ] end |
module WebviewPortMapping = struct include Interface . Make ( ) include [ % js : val extensionHostPort : t -> int [ @@ js . get ] val webviewPort : t -> int [ @@ js . get ] ] end |
module WebviewOptions = struct include Interface . Make ( ) include [ % js : val enableCommandUris : t -> bool [ @@ js . get ] val enableScripts : t -> bool [ @@ js . get ] val set_enableScripts : t -> bool -> unit [ @@ js . set ] val localResourceRoots : t -> Uri . t list [ @@ js . get ] val portMapping : t -> Webview... |
module WebView = struct include Interface . Make ( ) module OnDidReceiveMessage = Event . Make ( Js . Any ) include [ % js : val onDidReceiveMessage : t -> OnDidReceiveMessage . t [ @@ js . get ] val cspSource : t -> string [ @@ js . get ] val html : t -> string [ @@ js . get ] val set_html : t -> string -> unit [ @@ j... |
module WebviewPanel = struct include Interface . Make ( ) module WebviewPanelOnDidChangeViewStateEvent = struct type webviewPanel = t [ @@ js ] include Interface . Make ( ) include [ % js : val webviewPanel : t -> webviewPanel [ @@ js . get ] ] end module LightDarkIcon = struct type t = { light : Uri . t ; dark : Uri .... |
module CustomTextEditorProvider = struct include Interface . Make ( ) module ResolvedEditor = struct type t = ( [ ` Promise of Promise . void | ` Unit of Js . Unit . t ] [ @ js . union ] ) [ @@ js ] let t_of_js js_val = if Ojs . is_null js_val then ` Unit ( [ % js . to : Js . Unit . t ] js_val ) else ` Promise ( [ % js... |
module CustomDocumentOpenContext = struct include Interface . Make ( ) include [ % js : val backupId : t -> string or_undefined [ @@ js . get ] ] end |
module CustomReadonlyEditorProvider = struct include Interface . Generic ( Ojs ) ( ) module Make ( T : CustomDocument . T ) = struct type t = T . t generic [ @@ js ] include [ % js : val openCustomDocument : t -> uri : Uri . t -> openContext : CustomDocumentOpenContext . t -> token : CancellationToken . t -> T . t Prom... |
module RegisterCustomEditorProviderOptions = struct include Interface . Make ( ) include [ % js : val supportsMultipleEditorsPerDocument : t -> bool or_undefined [ @@ js . get ] val create : ? supportsMultipleEditorsPerDocument : bool -> unit -> t [ @@ js . builder ] ] end |
module Window = struct module OnDidChangeActiveTextEditor = Event . Make ( TextEditor ) module OnDidChangeVisibleTextEditors = Event . Make ( Js . List ( TextEditor ) ) module OnDidChangeActiveTerminal = Event . Make ( Js . Or_undefined ( Terminal ) ) module OnDidOpenTerminal = Event . Make ( Terminal ) module OnDidClo... |
module Commands = struct include [ % js : val registerCommand : command : string -> callback ( : args ( : Js . Any . t list [ @ js . variadic ] ) -> unit ) -> Disposable . t [ @@ js . global " vscode . commands . registerCommand " ] val registerTextEditorCommand : command : string -> callback : ( textEditor : TextEdito... |
module Languages = struct include [ % js : val registerDocumentFormattingEditProvider : selector : DocumentSelector . t -> provider : DocumentFormattingEditProvider . t -> Disposable . t [ @@ js . global " vscode . languages . registerDocumentFormattingEditProvider " ] val registerHoverProvider : selector : DocumentSel... |
module Tasks = struct include [ % js : val registerTaskProvider : type_ : string -> provider : TaskProvider . Default . t -> Disposable . t [ @@ js . global " vscode . tasks . registerTaskProvider " ] ] end |
module Env = struct include [ % js : val shell : unit -> string [ @@ js . get " vscode . env . shell " ] ] end |
module RevealOutputChannelOn = struct type t = | Info [ @ js 1 ] | Warn [ @ js 2 ] | Error [ @ js 3 ] | Never [ @ js 4 ] [ @@ js . enum ] [ @@ js ] end |
module ServerCapabilities = struct include Interface . Make ( ) include [ % js : val experimental : t -> Jsonoo . t or_undefined [ @@ js . get ] val create : ? experimental : Jsonoo . t -> unit -> t [ @@ js . builder ] ] end |
module InitializeResult = struct include Interface . Make ( ) type serverInfo = { name : string ; version : string or_undefined } [ @@ js ] include [ % js : val capabilities : t -> ServerCapabilities . t [ @@ js . get ] val serverInfo : t -> serverInfo or_undefined [ @@ js . get ] ] end |
module DocumentFilter = struct include Interface . Make ( ) include [ % js : val language : t -> string or_undefined [ @@ js . get ] val scheme : t -> string or_undefined [ @@ js . get ] val pattern : t -> string or_undefined [ @@ js . get ] val createLanguage : language : string -> ? scheme : string -> ? pattern : str... |
module DocumentSelector = struct type selector = ( [ ` Filter of DocumentFilter . t | ` String of string ] [ @ js . union ] ) [ @@ js ] let selector_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` Filter ( [ % js . to : DocumentFilter . t ] js_val ) typ... |
module ClientOptions = struct include Interface . Make ( ) include [ % js : val documentSelector : t -> DocumentSelector . t or_undefined [ @@ js . get ] val outputChannel : t -> Vscode . OutputChannel . t or_undefined [ @@ js . get ] val revealOutputChannelOn : t -> RevealOutputChannelOn . t [ @@ js . get ] val create... |
module ExecutableOptions = struct include Interface . Make ( ) include [ % js : val cwd : t -> string or_undefined [ @@ js . get ] val env : t -> string Dict . t or_undefined [ @@ js . get ] val detached : t -> bool or_undefined [ @@ js . get ] val shell : t -> bool or_undefined [ @@ js . get ] val create : ? cwd : str... |
module Executable = struct include Interface . Make ( ) include [ % js : val command : t -> string [ @@ js . get ] val args : t -> string list or_undefined [ @@ js . get ] val options : t -> ExecutableOptions . t or_undefined [ @@ js . get ] val create : command : string -> ? args : string list -> ? options : Executabl... |
module ClientCapabilities = struct include Interface . Make ( ) include [ % js : val experimental : t -> Jsonoo . t or_undefined [ @@ js . get ] val set_experimental : t -> Jsonoo . t or_undefined -> unit [ @@ js . set ] ] end |
module InitializeParams = struct include Interface . Make ( ) end |
module StaticFeature = struct include Interface . Make ( ) include [ % js : val make : ? fillInitializeParams ( : params : InitializeParams . t -> unit ) -> fillClientCapabilities ( : capabilities : ClientCapabilities . t -> unit ) -> initialize : ( capabilities : ServerCapabilities . t -> documentSelector : DocumentSe... |
module LanguageClient = struct include Class . Make ( ) include [ % js : val make : id : string -> name : string -> serverOptions : ServerOptions . t -> clientOptions : ClientOptions . t -> ? forceDebug : bool -> unit -> t [ @@ js . new " vscode_languageclient . LanguageClient " ] val start : t -> unit [ @@ js . call ]... |
let suggest_to_pick_sandbox ( ) = let open Promise . Syntax in let select_pm_button_text = " Select package manager and sandbox " in let + selection = Window . showInformationMessage ~ message : " OCaml Platform is using the package manager and sandbox available in \ the environment . Pick a particular package manager ... |
let activate ( extension : ExtensionContext . t ) = Process . Env . set " OCAML_LSP_SERVER_LOG " " " ; - let open Promise . Syntax in let instance = Extension_instance . make ( ) in ExtensionContext . subscribe extension ~ disposable ( : Extension_instance . disposable instance ) ; Dune_formatter . register extension i... |
let ( ) = let open Js_of_ocaml . Js in export " activate " ( wrap_callback activate ) |
module T = Uterm open struct let get_id_of_lb_arg = function | Uast . Lunit -> assert false | Uast . Lnone id | Loptional id | Lnamed id | Lghost ( id , _ ) -> id end let loc_of_lb_arg = function | Uast . Lunit -> T . dummy_loc | lb -> T . location ( get_id_of_lb_arg lb ) . pid_loc let ident_of_lb_arg = function | Uast... |
let sp_post sp_hd_ret sp_post = let term_loc = T . location sp_post . Uast . term_loc in let mk_pvar lb = let pat_loc = loc_of_lb_arg lb in T . mk_pattern ( Pvar ( ident_of_lb_arg lb ) ) ~ pat_loc in let pvar_of_lb_arg_list lb_arg_list = List . map mk_pvar lb_arg_list in let pat = match pvar_of_lb_arg_list sp_hd_ret wi... |
let sp_post_no_ret sp_post = let term_loc = T . location sp_post . Uast . term_loc in let id_result = T . mk_id " result " in ( term_loc , [ ( T . mk_pattern ( Pvar id_result ) , T . term true sp_post ) ] ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.