Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c198ec2e
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,发现更多精彩内容 >>
提交
c198ec2e
编写于
11月 05, 2019
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[css] update TextDocument & use incremental sync
上级
fd6d7489
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
51 addition
and
53 deletion
+51
-53
extensions/css-language-features/package.json
extensions/css-language-features/package.json
+1
-1
extensions/css-language-features/server/package.json
extensions/css-language-features/server/package.json
+2
-2
extensions/css-language-features/server/src/cssServerMain.ts
extensions/css-language-features/server/src/cssServerMain.ts
+4
-6
extensions/css-language-features/server/yarn.lock
extensions/css-language-features/server/yarn.lock
+30
-30
extensions/css-language-features/yarn.lock
extensions/css-language-features/yarn.lock
+14
-14
未找到文件。
extensions/css-language-features/package.json
浏览文件 @
c198ec2e
...
...
@@ -795,7 +795,7 @@
]
},
"dependencies"
:
{
"vscode-languageclient"
:
"^6.0.0-next.
1
"
,
"vscode-languageclient"
:
"^6.0.0-next.
3
"
,
"vscode-nls"
:
"^4.1.1"
},
"devDependencies"
:
{
...
...
extensions/css-language-features/server/package.json
浏览文件 @
c198ec2e
...
...
@@ -9,8 +9,8 @@
},
"main"
:
"./out/cssServerMain"
,
"dependencies"
:
{
"vscode-css-languageservice"
:
"^4.0.3-next.1
5
"
,
"vscode-languageserver"
:
"^6.0.0-next.
1
"
"vscode-css-languageservice"
:
"^4.0.3-next.1
9
"
,
"vscode-languageserver"
:
"^6.0.0-next.
3
"
},
"devDependencies"
:
{
"@types/mocha"
:
"2.2.33"
,
...
...
extensions/css-language-features/server/src/cssServerMain.ts
浏览文件 @
c198ec2e
...
...
@@ -4,13 +4,11 @@
*--------------------------------------------------------------------------------------------*/
import
{
createConnection
,
IConnection
,
TextDocuments
,
InitializeParams
,
InitializeResult
,
ServerCapabilities
,
ConfigurationRequest
,
WorkspaceFolder
createConnection
,
IConnection
,
TextDocuments
,
InitializeParams
,
InitializeResult
,
ServerCapabilities
,
ConfigurationRequest
,
WorkspaceFolder
,
TextDocumentSyncKind
}
from
'
vscode-languageserver
'
;
import
{
URI
}
from
'
vscode-uri
'
;
import
{
TextDocument
,
CompletionList
,
Position
}
from
'
vscode-languageserver-types
'
;
import
{
stat
as
fsStat
}
from
'
fs
'
;
import
{
getCSSLanguageService
,
getSCSSLanguageService
,
getLESSLanguageService
,
LanguageSettings
,
LanguageService
,
Stylesheet
,
FileSystemProvider
,
FileType
}
from
'
vscode-css-languageservice
'
;
import
{
getCSSLanguageService
,
getSCSSLanguageService
,
getLESSLanguageService
,
LanguageSettings
,
LanguageService
,
Stylesheet
,
FileSystemProvider
,
FileType
,
TextDocument
,
CompletionList
,
Position
}
from
'
vscode-css-languageservice
'
;
import
{
getLanguageModelCache
}
from
'
./languageModelCache
'
;
import
{
getPathCompletionParticipant
}
from
'
./pathCompletion
'
;
import
{
formatError
,
runSafe
,
runSafeAsync
}
from
'
./utils/runner
'
;
...
...
@@ -34,7 +32,7 @@ process.on('unhandledRejection', (e: any) => {
});
// Create a text document manager.
const
documents
:
TextDocuments
=
new
TextDocuments
(
);
const
documents
=
new
TextDocuments
(
TextDocument
);
// Make the text document manager listen on the connection
// for open, change and close text document events
documents
.
listen
(
connection
);
...
...
@@ -127,7 +125,7 @@ connection.onInitialize((params: InitializeParams): InitializeResult => {
const
capabilities
:
ServerCapabilities
=
{
// Tell the client that the server works in FULL text document sync mode
textDocumentSync
:
documents
.
syncKind
,
textDocumentSync
:
TextDocumentSyncKind
.
Incremental
,
completionProvider
:
snippetSupport
?
{
resolveProvider
:
false
,
triggerCharacters
:
[
'
/
'
,
'
-
'
]
}
:
undefined
,
hoverProvider
:
true
,
documentSymbolProvider
:
true
,
...
...
extensions/css-language-features/server/yarn.lock
浏览文件 @
c198ec2e
...
...
@@ -781,55 +781,55 @@ supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"
vscode-css-languageservice@^4.0.3-next.1
5
:
version "4.0.3-next.1
5
"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.1
5.tgz#e7b7dab2f1e6e9452bb2fb8c400dbcff3b8927aa
"
integrity sha512-
y2bNfcZgNH3F7R0N/1ePnVtzvGwi9f6leW5L0zPso/wVK9A4xw5rmZA1pTV9vMjoio2h3gUB1T8HTQeVxota2Q
==
vscode-css-languageservice@^4.0.3-next.1
9
:
version "4.0.3-next.1
9
"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.1
9.tgz#b7dc58fb8d1968877724e163b6ef20b26c0b5ff6
"
integrity sha512-
wWSo2MZvd8aEI9lf/Asy0MP0Ao6xAzhBeEWxGcF+Ms/zcV4lDRkyFCNzwDt0OgWRzsBNaEBXfjeWLq9rNXkREA
==
dependencies:
vscode-languageserver-types "^3.15.0-next.5"
vscode-languageserver-textdocument "^1.0.0-next.4"
vscode-languageserver-types "^3.15.0-next.6"
vscode-nls "^4.1.1"
vscode-uri "^2.
0.3
"
vscode-uri "^2.
1.1
"
vscode-jsonrpc@^5.0.0-next.2:
version "5.0.0-next.2"
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-5.0.0-next.2.tgz#a44bc03f67069e53f8d8beb88b96c0cacbfefbca"
integrity sha512-Q3/jabZUNviCG9hhF6hHWjhrABevPF9mv0aiE2j8BYCAP2k+aHTpjMyk+04MzaAqWYwXdQuZkLSbcYCCqbzJLg==
vscode-languageserver-protocol@^3.15.0-next.
9
:
version "3.15.0-next.
9
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.15.0-next.
9.tgz#e768256bd5b580b25bfbc8099bc03bc4c42ebf30
"
integrity sha512-
b9PAxouMmtsLEe8ZjbIMPb7wRWPhckGfgjwZLmp/dWnaAuRPYtY3lGO0/rNbLc3jKIqCVlnEyYVFKalzDAzj0g
==
vscode-languageserver-protocol@^3.15.0-next.
10
:
version "3.15.0-next.
10
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.15.0-next.
10.tgz#f1382f0c270ae5d0c2c7e552483285fb75810914
"
integrity sha512-
TmbBhKrBoYNX+/pQGwoXmy2qlOfjGBUhwUGIzQoWpj8qtDzYuLof8bi19rGLZ9sVuSHh3anvIyVpGJEqT0QODQ
==
dependencies:
vscode-jsonrpc "^5.0.0-next.2"
vscode-languageserver-types "^3.15.0-next.
5
"
vscode-languageserver-types "^3.15.0-next.
6
"
vscode-languageserver-t
ypes@^3.15.0-next.5
:
version "
3.15.0-next.5
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-t
ypes/-/vscode-languageserver-types-3.15.0-next.5.tgz#863d711bf47b338ff5e63ae19fb20d4fcd4d713b
"
integrity sha512-
7hrELhTeWieUgex3+6692KjCkcmO/+V/bFItM5MHGcBotzwmjEuXjapLLYTYhIspuJ1ibRSik5MhX5YwLpsPiw
==
vscode-languageserver-t
extdocument@^1.0.0-next.4
:
version "
1.0.0-next.4
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-t
extdocument/-/vscode-languageserver-textdocument-1.0.0-next.4.tgz#8f7afdfe3e81411f57baaa29bb3214d1907160cd
"
integrity sha512-
LJ5WfoBO54nqinjlLJKnjoo2Im4bIvPJ8bFT7R0C84ZI36iK8M29ddslfe5jUeWNSTtCda7YuKdKsDIq38HpgA
==
vscode-languageserver@^6.0.0-next.1:
version "6.0.0-next.1"
resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-6.0.0-next.1.tgz#4d71886d4a17d22eafc61b3a5fbf84e8e27c191f"
integrity sha512-LSF6bXoFeXfMPRNyqzI3yFX/kD2DzXBemqvyj1kDWNVraiWttm4xKF4YXsvJ7Z3s9sVt/Dpu3CFU3w61PGNZMg==
vscode-languageserver-types@^3.15.0-next.6:
version "3.15.0-next.6"
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.15.0-next.6.tgz#7a990d00c39ad4e744335afb4cc422a3e687ff25"
integrity sha512-+4jfvmZ26oFMSX6EgPRB75PWHoT8pzyWuSSWk0erC4hTzmJq2gWxVLh20bZutZjMmiivawvPshtM3XZhX2SttA==
vscode-languageserver@^6.0.0-next.3:
version "6.0.0-next.3"
resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-6.0.0-next.3.tgz#41e2fda6417939792f6a19fc19ecbb2f080e2072"
integrity sha512-Q6T+KwYuoXV9KRHD6x7RfTU13pV0xAX2BtcuvSC/LBCiVAnEIOe7jKZjzya+B9gDvSk4hpfvhPefy5IdQK1mpQ==
dependencies:
vscode-languageserver-protocol "^3.15.0-next.9"
vscode-textbuffer "^1.0.0"
vscode-languageserver-protocol "^3.15.0-next.10"
vscode-nls@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-4.1.1.tgz#f9916b64e4947b20322defb1e676a495861f133c"
integrity sha512-4R+2UoUUU/LdnMnFjePxfLqNhBS8lrAFyX7pjb2ud/lqDkrUavFUTcG7wR0HBZFakae0Q6KLBFjMS6W93F403A==
vscode-textbuffer@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/vscode-textbuffer/-/vscode-textbuffer-1.0.0.tgz#1faee638c8e0e4131c8d5c353993a1874acda086"
integrity sha512-zPaHo4urgpwsm+PrJWfNakolRpryNja18SUip/qIIsfhuEqEIPEXMxHOlFPjvDC4JgTaimkncNW7UMXRJTY6ow==
vscode-uri@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-2.0.3.tgz#25e5f37f552fbee3cec7e5f80cef8469cefc6543"
integrity sha512-4D3DI3F4uRy09WNtDGD93H9q034OHImxiIcSq664Hq1Y1AScehlP3qqZyTkX/RWxeu0MRMHGkrxYqm2qlDF/aw==
vscode-uri@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-2.1.1.tgz#5aa1803391b6ebdd17d047f51365cf62c38f6e90"
integrity sha512-eY9jmGoEnVf8VE8xr5znSah7Qt1P/xsCdErz+g8HYZtJ7bZqKH5E3d+6oVNm1AC/c6IHUDokbmVXKOi4qPAC9A==
which-module@^2.0.0:
version "2.0.0"
...
...
extensions/css-language-features/yarn.lock
浏览文件 @
c198ec2e
...
...
@@ -537,26 +537,26 @@ vscode-jsonrpc@^5.0.0-next.2:
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-5.0.0-next.2.tgz#a44bc03f67069e53f8d8beb88b96c0cacbfefbca"
integrity sha512-Q3/jabZUNviCG9hhF6hHWjhrABevPF9mv0aiE2j8BYCAP2k+aHTpjMyk+04MzaAqWYwXdQuZkLSbcYCCqbzJLg==
vscode-languageclient@^6.0.0-next.
1
:
version "6.0.0-next.
1
"
resolved "https://registry.yarnpkg.com/vscode-languageclient/-/vscode-languageclient-6.0.0-next.
1.tgz#deca1743afd20da092e04e40ef73cedbbd978455
"
integrity sha512-
eJ9VjLFNINArgRzLbQ11YlWry7dM93GEODkQBXTRfrSypksiO9qSGr4SHhWgxxP26p4FRSpzc/17+N+Egnnch
g==
vscode-languageclient@^6.0.0-next.
3
:
version "6.0.0-next.
3
"
resolved "https://registry.yarnpkg.com/vscode-languageclient/-/vscode-languageclient-6.0.0-next.
3.tgz#41b701d963fc7affc01e9279532a747fcd4f3810
"
integrity sha512-
SuSaG9xjqkROm4Ie0jQig0CFDuU/WxHERegl3kRsFHDbhMSK4dH45ZeBY5zMWUgZ+LrIrEbwf8qWNlrTRBlUg
g==
dependencies:
semver "^6.3.0"
vscode-languageserver-protocol "^3.15.0-next.
9
"
vscode-languageserver-protocol "^3.15.0-next.
10
"
vscode-languageserver-protocol@^3.15.0-next.
9
:
version "3.15.0-next.
9
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.15.0-next.
9.tgz#e768256bd5b580b25bfbc8099bc03bc4c42ebf30
"
integrity sha512-
b9PAxouMmtsLEe8ZjbIMPb7wRWPhckGfgjwZLmp/dWnaAuRPYtY3lGO0/rNbLc3jKIqCVlnEyYVFKalzDAzj0g
==
vscode-languageserver-protocol@^3.15.0-next.
10
:
version "3.15.0-next.
10
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.15.0-next.
10.tgz#f1382f0c270ae5d0c2c7e552483285fb75810914
"
integrity sha512-
TmbBhKrBoYNX+/pQGwoXmy2qlOfjGBUhwUGIzQoWpj8qtDzYuLof8bi19rGLZ9sVuSHh3anvIyVpGJEqT0QODQ
==
dependencies:
vscode-jsonrpc "^5.0.0-next.2"
vscode-languageserver-types "^3.15.0-next.
5
"
vscode-languageserver-types "^3.15.0-next.
6
"
vscode-languageserver-types@^3.15.0-next.
5
:
version "3.15.0-next.
5
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.15.0-next.
5.tgz#863d711bf47b338ff5e63ae19fb20d4fcd4d713b
"
integrity sha512-
7hrELhTeWieUgex3+6692KjCkcmO/+V/bFItM5MHGcBotzwmjEuXjapLLYTYhIspuJ1ibRSik5MhX5YwLpsPiw
==
vscode-languageserver-types@^3.15.0-next.
6
:
version "3.15.0-next.
6
"
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.15.0-next.
6.tgz#7a990d00c39ad4e744335afb4cc422a3e687ff25
"
integrity sha512-
+4jfvmZ26oFMSX6EgPRB75PWHoT8pzyWuSSWk0erC4hTzmJq2gWxVLh20bZutZjMmiivawvPshtM3XZhX2SttA
==
vscode-nls@^4.1.1:
version "4.1.1"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录