Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
541681ea
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,发现更多精彩内容 >>
提交
541681ea
编写于
4月 04, 2017
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Support new completion items in TS
上级
16876b25
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
32 deletion
+30
-32
extensions/typescript/src/features/completionItemProvider.ts
extensions/typescript/src/features/completionItemProvider.ts
+3
-2
extensions/typescript/src/protocol.const.ts
extensions/typescript/src/protocol.const.ts
+27
-30
未找到文件。
extensions/typescript/src/features/completionItemProvider.ts
浏览文件 @
541681ea
...
...
@@ -59,17 +59,19 @@ class MyCompletionItem extends CompletionItem {
case
PConst
.
Kind
.
let
:
case
PConst
.
Kind
.
variable
:
case
PConst
.
Kind
.
localVariable
:
case
PConst
.
Kind
.
alias
:
return
CompletionItemKind
.
Variable
;
case
PConst
.
Kind
.
memberVariable
:
case
PConst
.
Kind
.
memberGetAccessor
:
case
PConst
.
Kind
.
memberSetAccessor
:
return
CompletionItemKind
.
Field
;
case
PConst
.
Kind
.
function
:
return
CompletionItemKind
.
Function
;
case
PConst
.
Kind
.
memberFunction
:
case
PConst
.
Kind
.
constructSignature
:
case
PConst
.
Kind
.
callSignature
:
case
PConst
.
Kind
.
indexSignature
:
return
CompletionItemKind
.
Function
;
return
CompletionItemKind
.
Method
;
case
PConst
.
Kind
.
enum
:
return
CompletionItemKind
.
Enum
;
case
PConst
.
Kind
.
module
:
...
...
@@ -87,7 +89,6 @@ class MyCompletionItem extends CompletionItem {
case
PConst
.
Kind
.
directory
:
return
CompletionItemKind
.
Folder
;
}
return
CompletionItemKind
.
Property
;
}
...
...
extensions/typescript/src/protocol.const.ts
浏览文件 @
541681ea
...
...
@@ -6,34 +6,31 @@
'
use strict
'
;
export
class
Kind
{
public
static
unknown
=
''
;
public
static
keyword
=
'
keyword
'
;
public
static
script
=
'
script
'
;
public
static
module
=
'
module
'
;
public
static
class
=
'
class
'
;
public
static
interface
=
'
interface
'
;
public
static
type
=
'
type
'
;
public
static
enum
=
'
enum
'
;
public
static
variable
=
'
var
'
;
public
static
localVariable
=
'
local var
'
;
public
static
function
=
'
function
'
;
public
static
localFunction
=
'
local function
'
;
public
static
memberFunction
=
'
method
'
;
public
static
memberGetAccessor
=
'
getter
'
;
public
static
memberSetAccessor
=
'
setter
'
;
public
static
memberVariable
=
'
property
'
;
public
static
constructorImplementation
=
'
constructor
'
;
public
static
callSignature
=
'
call
'
;
public
static
indexSignature
=
'
index
'
;
public
static
constructSignature
=
'
construct
'
;
public
static
parameter
=
'
parameter
'
;
public
static
typeParameter
=
'
type parameter
'
;
public
static
primitiveType
=
'
primitive type
'
;
public
static
alias
=
'
alias
'
;
public
static
const
=
'
const
'
;
public
static
let
=
'
let
'
;
public
static
warning
=
'
warning
'
;
public
static
directory
=
'
directory
'
;
public
static
file
=
'
file
'
;
public
static
externalModuleName
=
'
external module name
'
;
public
static
readonly
alias
=
'
alias
'
;
public
static
readonly
callSignature
=
'
call
'
;
public
static
readonly
class
=
'
class
'
;
public
static
readonly
const
=
'
const
'
;
public
static
readonly
constructorImplementation
=
'
constructor
'
;
public
static
readonly
constructSignature
=
'
construct
'
;
public
static
readonly
directory
=
'
directory
'
;
public
static
readonly
enum
=
'
enum
'
;
public
static
readonly
externalModuleName
=
'
external module name
'
;
public
static
readonly
file
=
'
file
'
;
public
static
readonly
function
=
'
function
'
;
public
static
readonly
indexSignature
=
'
index
'
;
public
static
readonly
interface
=
'
interface
'
;
public
static
readonly
keyword
=
'
keyword
'
;
public
static
readonly
let
=
'
let
'
;
public
static
readonly
localFunction
=
'
local function
'
;
public
static
readonly
localVariable
=
'
local var
'
;
public
static
readonly
memberFunction
=
'
method
'
;
public
static
readonly
memberGetAccessor
=
'
getter
'
;
public
static
readonly
memberSetAccessor
=
'
setter
'
;
public
static
readonly
memberVariable
=
'
property
'
;
public
static
readonly
module
=
'
module
'
;
public
static
readonly
primitiveType
=
'
primitive type
'
;
public
static
readonly
script
=
'
script
'
;
public
static
readonly
type
=
'
type
'
;
public
static
readonly
variable
=
'
var
'
;
public
static
readonly
warning
=
'
warning
'
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录