File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,8 @@ export class AureliaComponents {
244
244
const viewDocument = TextDocumentUtils . createHtmlFromPath (
245
245
component . viewFilePath
246
246
) ;
247
+ if ( ! viewDocument ) return ;
248
+
247
249
const regions = RegionParser . parse ( viewDocument , componentList ) ;
248
250
component . viewRegions = regions ;
249
251
} ) ;
Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ async function getAureliaClassMemberDefinitions_SameView(
167
167
viewExtensions
168
168
) ;
169
169
const viewDocument = TextDocumentUtils . createHtmlFromPath ( viewPath ) ;
170
+ if ( ! viewDocument ) return [ ] ;
171
+
170
172
const viewRegionDefinitions_ClassMembers : LocationLink [ ] = [ ] ;
171
173
const regions = await findRegionsByWord (
172
174
aureliaProgram ,
Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ export async function aureliaRenameFromViewModel(
166
166
) ;
167
167
168
168
const viewDocument = TextDocumentUtils . createHtmlFromPath ( viewPath ) ;
169
+ if ( ! viewDocument ) return ;
170
+
169
171
const otherChangesInsideSameView = await renameAllOtherRegionsInSameView (
170
172
aureliaProgram ,
171
173
viewDocument ,
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export async function onDocumentSymbol(
19
19
const document = TextDocumentUtils . createHtmlFromPath (
20
20
UriUtils . toSysPath ( documentUri )
21
21
) ;
22
+ if ( ! document ) return [ ] ;
23
+
22
24
const viewModelPath = UriUtils . toSysPath ( document . uri ) ;
23
25
const targetProject = container
24
26
. get ( AureliaProjects )
You can’t perform that action at this time.
0 commit comments