mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
CSS intellisense doesn't work in incomplete style block . Fixes #16651
This commit is contained in:
parent
875d16de88
commit
aba60c3d95
4
extensions/html/server/npm-shrinkwrap.json
generated
4
extensions/html/server/npm-shrinkwrap.json
generated
|
@ -8,9 +8,9 @@
|
|||
"resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-2.0.0-next.6.tgz"
|
||||
},
|
||||
"vscode-html-languageservice": {
|
||||
"version": "2.0.0-next.2",
|
||||
"version": "2.0.0-next.3",
|
||||
"from": "vscode-html-languageservice@next",
|
||||
"resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-2.0.0-next.2.tgz"
|
||||
"resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-2.0.0-next.3.tgz"
|
||||
},
|
||||
"vscode-jsonrpc": {
|
||||
"version": "3.0.1-alpha.2",
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"vscode-css-languageservice": "^2.0.0-next.6",
|
||||
"vscode-html-languageservice": "^2.0.0-next.2",
|
||||
"vscode-html-languageservice": "^2.0.0-next.3",
|
||||
"vscode-languageserver": "3.0.1-alpha.2",
|
||||
"vscode-nls": "^1.0.7",
|
||||
"vscode-uri": "^1.0.0"
|
||||
|
|
|
@ -45,6 +45,12 @@ suite('HTML Embedded Support', () => {
|
|||
assertLanguageId('<html><style>foo { }</sty|le></html>', 'html');
|
||||
});
|
||||
|
||||
test('Styles - Incomplete HTML', function (): any {
|
||||
assertLanguageId('|<html><style>foo { }', 'html');
|
||||
assertLanguageId('<html><style>fo|o { }', 'css');
|
||||
assertLanguageId('<html><style>foo { }|', 'css');
|
||||
});
|
||||
|
||||
test('Style in attribute', function (): any {
|
||||
assertLanguageId('<div id="xy" |style="color: red"/>', 'html');
|
||||
assertLanguageId('<div id="xy" styl|e="color: red"/>', 'html');
|
||||
|
|
Loading…
Reference in a new issue