mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
!1096 解决预览时候删除backgroundColor时,偶现报错
Merge pull request !1096 from Bo Jiang/cherry-pick-1662602715
This commit is contained in:
@@ -465,7 +465,7 @@ function processDebug(node: ts.Statement, nameResult: NameResult, newStatements:
|
||||
let curFileName: string;
|
||||
let line: number = 1;
|
||||
let col: number = 1;
|
||||
if (newsupplement.isAcceleratePreview) {
|
||||
if (sourceNode && newsupplement.isAcceleratePreview) {
|
||||
posOfNode = sourceNode.getLineAndCharacterOfPosition(getRealNodePos(node));
|
||||
curFileName = newsupplement.fileName;
|
||||
if (posOfNode.line === 0) {
|
||||
|
||||
Reference in New Issue
Block a user