Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e06e6262
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e06e6262
编写于
8月 29, 2018
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes Microsoft/monaco-editor#1021: Use ProviderResult in modes.ts
上级
351fbf45
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
59 addition
and
43 deletion
+59
-43
src/vs/editor/common/modes.ts
src/vs/editor/common/modes.ts
+31
-23
src/vs/monaco.d.ts
src/vs/monaco.d.ts
+28
-20
未找到文件。
src/vs/editor/common/modes.ts
浏览文件 @
e06e6262
...
...
@@ -216,6 +216,14 @@ export interface IState {
equals
(
other
:
IState
):
boolean
;
}
/**
* A provider result represents the values a provider, like the [`HoverProvider`](#HoverProvider),
* may return. For once this is the actual result type `T`, like `Hover`, or a thenable that resolves
* to that type `T`. In addition, `null` and `undefined` can be returned - either directly or from a
* thenable.
*/
export
type
ProviderResult
<
T
>
=
T
|
undefined
|
null
|
Thenable
<
T
|
undefined
|
null
>
;
/**
* A hover represents additional information for a symbol or word. Hovers are
* rendered in a tooltip-like widget.
...
...
@@ -244,7 +252,7 @@ export interface HoverProvider {
* position will be merged by the editor. A hover can have a range which defaults
* to the word range at the position when omitted.
*/
provideHover
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Hover
|
Thenable
<
Hover
>
;
provideHover
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Hover
>
;
}
/**
...
...
@@ -337,9 +345,9 @@ export interface ISuggestSupport {
triggerCharacters
?:
string
[];
provideCompletionItems
(
model
:
model
.
ITextModel
,
position
:
Position
,
context
:
SuggestContext
,
token
:
CancellationToken
):
ISuggestResult
|
Thenable
<
ISuggestResult
>
;
provideCompletionItems
(
model
:
model
.
ITextModel
,
position
:
Position
,
context
:
SuggestContext
,
token
:
CancellationToken
):
ProviderResult
<
ISuggestResult
>
;
resolveCompletionItem
?(
model
:
model
.
ITextModel
,
position
:
Position
,
item
:
ISuggestion
,
token
:
CancellationToken
):
ISuggestion
|
Thenable
<
ISuggestion
>
;
resolveCompletionItem
?(
model
:
model
.
ITextModel
,
position
:
Position
,
item
:
ISuggestion
,
token
:
CancellationToken
):
ProviderResult
<
ISuggestion
>
;
}
export
interface
CodeAction
{
...
...
@@ -375,7 +383,7 @@ export interface CodeActionProvider {
/**
* Provide commands for the given document and range.
*/
provideCodeActions
(
model
:
model
.
ITextModel
,
range
:
Range
|
Selection
,
context
:
CodeActionContext
,
token
:
CancellationToken
):
CodeAction
[]
|
Thenable
<
CodeAction
[]
>
;
provideCodeActions
(
model
:
model
.
ITextModel
,
range
:
Range
|
Selection
,
context
:
CodeActionContext
,
token
:
CancellationToken
):
ProviderResult
<
CodeAction
[]
>
;
/**
* Optional list of of CodeActionKinds that this provider returns.
...
...
@@ -450,7 +458,7 @@ export interface SignatureHelpProvider {
/**
* Provide help for the signature at the given position and document.
*/
provideSignatureHelp
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
SignatureHelp
|
Thenable
<
SignatureHelp
>
;
provideSignatureHelp
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
SignatureHelp
>
;
}
/**
...
...
@@ -494,7 +502,7 @@ export interface DocumentHighlightProvider {
* Provide a set of document highlights, like all occurrences of a variable or
* all exit-points of a function.
*/
provideDocumentHighlights
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
DocumentHighlight
[]
|
Thenable
<
DocumentHighlight
[]
>
;
provideDocumentHighlights
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
DocumentHighlight
[]
>
;
}
/**
...
...
@@ -515,7 +523,7 @@ export interface ReferenceProvider {
/**
* Provide a set of project-wide references for the given position and document.
*/
provideReferences
(
model
:
model
.
ITextModel
,
position
:
Position
,
context
:
ReferenceContext
,
token
:
CancellationToken
):
Location
[]
|
Thenable
<
Location
[]
>
;
provideReferences
(
model
:
model
.
ITextModel
,
position
:
Position
,
context
:
ReferenceContext
,
token
:
CancellationToken
):
ProviderResult
<
Location
[]
>
;
}
/**
...
...
@@ -555,7 +563,7 @@ export interface DefinitionProvider {
/**
* Provide the definition of the symbol at the given position and document.
*/
provideDefinition
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Definition
|
DefinitionLink
[]
|
Thenable
<
Definition
|
DefinitionLink
[]
>
;
provideDefinition
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Definition
|
DefinitionLink
[]
>
;
}
/**
...
...
@@ -566,7 +574,7 @@ export interface ImplementationProvider {
/**
* Provide the implementation of the symbol at the given position and document.
*/
provideImplementation
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Definition
|
DefinitionLink
[]
|
Thenable
<
Definition
|
DefinitionLink
[]
>
;
provideImplementation
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Definition
|
DefinitionLink
[]
>
;
}
/**
...
...
@@ -577,7 +585,7 @@ export interface TypeDefinitionProvider {
/**
* Provide the type definition of the symbol at the given position and document.
*/
provideTypeDefinition
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Definition
|
DefinitionLink
[]
|
Thenable
<
Definition
|
DefinitionLink
[]
>
;
provideTypeDefinition
(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Definition
|
DefinitionLink
[]
>
;
}
/**
...
...
@@ -672,7 +680,7 @@ export interface DocumentSymbolProvider {
/**
* Provide symbol information for the given document.
*/
provideDocumentSymbols
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
DocumentSymbol
[]
|
Thenable
<
DocumentSymbol
[]
>
;
provideDocumentSymbols
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
DocumentSymbol
[]
>
;
}
export
interface
TextEdit
{
...
...
@@ -702,7 +710,7 @@ export interface DocumentFormattingEditProvider {
/**
* Provide formatting edits for a whole document.
*/
provideDocumentFormattingEdits
(
model
:
model
.
ITextModel
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
TextEdit
[]
|
Thenable
<
TextEdit
[]
>
;
provideDocumentFormattingEdits
(
model
:
model
.
ITextModel
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
ProviderResult
<
TextEdit
[]
>
;
}
/**
* The document formatting provider interface defines the contract between extensions and
...
...
@@ -716,7 +724,7 @@ export interface DocumentRangeFormattingEditProvider {
* or larger range. Often this is done by adjusting the start and end
* of the range to full syntax nodes.
*/
provideDocumentRangeFormattingEdits
(
model
:
model
.
ITextModel
,
range
:
Range
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
TextEdit
[]
|
Thenable
<
TextEdit
[]
>
;
provideDocumentRangeFormattingEdits
(
model
:
model
.
ITextModel
,
range
:
Range
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
ProviderResult
<
TextEdit
[]
>
;
}
/**
* The document formatting provider interface defines the contract between extensions and
...
...
@@ -731,7 +739,7 @@ export interface OnTypeFormattingEditProvider {
* what range the position to expand to, like find the matching `{`
* when `}` has been entered.
*/
provideOnTypeFormattingEdits
(
model
:
model
.
ITextModel
,
position
:
Position
,
ch
:
string
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
TextEdit
[]
|
Thenable
<
TextEdit
[]
>
;
provideOnTypeFormattingEdits
(
model
:
model
.
ITextModel
,
position
:
Position
,
ch
:
string
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
ProviderResult
<
TextEdit
[]
>
;
}
/**
...
...
@@ -753,8 +761,8 @@ export interface ILink {
* A provider of links.
*/
export
interface
LinkProvider
{
provideLinks
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
ILink
[]
|
Thenable
<
ILink
[]
>
;
resolveLink
?:
(
link
:
ILink
,
token
:
CancellationToken
)
=>
ILink
|
Thenable
<
ILink
>
;
provideLinks
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
ILink
[]
>
;
resolveLink
?:
(
link
:
ILink
,
token
:
CancellationToken
)
=>
ProviderResult
<
ILink
>
;
}
/**
...
...
@@ -828,11 +836,11 @@ export interface DocumentColorProvider {
/**
* Provides the color ranges for a specific model.
*/
provideDocumentColors
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
IColorInformation
[]
|
Thenable
<
IColorInformation
[]
>
;
provideDocumentColors
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
IColorInformation
[]
>
;
/**
* Provide the string representations for a color.
*/
provideColorPresentations
(
model
:
model
.
ITextModel
,
colorInfo
:
IColorInformation
,
token
:
CancellationToken
):
IColorPresentation
[]
|
Thenable
<
IColorPresentation
[]
>
;
provideColorPresentations
(
model
:
model
.
ITextModel
,
colorInfo
:
IColorInformation
,
token
:
CancellationToken
):
ProviderResult
<
IColorPresentation
[]
>
;
}
export
interface
FoldingContext
{
}
...
...
@@ -843,7 +851,7 @@ export interface FoldingRangeProvider {
/**
* Provides the color ranges for a specific model.
*/
provideFoldingRanges
(
model
:
model
.
ITextModel
,
context
:
FoldingContext
,
token
:
CancellationToken
):
FoldingRange
[]
|
Thenable
<
FoldingRange
[]
>
;
provideFoldingRanges
(
model
:
model
.
ITextModel
,
context
:
FoldingContext
,
token
:
CancellationToken
):
ProviderResult
<
FoldingRange
[]
>
;
}
export
interface
FoldingRange
{
...
...
@@ -927,8 +935,8 @@ export interface RenameLocation {
}
export
interface
RenameProvider
{
provideRenameEdits
(
model
:
model
.
ITextModel
,
position
:
Position
,
newName
:
string
,
token
:
CancellationToken
):
WorkspaceEdit
|
Thenable
<
WorkspaceEdit
>
;
resolveRenameLocation
?(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
RenameLocation
|
Thenable
<
RenameLocation
>
;
provideRenameEdits
(
model
:
model
.
ITextModel
,
position
:
Position
,
newName
:
string
,
token
:
CancellationToken
):
ProviderResult
<
WorkspaceEdit
>
;
resolveRenameLocation
?(
model
:
model
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
RenameLocation
>
;
}
...
...
@@ -1042,8 +1050,8 @@ export interface ICodeLensSymbol {
}
export
interface
CodeLensProvider
{
onDidChange
?:
Event
<
this
>
;
provideCodeLenses
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
ICodeLensSymbol
[]
|
Thenable
<
ICodeLensSymbol
[]
>
;
resolveCodeLens
?(
model
:
model
.
ITextModel
,
codeLens
:
ICodeLensSymbol
,
token
:
CancellationToken
):
ICodeLensSymbol
|
Thenable
<
ICodeLensSymbol
>
;
provideCodeLenses
(
model
:
model
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
ICodeLensSymbol
[]
>
;
resolveCodeLens
?(
model
:
model
.
ITextModel
,
codeLens
:
ICodeLensSymbol
,
token
:
CancellationToken
):
ProviderResult
<
ICodeLensSymbol
>
;
}
// --- feature registries ------
...
...
src/vs/monaco.d.ts
浏览文件 @
e06e6262
...
...
@@ -4790,6 +4790,14 @@ declare namespace monaco.languages {
equals
(
other
:
IState
):
boolean
;
}
/**
* A provider result represents the values a provider, like the [`HoverProvider`](#HoverProvider),
* may return. For once this is the actual result type `T`, like `Hover`, or a thenable that resolves
* to that type `T`. In addition, `null` and `undefined` can be returned - either directly or from a
* thenable.
*/
export
type
ProviderResult
<
T
>
=
T
|
undefined
|
null
|
Thenable
<
T
|
undefined
|
null
>
;
/**
* A hover represents additional information for a symbol or word. Hovers are
* rendered in a tooltip-like widget.
...
...
@@ -4817,7 +4825,7 @@ declare namespace monaco.languages {
* position will be merged by the editor. A hover can have a range which defaults
* to the word range at the position when omitted.
*/
provideHover
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Hover
|
Thenable
<
Hover
>
;
provideHover
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Hover
>
;
}
/**
...
...
@@ -4905,7 +4913,7 @@ declare namespace monaco.languages {
/**
* Provide help for the signature at the given position and document.
*/
provideSignatureHelp
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
SignatureHelp
|
Thenable
<
SignatureHelp
>
;
provideSignatureHelp
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
SignatureHelp
>
;
}
/**
...
...
@@ -4951,7 +4959,7 @@ declare namespace monaco.languages {
* Provide a set of document highlights, like all occurrences of a variable or
* all exit-points of a function.
*/
provideDocumentHighlights
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
DocumentHighlight
[]
|
Thenable
<
DocumentHighlight
[]
>
;
provideDocumentHighlights
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
DocumentHighlight
[]
>
;
}
/**
...
...
@@ -4973,7 +4981,7 @@ declare namespace monaco.languages {
/**
* Provide a set of project-wide references for the given position and document.
*/
provideReferences
(
model
:
editor
.
ITextModel
,
position
:
Position
,
context
:
ReferenceContext
,
token
:
CancellationToken
):
Location
[]
|
Thenable
<
Location
[]
>
;
provideReferences
(
model
:
editor
.
ITextModel
,
position
:
Position
,
context
:
ReferenceContext
,
token
:
CancellationToken
):
ProviderResult
<
Location
[]
>
;
}
/**
...
...
@@ -5014,7 +5022,7 @@ declare namespace monaco.languages {
/**
* Provide the definition of the symbol at the given position and document.
*/
provideDefinition
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Definition
|
DefinitionLink
[]
|
Thenable
<
Definition
|
DefinitionLink
[]
>
;
provideDefinition
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Definition
|
DefinitionLink
[]
>
;
}
/**
...
...
@@ -5025,7 +5033,7 @@ declare namespace monaco.languages {
/**
* Provide the implementation of the symbol at the given position and document.
*/
provideImplementation
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Definition
|
DefinitionLink
[]
|
Thenable
<
Definition
|
DefinitionLink
[]
>
;
provideImplementation
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Definition
|
DefinitionLink
[]
>
;
}
/**
...
...
@@ -5036,7 +5044,7 @@ declare namespace monaco.languages {
/**
* Provide the type definition of the symbol at the given position and document.
*/
provideTypeDefinition
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
Definition
|
DefinitionLink
[]
|
Thenable
<
Definition
|
DefinitionLink
[]
>
;
provideTypeDefinition
(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
Definition
|
DefinitionLink
[]
>
;
}
/**
...
...
@@ -5090,7 +5098,7 @@ declare namespace monaco.languages {
/**
* Provide symbol information for the given document.
*/
provideDocumentSymbols
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
DocumentSymbol
[]
|
Thenable
<
DocumentSymbol
[]
>
;
provideDocumentSymbols
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
DocumentSymbol
[]
>
;
}
export
interface
TextEdit
{
...
...
@@ -5121,7 +5129,7 @@ declare namespace monaco.languages {
/**
* Provide formatting edits for a whole document.
*/
provideDocumentFormattingEdits
(
model
:
editor
.
ITextModel
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
TextEdit
[]
|
Thenable
<
TextEdit
[]
>
;
provideDocumentFormattingEdits
(
model
:
editor
.
ITextModel
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
ProviderResult
<
TextEdit
[]
>
;
}
/**
...
...
@@ -5136,7 +5144,7 @@ declare namespace monaco.languages {
* or larger range. Often this is done by adjusting the start and end
* of the range to full syntax nodes.
*/
provideDocumentRangeFormattingEdits
(
model
:
editor
.
ITextModel
,
range
:
Range
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
TextEdit
[]
|
Thenable
<
TextEdit
[]
>
;
provideDocumentRangeFormattingEdits
(
model
:
editor
.
ITextModel
,
range
:
Range
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
ProviderResult
<
TextEdit
[]
>
;
}
/**
...
...
@@ -5152,7 +5160,7 @@ declare namespace monaco.languages {
* what range the position to expand to, like find the matching `{`
* when `}` has been entered.
*/
provideOnTypeFormattingEdits
(
model
:
editor
.
ITextModel
,
position
:
Position
,
ch
:
string
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
TextEdit
[]
|
Thenable
<
TextEdit
[]
>
;
provideOnTypeFormattingEdits
(
model
:
editor
.
ITextModel
,
position
:
Position
,
ch
:
string
,
options
:
FormattingOptions
,
token
:
CancellationToken
):
ProviderResult
<
TextEdit
[]
>
;
}
/**
...
...
@@ -5167,8 +5175,8 @@ declare namespace monaco.languages {
* A provider of links.
*/
export
interface
LinkProvider
{
provideLinks
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
ILink
[]
|
Thenable
<
ILink
[]
>
;
resolveLink
?:
(
link
:
ILink
,
token
:
CancellationToken
)
=>
ILink
|
Thenable
<
ILink
>
;
provideLinks
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
ILink
[]
>
;
resolveLink
?:
(
link
:
ILink
,
token
:
CancellationToken
)
=>
ProviderResult
<
ILink
>
;
}
/**
...
...
@@ -5236,11 +5244,11 @@ declare namespace monaco.languages {
/**
* Provides the color ranges for a specific model.
*/
provideDocumentColors
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
IColorInformation
[]
|
Thenable
<
IColorInformation
[]
>
;
provideDocumentColors
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
IColorInformation
[]
>
;
/**
* Provide the string representations for a color.
*/
provideColorPresentations
(
model
:
editor
.
ITextModel
,
colorInfo
:
IColorInformation
,
token
:
CancellationToken
):
IColorPresentation
[]
|
Thenable
<
IColorPresentation
[]
>
;
provideColorPresentations
(
model
:
editor
.
ITextModel
,
colorInfo
:
IColorInformation
,
token
:
CancellationToken
):
ProviderResult
<
IColorPresentation
[]
>
;
}
export
interface
FoldingContext
{
...
...
@@ -5253,7 +5261,7 @@ declare namespace monaco.languages {
/**
* Provides the color ranges for a specific model.
*/
provideFoldingRanges
(
model
:
editor
.
ITextModel
,
context
:
FoldingContext
,
token
:
CancellationToken
):
FoldingRange
[]
|
Thenable
<
FoldingRange
[]
>
;
provideFoldingRanges
(
model
:
editor
.
ITextModel
,
context
:
FoldingContext
,
token
:
CancellationToken
):
ProviderResult
<
FoldingRange
[]
>
;
}
export
interface
FoldingRange
{
...
...
@@ -5325,8 +5333,8 @@ declare namespace monaco.languages {
}
export
interface
RenameProvider
{
provideRenameEdits
(
model
:
editor
.
ITextModel
,
position
:
Position
,
newName
:
string
,
token
:
CancellationToken
):
WorkspaceEdit
|
Thenable
<
WorkspaceEdit
>
;
resolveRenameLocation
?(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
RenameLocation
|
Thenable
<
RenameLocation
>
;
provideRenameEdits
(
model
:
editor
.
ITextModel
,
position
:
Position
,
newName
:
string
,
token
:
CancellationToken
):
ProviderResult
<
WorkspaceEdit
>
;
resolveRenameLocation
?(
model
:
editor
.
ITextModel
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
RenameLocation
>
;
}
export
interface
Command
{
...
...
@@ -5344,8 +5352,8 @@ declare namespace monaco.languages {
export
interface
CodeLensProvider
{
onDidChange
?:
IEvent
<
this
>
;
provideCodeLenses
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
ICodeLensSymbol
[]
|
Thenable
<
ICodeLensSymbol
[]
>
;
resolveCodeLens
?(
model
:
editor
.
ITextModel
,
codeLens
:
ICodeLensSymbol
,
token
:
CancellationToken
):
ICodeLensSymbol
|
Thenable
<
ICodeLensSymbol
>
;
provideCodeLenses
(
model
:
editor
.
ITextModel
,
token
:
CancellationToken
):
ProviderResult
<
ICodeLensSymbol
[]
>
;
resolveCodeLens
?(
model
:
editor
.
ITextModel
,
codeLens
:
ICodeLensSymbol
,
token
:
CancellationToken
):
ProviderResult
<
ICodeLensSymbol
>
;
}
export
interface
ILanguageExtensionPoint
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录