-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I tried to write the CSS style, I lacked the smart advance prompt. The console reported the following error #5593
Comments
@yunliang-ding, what exactly did you do? Did this happen in a CSS editor? |
Yes, in the Monaco editor, the grammar is CSS |
Can you share your CSS file and the steps you did? I opened a couple of CSS files, did some editing but wasn't able to reproduce this defect. |
package.json {
"private": true,
"dependencies": {
"typescript": "latest",
"@theia/typescript": "latest",
"@theia/navigator": "latest",
"@theia/terminal": "latest",
"@theia/outline-view": "latest",
"@theia/preferences": "latest",
"@theia/messages": "latest",
"@theia/git": "latest",
"@theia/file-search": "latest",
"@theia/markers": "latest",
"@theia/preview": "latest",
"@theia/callhierarchy": "latest",
"@theia/merge-conflicts": "latest",
"@theia/search-in-workspace": "latest",
"@theia/json": "latest",
"@theia/textmate-grammars": "latest"
},
"devDependencies": {
"@theia/cli": "latest"
}
}
step 1: yarn Then in the editor, my CSS file has no grammar prompt, and the console will report an error. |
@yunliang-ding I tried your example |
Must be some version mismatch issue. As a quick workaround, you can copy the |
I think It's [email protected] caused css highlight failure Here is my solution: Step1: downgrade monaco-css Step2: build theia again Step3: start theia Then you 'll see css highlight works :P try it @yunliang-ding @vince-fugnitto
|
I confirmed it is no longer an issue when attempting to edit In addition, the packages present in #5593 (comment) are no longer valid since |
Dependency packages are latest
When I tried to write the CSS style, I lacked the smart advance prompt. The console reported the following error
Uncaught Error: Cannot read property 'InsertAsSnippet' of undefined
TypeError: Cannot read property 'InsertAsSnippet' of undefined
at cssMode.js:7
at Array.map ()
at cssMode.js:7
at Object.g [as _notify] (editor.main.js:141)
at Object.enter (editor.main.js:145)
at n.Class.derive._creator._run (editor.main.js:146)
at n.Class.derive._creator._completed (editor.main.js:146)
at Object.g [as _notify] (editor.main.js:141)
at Object.enter (editor.main.js:145)
at n.Class.derive._oncancel._run (editor.main.js:146)
at editor.main.js:158
The text was updated successfully, but these errors were encountered: