Preparing search index...
The search index is not available
Theia TypeDoc
Theia TypeDoc
monaco
MonacoSnippetSuggestProvider
Class MonacoSnippetSuggestProvider
Implements
CompletionItemProvider
Index
Constructors
constructor
Properties
file
Service
pending
Snippets
snippets
_max
Prefix
Methods
fromJSON
fromURI
is
Pattern
In
Word
load
Snippets
loadURI
parse
Snippets
provide
Completion
Items
push
resolve
Completion
Item?
Constructors
constructor
new
Monaco
Snippet
Suggest
Provider
(
)
:
MonacoSnippetSuggestProvider
Returns
MonacoSnippetSuggestProvider
Properties
Protected
Readonly
file
Service
file
Service
:
FileService
Protected
Readonly
pending
Snippets
pending
Snippets
:
Map
<
string
,
Promise
<
void
>
[]
>
= ...
Protected
Readonly
snippets
snippets
:
Map
<
string
,
Snippet
[]
>
= ...
Static
Private
Readonly
_max
Prefix
_max
Prefix
:
10000
= 10000
Methods
fromJSON
fromJSON
(
snippets
,
__namedParameters
)
:
Disposable
Parameters
snippets
:
undefined
|
JsonSerializedSnippets
__namedParameters
:
SnippetLoadOptions
Returns
Disposable
fromURI
fromURI
(
uri
,
options
)
:
Disposable
Parameters
uri
:
string
|
URI
options
:
SnippetLoadOptions
Returns
Disposable
Protected
is
Pattern
In
Word
is
Pattern
In
Word
(
patternLow
,
patternPos
,
patternLen
,
wordLow
,
wordPos
,
wordLen
)
:
boolean
Parameters
patternLow
:
string
patternPos
:
number
patternLen
:
number
wordLow
:
string
wordPos
:
number
wordLen
:
number
Returns
boolean
Protected
load
Snippets
load
Snippets
(
scope
)
:
Promise
<
void
>
Parameters
scope
:
string
Returns
Promise
<
void
>
Protected
loadURI
loadURI
(
uri
,
options
,
toDispose
)
:
Promise
<
void
>
should NOT throw to prevent load errors on suggest
Parameters
uri
:
string
|
URI
options
:
SnippetLoadOptions
toDispose
:
DisposableCollection
Returns
Promise
<
void
>
Protected
parse
Snippets
parse
Snippets
(
snippets
,
accept
)
:
void
Parameters
snippets
:
undefined
|
JsonSerializedSnippets
accept
:
(
(
name
,
snippet
)
=>
void
)
(
name
,
snippet
)
:
void
Parameters
name
:
string
snippet
:
JsonSerializedSnippet
Returns
void
Returns
void
provide
Completion
Items
provide
Completion
Items
(
model
,
position
,
context
)
:
Promise
<
undefined
|
CompletionList
>
Parameters
model
:
ITextModel
position
:
Position
context
:
CompletionContext
Returns
Promise
<
undefined
|
CompletionList
>
push
push
(
...
snippets
)
:
Disposable
Parameters
Rest
...
snippets
:
Snippet
[]
Returns
Disposable
Optional
resolve
Completion
Item
resolve
Completion
Item
(
item
,
token
)
:
CompletionItem
Parameters
item
:
CompletionItem
token
:
CancellationToken
Returns
CompletionItem
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
file
Service
pending
Snippets
snippets
_max
Prefix
fromJSON
fromURI
is
Pattern
In
Word
load
Snippets
loadURI
parse
Snippets
provide
Completion
Items
push
resolve
Completion
Item
Theia TypeDoc
Loading...
should NOT throw to prevent load errors on suggest