Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
main/browser/comments/comments-main
CommentController
Class CommentController
Index
Constructors
constructor
Properties
active
Comment
Thread?
Accessors
context
Value
features
handle
id
label
options
proxy
Methods
create
Comment
Thread
create
Comment
Thread
Template
delete
Comment
Thread
delete
Comment
Thread
Main
get
All
Comments
get
Commenting
Ranges
get
Document
Comments
update
Comment
Thread
update
Comment
Thread
Template
update
Features
update
Input
Constructors
constructor
new
CommentController
(
_proxy
:
CommentsExt
,
_commentService
:
CommentsService
,
_handle
:
number
,
_uniqueId
:
string
,
_id
:
string
,
_label
:
string
,
_features
:
CommentProviderFeatures
,
)
:
CommentController
Parameters
_proxy
:
CommentsExt
_commentService
:
CommentsService
_handle
:
number
_uniqueId
:
string
_id
:
string
_label
:
string
_features
:
CommentProviderFeatures
Returns
CommentController
Properties
Optional
active
Comment
Thread
activeCommentThread
?:
CommentThread
Accessors
context
Value
get
contextValue
()
:
string
Returns
string
features
get
features
()
:
CommentProviderFeatures
Returns
CommentProviderFeatures
handle
get
handle
()
:
number
Returns
number
id
get
id
()
:
string
Returns
string
label
get
label
()
:
string
Returns
string
options
get
options
()
:
undefined
|
CommentOptions
Returns
undefined
|
CommentOptions
proxy
get
proxy
()
:
CommentsExt
Returns
CommentsExt
Methods
create
Comment
Thread
createCommentThread
(
extensionId
:
string
,
commentThreadHandle
:
number
,
threadId
:
string
,
resource
:
UriComponents
,
range
:
undefined
|
Range
,
)
:
CommentThread
Parameters
extensionId
:
string
commentThreadHandle
:
number
threadId
:
string
resource
:
UriComponents
range
:
undefined
|
Range
Returns
CommentThread
create
Comment
Thread
Template
createCommentThreadTemplate
(
resource
:
UriComponents
,
range
:
Range
)
:
void
Parameters
resource
:
UriComponents
range
:
Range
Returns
void
delete
Comment
Thread
deleteCommentThread
(
commentThreadHandle
:
number
)
:
void
Parameters
commentThreadHandle
:
number
Returns
void
delete
Comment
Thread
Main
deleteCommentThreadMain
(
commentThreadId
:
string
)
:
void
Parameters
commentThreadId
:
string
Returns
void
get
All
Comments
getAllComments
()
:
CommentThread
[]
Returns
CommentThread
[]
get
Commenting
Ranges
getCommentingRanges
(
resource
:
URI
,
token
:
CancellationToken
,
)
:
Promise
<
undefined
|
{
fileComments
:
boolean
;
ranges
:
Range
[]
}
>
Parameters
resource
:
URI
token
:
CancellationToken
Returns
Promise
<
undefined
|
{
fileComments
:
boolean
;
ranges
:
Range
[]
}
>
get
Document
Comments
getDocumentComments
(
resource
:
URI
,
token
:
CancellationToken
,
)
:
Promise
<
CommentInfoMain
>
Parameters
resource
:
URI
token
:
CancellationToken
Returns
Promise
<
CommentInfoMain
>
update
Comment
Thread
updateCommentThread
(
commentThreadHandle
:
number
,
threadId
:
string
,
resource
:
UriComponents
,
changes
:
CommentThreadChanges
,
)
:
void
Parameters
commentThreadHandle
:
number
threadId
:
string
resource
:
UriComponents
changes
:
CommentThreadChanges
Returns
void
update
Comment
Thread
Template
updateCommentThreadTemplate
(
threadHandle
:
number
,
range
:
Range
)
:
Promise
<
void
>
Parameters
threadHandle
:
number
range
:
Range
Returns
Promise
<
void
>
update
Features
updateFeatures
(
features
:
CommentProviderFeatures
)
:
void
Parameters
features
:
CommentProviderFeatures
Returns
void
update
Input
updateInput
(
input
:
string
)
:
void
Parameters
input
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
active
Comment
Thread
Accessors
context
Value
features
handle
id
label
options
proxy
Methods
create
Comment
Thread
create
Comment
Thread
Template
delete
Comment
Thread
delete
Comment
Thread
Main
get
All
Comments
get
Commenting
Ranges
get
Document
Comments
update
Comment
Thread
update
Comment
Thread
Template
update
Features
update
Input
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...