Skip to content

Commit

Permalink
Part of #79964
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Oct 22, 2019
1 parent c928a44 commit 7fa28ec
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 36 deletions.
26 changes: 0 additions & 26 deletions extensions/css-language-features/client/src/cssMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,6 @@ 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;
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion extensions/css-language-features/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"main": "./out/cssServerMain",
"dependencies": {
"vscode-css-languageservice": "^4.0.3-next.13",
"vscode-css-languageservice": "^4.0.3-next.14",
"vscode-languageserver": "^6.0.0-next.1"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions extensions/css-language-features/server/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -781,10 +781,10 @@ supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"

vscode-css-languageservice@^4.0.3-next.13:
version "4.0.3-next.13"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.13.tgz#a6c567f5dcf490ac430a6500935919826a3f057a"
integrity sha512-RqTxCXTB0owqiTJwUaELYMxpPl8Znd5b0FCaFs7QF7HmvUnS/MHGWDLLSJM/19H3wLemjZFwI+kX6PBTsnbAog==
vscode-css-languageservice@^4.0.3-next.14:
version "4.0.3-next.14"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.14.tgz#dcdbaec144c948c3f1f3640147f0102e0b964468"
integrity sha512-moBCof4SxK196tZ0cZe7U96goNvYKei8xptX/35Ka+N3aIeBjB8BDa2rxsa+KcdwmXhrlgWFbkx32dBRqNZ+6Q==
dependencies:
vscode-languageserver-types "^3.15.0-next.5"
vscode-nls "^4.1.1"
Expand Down
2 changes: 1 addition & 1 deletion extensions/html-language-features/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"main": "./out/htmlServerMain",
"dependencies": {
"vscode-css-languageservice": "^4.0.3-next.13",
"vscode-css-languageservice": "^4.0.3-next.14",
"vscode-html-languageservice": "^3.0.4-next.6",
"vscode-languageserver": "^6.0.0-next.1",
"vscode-languageserver-types": "3.15.0-next.5",
Expand Down
8 changes: 4 additions & 4 deletions extensions/html-language-features/server/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"

vscode-css-languageservice@^4.0.3-next.13:
version "4.0.3-next.13"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.13.tgz#a6c567f5dcf490ac430a6500935919826a3f057a"
integrity sha512-RqTxCXTB0owqiTJwUaELYMxpPl8Znd5b0FCaFs7QF7HmvUnS/MHGWDLLSJM/19H3wLemjZFwI+kX6PBTsnbAog==
vscode-css-languageservice@^4.0.3-next.14:
version "4.0.3-next.14"
resolved "https://registry.yarnpkg.com/vscode-css-languageservice/-/vscode-css-languageservice-4.0.3-next.14.tgz#dcdbaec144c948c3f1f3640147f0102e0b964468"
integrity sha512-moBCof4SxK196tZ0cZe7U96goNvYKei8xptX/35Ka+N3aIeBjB8BDa2rxsa+KcdwmXhrlgWFbkx32dBRqNZ+6Q==
dependencies:
vscode-languageserver-types "^3.15.0-next.5"
vscode-nls "^4.1.1"
Expand Down

0 comments on commit 7fa28ec

Please sign in to comment.