Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e20f08b2
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,发现更多精彩内容 >>
提交
e20f08b2
编写于
12月 14, 2017
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
a little language features, #40169
上级
d9218265
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
61 addition
and
61 deletion
+61
-61
src/vs/workbench/api/node/extHost.protocol.ts
src/vs/workbench/api/node/extHost.protocol.ts
+20
-20
src/vs/workbench/api/node/extHostLanguageFeatures.ts
src/vs/workbench/api/node/extHostLanguageFeatures.ts
+41
-41
未找到文件。
src/vs/workbench/api/node/extHost.protocol.ts
浏览文件 @
e20f08b2
...
...
@@ -568,31 +568,31 @@ export type IWorkspaceSymbol = IdObject & modes.SymbolInformation;
export
interface
IWorkspaceSymbols
extends
IdObject
{
symbols
:
IWorkspaceSymbol
[];
}
export
interface
ExtHostLanguageFeaturesShape
{
$provideDocumentSymbols
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
modes
.
SymbolInformation
[]
>
;
$provideCodeLenses
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
modes
.
ICodeLensSymbol
[]
>
;
$resolveCodeLens
(
handle
:
number
,
resource
:
U
RI
,
symbol
:
modes
.
ICodeLensSymbol
):
TPromise
<
modes
.
ICodeLensSymbol
>
;
$provideDefinition
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
;
$provideImplementation
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
;
$provideTypeDefinition
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
;
$provideHover
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Hover
>
;
$provideDocumentHighlights
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
DocumentHighlight
[]
>
;
$provideReferences
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
context
:
modes
.
ReferenceContext
):
TPromise
<
modes
.
Location
[]
>
;
$provideCodeActions
(
handle
:
number
,
resource
:
U
RI
,
range
:
IRange
):
TPromise
<
modes
.
CodeAction
[]
>
;
$provideDocumentFormattingEdits
(
handle
:
number
,
resource
:
U
RI
,
options
:
modes
.
FormattingOptions
):
TPromise
<
editorCommon
.
ISingleEditOperation
[]
>
;
$provideDocumentRangeFormattingEdits
(
handle
:
number
,
resource
:
U
RI
,
range
:
IRange
,
options
:
modes
.
FormattingOptions
):
TPromise
<
editorCommon
.
ISingleEditOperation
[]
>
;
$provideOnTypeFormattingEdits
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
ch
:
string
,
options
:
modes
.
FormattingOptions
):
TPromise
<
editorCommon
.
ISingleEditOperation
[]
>
;
$provideDocumentSymbols
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
modes
.
SymbolInformation
[]
>
;
$provideCodeLenses
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
modes
.
ICodeLensSymbol
[]
>
;
$resolveCodeLens
(
handle
:
number
,
resource
:
U
riComponents
,
symbol
:
modes
.
ICodeLensSymbol
):
TPromise
<
modes
.
ICodeLensSymbol
>
;
$provideDefinition
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
;
$provideImplementation
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
;
$provideTypeDefinition
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
;
$provideHover
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Hover
>
;
$provideDocumentHighlights
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
DocumentHighlight
[]
>
;
$provideReferences
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
context
:
modes
.
ReferenceContext
):
TPromise
<
modes
.
Location
[]
>
;
$provideCodeActions
(
handle
:
number
,
resource
:
U
riComponents
,
range
:
IRange
):
TPromise
<
modes
.
CodeAction
[]
>
;
$provideDocumentFormattingEdits
(
handle
:
number
,
resource
:
U
riComponents
,
options
:
modes
.
FormattingOptions
):
TPromise
<
editorCommon
.
ISingleEditOperation
[]
>
;
$provideDocumentRangeFormattingEdits
(
handle
:
number
,
resource
:
U
riComponents
,
range
:
IRange
,
options
:
modes
.
FormattingOptions
):
TPromise
<
editorCommon
.
ISingleEditOperation
[]
>
;
$provideOnTypeFormattingEdits
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
ch
:
string
,
options
:
modes
.
FormattingOptions
):
TPromise
<
editorCommon
.
ISingleEditOperation
[]
>
;
$provideWorkspaceSymbols
(
handle
:
number
,
search
:
string
):
TPromise
<
IWorkspaceSymbols
>
;
$resolveWorkspaceSymbol
(
handle
:
number
,
symbol
:
modes
.
SymbolInformation
):
TPromise
<
IWorkspaceSymbol
>
;
$releaseWorkspaceSymbols
(
handle
:
number
,
id
:
number
):
void
;
$provideRenameEdits
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
newName
:
string
):
TPromise
<
modes
.
WorkspaceEdit
>
;
$provideCompletionItems
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
context
:
modes
.
SuggestContext
):
TPromise
<
IExtHostSuggestResult
>
;
$resolveCompletionItem
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
suggestion
:
modes
.
ISuggestion
):
TPromise
<
modes
.
ISuggestion
>
;
$provideRenameEdits
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
newName
:
string
):
TPromise
<
modes
.
WorkspaceEdit
>
;
$provideCompletionItems
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
context
:
modes
.
SuggestContext
):
TPromise
<
IExtHostSuggestResult
>
;
$resolveCompletionItem
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
suggestion
:
modes
.
ISuggestion
):
TPromise
<
modes
.
ISuggestion
>
;
$releaseCompletionItems
(
handle
:
number
,
id
:
number
):
void
;
$provideSignatureHelp
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
SignatureHelp
>
;
$provideDocumentLinks
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
modes
.
ILink
[]
>
;
$provideSignatureHelp
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
SignatureHelp
>
;
$provideDocumentLinks
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
modes
.
ILink
[]
>
;
$resolveDocumentLink
(
handle
:
number
,
link
:
modes
.
ILink
):
TPromise
<
modes
.
ILink
>
;
$provideDocumentColors
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
IRawColorInfo
[]
>
;
$provideColorPresentations
(
handle
:
number
,
resource
:
U
RI
,
colorInfo
:
IRawColorInfo
):
TPromise
<
modes
.
IColorPresentation
[]
>
;
$provideDocumentColors
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
IRawColorInfo
[]
>
;
$provideColorPresentations
(
handle
:
number
,
resource
:
U
riComponents
,
colorInfo
:
IRawColorInfo
):
TPromise
<
modes
.
IColorPresentation
[]
>
;
}
export
interface
ExtHostQuickOpenShape
{
...
...
src/vs/workbench/api/node/extHostLanguageFeatures.ts
浏览文件 @
e20f08b2
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
URI
from
'
vs/base/common/uri
'
;
import
URI
,
{
UriComponents
}
from
'
vs/base/common/uri
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
mixin
}
from
'
vs/base/common/objects
'
;
import
*
as
vscode
from
'
vscode
'
;
...
...
@@ -835,8 +835,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDocumentSymbols
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
modes
.
SymbolInformation
[]
>
{
return
this
.
_withAdapter
(
handle
,
OutlineAdapter
,
adapter
=>
adapter
.
provideDocumentSymbols
(
resource
));
$provideDocumentSymbols
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
modes
.
SymbolInformation
[]
>
{
return
this
.
_withAdapter
(
handle
,
OutlineAdapter
,
adapter
=>
adapter
.
provideDocumentSymbols
(
URI
.
revive
(
resource
)
));
}
// --- code lens
...
...
@@ -857,12 +857,12 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
result
;
}
$provideCodeLenses
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
modes
.
ICodeLensSymbol
[]
>
{
return
this
.
_withAdapter
(
handle
,
CodeLensAdapter
,
adapter
=>
adapter
.
provideCodeLenses
(
resource
));
$provideCodeLenses
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
modes
.
ICodeLensSymbol
[]
>
{
return
this
.
_withAdapter
(
handle
,
CodeLensAdapter
,
adapter
=>
adapter
.
provideCodeLenses
(
URI
.
revive
(
resource
)
));
}
$resolveCodeLens
(
handle
:
number
,
resource
:
U
RI
,
symbol
:
modes
.
ICodeLensSymbol
):
TPromise
<
modes
.
ICodeLensSymbol
>
{
return
this
.
_withAdapter
(
handle
,
CodeLensAdapter
,
adapter
=>
adapter
.
resolveCodeLens
(
resource
,
symbol
));
$resolveCodeLens
(
handle
:
number
,
resource
:
U
riComponents
,
symbol
:
modes
.
ICodeLensSymbol
):
TPromise
<
modes
.
ICodeLensSymbol
>
{
return
this
.
_withAdapter
(
handle
,
CodeLensAdapter
,
adapter
=>
adapter
.
resolveCodeLens
(
URI
.
revive
(
resource
)
,
symbol
));
}
// --- declaration
...
...
@@ -874,8 +874,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDefinition
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
{
return
this
.
_withAdapter
(
handle
,
DefinitionAdapter
,
adapter
=>
adapter
.
provideDefinition
(
resource
,
position
));
$provideDefinition
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
{
return
this
.
_withAdapter
(
handle
,
DefinitionAdapter
,
adapter
=>
adapter
.
provideDefinition
(
URI
.
revive
(
resource
)
,
position
));
}
registerImplementationProvider
(
selector
:
vscode
.
DocumentSelector
,
provider
:
vscode
.
ImplementationProvider
):
vscode
.
Disposable
{
...
...
@@ -885,8 +885,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideImplementation
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
{
return
this
.
_withAdapter
(
handle
,
ImplementationAdapter
,
adapter
=>
adapter
.
provideImplementation
(
resource
,
position
));
$provideImplementation
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
{
return
this
.
_withAdapter
(
handle
,
ImplementationAdapter
,
adapter
=>
adapter
.
provideImplementation
(
URI
.
revive
(
resource
)
,
position
));
}
registerTypeDefinitionProvider
(
selector
:
vscode
.
DocumentSelector
,
provider
:
vscode
.
TypeDefinitionProvider
):
vscode
.
Disposable
{
...
...
@@ -896,8 +896,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideTypeDefinition
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
{
return
this
.
_withAdapter
(
handle
,
TypeDefinitionAdapter
,
adapter
=>
adapter
.
provideTypeDefinition
(
resource
,
position
));
$provideTypeDefinition
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Definition
>
{
return
this
.
_withAdapter
(
handle
,
TypeDefinitionAdapter
,
adapter
=>
adapter
.
provideTypeDefinition
(
URI
.
revive
(
resource
)
,
position
));
}
// --- extra info
...
...
@@ -909,8 +909,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideHover
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
Hover
>
{
return
this
.
_withAdapter
(
handle
,
HoverAdapter
,
adpater
=>
adpater
.
provideHover
(
resource
,
position
));
$provideHover
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
Hover
>
{
return
this
.
_withAdapter
(
handle
,
HoverAdapter
,
adpater
=>
adpater
.
provideHover
(
URI
.
revive
(
resource
)
,
position
));
}
// --- occurrences
...
...
@@ -922,8 +922,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDocumentHighlights
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
DocumentHighlight
[]
>
{
return
this
.
_withAdapter
(
handle
,
DocumentHighlightAdapter
,
adapter
=>
adapter
.
provideDocumentHighlights
(
resource
,
position
));
$provideDocumentHighlights
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
DocumentHighlight
[]
>
{
return
this
.
_withAdapter
(
handle
,
DocumentHighlightAdapter
,
adapter
=>
adapter
.
provideDocumentHighlights
(
URI
.
revive
(
resource
)
,
position
));
}
// --- references
...
...
@@ -935,8 +935,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideReferences
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
context
:
modes
.
ReferenceContext
):
TPromise
<
modes
.
Location
[]
>
{
return
this
.
_withAdapter
(
handle
,
ReferenceAdapter
,
adapter
=>
adapter
.
provideReferences
(
resource
,
position
,
context
));
$provideReferences
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
context
:
modes
.
ReferenceContext
):
TPromise
<
modes
.
Location
[]
>
{
return
this
.
_withAdapter
(
handle
,
ReferenceAdapter
,
adapter
=>
adapter
.
provideReferences
(
URI
.
revive
(
resource
)
,
position
,
context
));
}
// --- quick fix
...
...
@@ -948,8 +948,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideCodeActions
(
handle
:
number
,
resource
:
U
RI
,
range
:
IRange
):
TPromise
<
modes
.
CodeAction
[]
>
{
return
this
.
_withAdapter
(
handle
,
CodeActionAdapter
,
adapter
=>
adapter
.
provideCodeActions
(
resource
,
range
));
$provideCodeActions
(
handle
:
number
,
resource
:
U
riComponents
,
range
:
IRange
):
TPromise
<
modes
.
CodeAction
[]
>
{
return
this
.
_withAdapter
(
handle
,
CodeActionAdapter
,
adapter
=>
adapter
.
provideCodeActions
(
URI
.
revive
(
resource
)
,
range
));
}
// --- formatting
...
...
@@ -961,8 +961,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDocumentFormattingEdits
(
handle
:
number
,
resource
:
U
RI
,
options
:
modes
.
FormattingOptions
):
TPromise
<
ISingleEditOperation
[]
>
{
return
this
.
_withAdapter
(
handle
,
DocumentFormattingAdapter
,
adapter
=>
adapter
.
provideDocumentFormattingEdits
(
resource
,
options
));
$provideDocumentFormattingEdits
(
handle
:
number
,
resource
:
U
riComponents
,
options
:
modes
.
FormattingOptions
):
TPromise
<
ISingleEditOperation
[]
>
{
return
this
.
_withAdapter
(
handle
,
DocumentFormattingAdapter
,
adapter
=>
adapter
.
provideDocumentFormattingEdits
(
URI
.
revive
(
resource
)
,
options
));
}
registerDocumentRangeFormattingEditProvider
(
selector
:
vscode
.
DocumentSelector
,
provider
:
vscode
.
DocumentRangeFormattingEditProvider
):
vscode
.
Disposable
{
...
...
@@ -972,8 +972,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDocumentRangeFormattingEdits
(
handle
:
number
,
resource
:
U
RI
,
range
:
IRange
,
options
:
modes
.
FormattingOptions
):
TPromise
<
ISingleEditOperation
[]
>
{
return
this
.
_withAdapter
(
handle
,
RangeFormattingAdapter
,
adapter
=>
adapter
.
provideDocumentRangeFormattingEdits
(
resource
,
range
,
options
));
$provideDocumentRangeFormattingEdits
(
handle
:
number
,
resource
:
U
riComponents
,
range
:
IRange
,
options
:
modes
.
FormattingOptions
):
TPromise
<
ISingleEditOperation
[]
>
{
return
this
.
_withAdapter
(
handle
,
RangeFormattingAdapter
,
adapter
=>
adapter
.
provideDocumentRangeFormattingEdits
(
URI
.
revive
(
resource
)
,
range
,
options
));
}
registerOnTypeFormattingEditProvider
(
selector
:
vscode
.
DocumentSelector
,
provider
:
vscode
.
OnTypeFormattingEditProvider
,
triggerCharacters
:
string
[]):
vscode
.
Disposable
{
...
...
@@ -983,8 +983,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideOnTypeFormattingEdits
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
ch
:
string
,
options
:
modes
.
FormattingOptions
):
TPromise
<
ISingleEditOperation
[]
>
{
return
this
.
_withAdapter
(
handle
,
OnTypeFormattingAdapter
,
adapter
=>
adapter
.
provideOnTypeFormattingEdits
(
resource
,
position
,
ch
,
options
));
$provideOnTypeFormattingEdits
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
ch
:
string
,
options
:
modes
.
FormattingOptions
):
TPromise
<
ISingleEditOperation
[]
>
{
return
this
.
_withAdapter
(
handle
,
OnTypeFormattingAdapter
,
adapter
=>
adapter
.
provideOnTypeFormattingEdits
(
URI
.
revive
(
resource
)
,
position
,
ch
,
options
));
}
// --- navigate types
...
...
@@ -1017,8 +1017,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideRenameEdits
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
newName
:
string
):
TPromise
<
modes
.
WorkspaceEdit
>
{
return
this
.
_withAdapter
(
handle
,
RenameAdapter
,
adapter
=>
adapter
.
provideRenameEdits
(
resource
,
position
,
newName
));
$provideRenameEdits
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
newName
:
string
):
TPromise
<
modes
.
WorkspaceEdit
>
{
return
this
.
_withAdapter
(
handle
,
RenameAdapter
,
adapter
=>
adapter
.
provideRenameEdits
(
URI
.
revive
(
resource
)
,
position
,
newName
));
}
// --- suggestion
...
...
@@ -1030,12 +1030,12 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideCompletionItems
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
context
:
modes
.
SuggestContext
):
TPromise
<
IExtHostSuggestResult
>
{
return
this
.
_withAdapter
(
handle
,
SuggestAdapter
,
adapter
=>
adapter
.
provideCompletionItems
(
resource
,
position
,
context
));
$provideCompletionItems
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
context
:
modes
.
SuggestContext
):
TPromise
<
IExtHostSuggestResult
>
{
return
this
.
_withAdapter
(
handle
,
SuggestAdapter
,
adapter
=>
adapter
.
provideCompletionItems
(
URI
.
revive
(
resource
)
,
position
,
context
));
}
$resolveCompletionItem
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
,
suggestion
:
modes
.
ISuggestion
):
TPromise
<
modes
.
ISuggestion
>
{
return
this
.
_withAdapter
(
handle
,
SuggestAdapter
,
adapter
=>
adapter
.
resolveCompletionItem
(
resource
,
position
,
suggestion
));
$resolveCompletionItem
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
,
suggestion
:
modes
.
ISuggestion
):
TPromise
<
modes
.
ISuggestion
>
{
return
this
.
_withAdapter
(
handle
,
SuggestAdapter
,
adapter
=>
adapter
.
resolveCompletionItem
(
URI
.
revive
(
resource
)
,
position
,
suggestion
));
}
$releaseCompletionItems
(
handle
:
number
,
id
:
number
):
void
{
...
...
@@ -1051,8 +1051,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideSignatureHelp
(
handle
:
number
,
resource
:
U
RI
,
position
:
IPosition
):
TPromise
<
modes
.
SignatureHelp
>
{
return
this
.
_withAdapter
(
handle
,
SignatureHelpAdapter
,
adapter
=>
adapter
.
provideSignatureHelp
(
resource
,
position
));
$provideSignatureHelp
(
handle
:
number
,
resource
:
U
riComponents
,
position
:
IPosition
):
TPromise
<
modes
.
SignatureHelp
>
{
return
this
.
_withAdapter
(
handle
,
SignatureHelpAdapter
,
adapter
=>
adapter
.
provideSignatureHelp
(
URI
.
revive
(
resource
)
,
position
));
}
// --- links
...
...
@@ -1064,8 +1064,8 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDocumentLinks
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
modes
.
ILink
[]
>
{
return
this
.
_withAdapter
(
handle
,
LinkProviderAdapter
,
adapter
=>
adapter
.
provideLinks
(
resource
));
$provideDocumentLinks
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
modes
.
ILink
[]
>
{
return
this
.
_withAdapter
(
handle
,
LinkProviderAdapter
,
adapter
=>
adapter
.
provideLinks
(
URI
.
revive
(
resource
)
));
}
$resolveDocumentLink
(
handle
:
number
,
link
:
modes
.
ILink
):
TPromise
<
modes
.
ILink
>
{
...
...
@@ -1079,12 +1079,12 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return
this
.
_createDisposable
(
handle
);
}
$provideDocumentColors
(
handle
:
number
,
resource
:
U
RI
):
TPromise
<
IRawColorInfo
[]
>
{
return
this
.
_withAdapter
(
handle
,
ColorProviderAdapter
,
adapter
=>
adapter
.
provideColors
(
resource
));
$provideDocumentColors
(
handle
:
number
,
resource
:
U
riComponents
):
TPromise
<
IRawColorInfo
[]
>
{
return
this
.
_withAdapter
(
handle
,
ColorProviderAdapter
,
adapter
=>
adapter
.
provideColors
(
URI
.
revive
(
resource
)
));
}
$provideColorPresentations
(
handle
:
number
,
resource
:
U
RI
,
colorInfo
:
IRawColorInfo
):
TPromise
<
modes
.
IColorPresentation
[]
>
{
return
this
.
_withAdapter
(
handle
,
ColorProviderAdapter
,
adapter
=>
adapter
.
provideColorPresentations
(
resource
,
colorInfo
));
$provideColorPresentations
(
handle
:
number
,
resource
:
U
riComponents
,
colorInfo
:
IRawColorInfo
):
TPromise
<
modes
.
IColorPresentation
[]
>
{
return
this
.
_withAdapter
(
handle
,
ColorProviderAdapter
,
adapter
=>
adapter
.
provideColorPresentations
(
URI
.
revive
(
resource
)
,
colorInfo
));
}
// --- configuration
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录