Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
eeab6fc3
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,发现更多精彩内容 >>
未验证
提交
eeab6fc3
编写于
8月 27, 2019
作者:
P
Pine
提交者:
GitHub
8月 27, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #79962 from microsoft/pine/css-deprecated
Add middleware for processing deprecated. Fix #79584
上级
e493a50a
afe281cf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
6 deletion
+33
-6
extensions/css-language-features/client/src/cssMain.ts
extensions/css-language-features/client/src/cssMain.ts
+28
-1
extensions/css-language-features/server/package.json
extensions/css-language-features/server/package.json
+1
-1
extensions/css-language-features/server/yarn.lock
extensions/css-language-features/server/yarn.lock
+4
-4
未找到文件。
extensions/css-language-features/client/src/cssMain.ts
浏览文件 @
eeab6fc3
...
...
@@ -9,9 +9,10 @@ import * as fs from 'fs';
import
*
as
nls
from
'
vscode-nls
'
;
const
localize
=
nls
.
loadMessageBundle
();
import
{
languages
,
window
,
commands
,
ExtensionContext
,
Range
,
Position
,
CompletionItem
,
CompletionItemKind
,
TextEdit
,
SnippetString
,
workspace
}
from
'
vscode
'
;
import
{
languages
,
window
,
commands
,
ExtensionContext
,
Range
,
Position
,
CompletionItem
,
CompletionItemKind
,
TextEdit
,
SnippetString
,
workspace
,
CompletionItemTag
}
from
'
vscode
'
;
import
{
LanguageClient
,
LanguageClientOptions
,
ServerOptions
,
TransportKind
,
Disposable
}
from
'
vscode-languageclient
'
;
import
{
getCustomDataPathsInAllWorkspaces
,
getCustomDataPathsFromAllExtensions
}
from
'
./customData
'
;
import
{
isArray
}
from
'
util
'
;
// this method is called when vs code is activated
export
function
activate
(
context
:
ExtensionContext
)
{
...
...
@@ -44,6 +45,32 @@ export function activate(context: ExtensionContext) {
},
initializationOptions
:
{
dataPaths
},
middleware
:
{
async
provideCompletionItem
(
document
,
position
,
context
,
token
,
next
)
{
const
result
=
await
next
(
document
,
position
,
context
,
token
);
if
(
result
)
{
if
(
isArray
(
result
))
{
return
result
.
map
(
r
=>
{
return
{
...
r
,
tags
:
(
r
as
any
).
deprecated
?
[
CompletionItemTag
.
Deprecated
]
:
undefined
};
});
}
else
{
return
{
isIncomplete
:
result
.
isIncomplete
,
items
:
result
.
items
.
map
(
r
=>
{
return
{
...
r
,
tags
:
(
r
as
any
).
deprecated
?
[
CompletionItemTag
.
Deprecated
]
:
undefined
};
})
};
}
}
return
result
;
}
}
};
...
...
extensions/css-language-features/server/package.json
浏览文件 @
eeab6fc3
...
...
@@ -9,7 +9,7 @@
},
"main"
:
"./out/cssServerMain"
,
"dependencies"
:
{
"vscode-css-languageservice"
:
"^4.0.3-next.
4
"
,
"vscode-css-languageservice"
:
"^4.0.3-next.
6
"
,
"vscode-languageserver"
:
"^5.3.0-next.8"
},
"devDependencies"
:
{
...
...
extensions/css-language-features/server/yarn.lock
浏览文件 @
eeab6fc3
...
...
@@ -781,10 +781,10 @@ supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"
vscode-css-languageservice@^4.0.3-next.
4
:
version "4.0.3-next.
4
"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.
4.tgz#3f0ccf116567650597b5cbfd8ce09846a64dec13
"
integrity sha512-
9eaKw6ez+l407/uzIho51ElMqGSJcOV+M5B/HmAtdBPSc/chkAfx3r7zXOqrAlLKsBzZNVpnsA3C3YDjyZbrdg
==
vscode-css-languageservice@^4.0.3-next.
6
:
version "4.0.3-next.
6
"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.
6.tgz#c9b70ae6dc7418d080188ba9772bf47343b929e7
"
integrity sha512-
Ip9EzhgZmwYEmmTw4oIN8oaZ1gUEJqVDrfcvPJ/bfc9lcYeSxexQ+9O5TiF106nX2g5f93sWYX/rDiAhxSgf4A
==
dependencies:
vscode-languageserver-types "^3.15.0-next.2"
vscode-nls "^4.1.1"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录