Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
monaco
MonacoSnippetSuggestProvider
Class MonacoSnippetSuggestProvider
Hierarchy
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
:
undefined
|
JsonSerializedSnippets
, __namedParameters
:
SnippetLoadOptions
)
:
Disposable
Parameters
snippets:
undefined
|
JsonSerializedSnippets
__namedParameters:
SnippetLoadOptions
Returns
Disposable
fromURI
fromURI
(
uri
:
string
|
URI
, options
:
SnippetLoadOptions
)
:
Disposable
Parameters
uri:
string
|
URI
options:
SnippetLoadOptions
Returns
Disposable
Protected
is
Pattern
In
Word
is
Pattern
In
Word
(
patternLow
:
string
, patternPos
:
number
, patternLen
:
number
, wordLow
:
string
, wordPos
:
number
, wordLen
:
number
)
:
boolean
Parameters
patternLow:
string
patternPos:
number
patternLen:
number
wordLow:
string
wordPos:
number
wordLen:
number
Returns
boolean
Protected
load
Snippets
load
Snippets
(
scope
:
string
)
:
Promise
<
void
>
Parameters
scope:
string
Returns
Promise
<
void
>
Protected
loadURI
loadURI
(
uri
:
string
|
URI
, options
:
SnippetLoadOptions
, toDispose
:
DisposableCollection
)
:
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
:
undefined
|
JsonSerializedSnippets
, accept
:
(
(
name
:
string
, snippet
:
JsonSerializedSnippet
)
=>
void
)
)
:
void
Parameters
snippets:
undefined
|
JsonSerializedSnippets
accept:
(
(
name
:
string
, snippet
:
JsonSerializedSnippet
)
=>
void
)
(
name
:
string
, snippet
:
JsonSerializedSnippet
)
:
void
Parameters
name:
string
snippet:
JsonSerializedSnippet
Returns
void
Returns
void
provide
Completion
Items
provide
Completion
Items
(
model
:
ITextModel
, position
:
Position
, context
:
CompletionContext
)
:
Promise
<
undefined
|
CompletionList
>
Parameters
model:
ITextModel
position:
Position
context:
CompletionContext
Returns
Promise
<
undefined
|
CompletionList
>
push
push
(
...
snippets
:
Snippet
[]
)
:
Disposable
Parameters
Rest
...
snippets:
Snippet
[]
Returns
Disposable
Optional
resolve
Completion
Item
resolve
Completion
Item
(
item
:
CompletionItem
, token
:
CancellationToken
)
:
CompletionItem
Parameters
item:
CompletionItem
token:
CancellationToken
Returns
CompletionItem
Modules
bulk-
edit
callhierarchy
console
core
debug
editor
editor-
preview
electron
external-
terminal
file-
search
filesystem
getting-
started
git
keymaps
markers
memory-
inspector
messages
metrics
mini-
browser
monaco
Json
Serialized
Snippet
Monaco
Commands
Monaco
Diff
Editor
Monaco
Editor
Monaco
Editor
Model
Monaco
Editor
Zone
Widget
Monaco
Menus
Monaco
Outline
Contribution
Monaco
Outline
Symbol
Information
Node
Monaco
Range
Replace
Monaco
Theme
Registry
Monaco
Theme
State
Resource
File
Edit
Resource
Text
Edit
Workspace
File
Edit
Workspace
Text
Edit
navigator
outline-
view
output
plugin
plugin-
dev
plugin-
ext
plugin-
ext-
vscode
plugin-
metrics
preferences
preview
process
property-
view
scm
scm-
extra
search-
in-
workspace
secondary-
window
task
terminal
timeline
toolbar
typehierarchy
userstorage
variable-
resolver
vsx-
registry
workspace
Monaco
Snippet
Suggest
Provider
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
should NOT throw to prevent load errors on suggest