File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,17 @@ import * as vscode from 'vscode';
22import { getType , KeywordType } from './wordinfo' ;
33
44export class DocInfo {
5- static docScaned : vscode . TextDocument | undefined = undefined ;
6- static docInfoScaned : DocInfo | undefined = undefined ;
5+ static docScannedVersion : number | undefined = undefined ;
6+ static docScannedFileName : string | undefined = undefined ;
7+ static docInfoScanned : DocInfo | undefined = undefined ;
78 static getDocInfo ( doc : vscode . TextDocument ) : DocInfo {
8- if ( DocInfo . docInfoScaned && DocInfo . docScaned ?. version === doc . version && DocInfo . docScaned . fileName === doc . fileName ) {
9+ if ( DocInfo . docInfoScanned && this . docScannedVersion === doc . version && this . docScannedFileName === doc . fileName ) {
910 } else {
10- DocInfo . docInfoScaned = new DocInfo ( doc ) ;
11- DocInfo . docScaned = doc ;
11+ DocInfo . docInfoScanned = new DocInfo ( doc ) ;
12+ this . docScannedFileName = doc . fileName ;
13+ this . docScannedVersion = doc . version ;
1214 }
13- return DocInfo . docInfoScaned ;
15+ return DocInfo . docInfoScanned ;
1416 }
1517
1618 lines : Asmline [ ] ;
You can’t perform that action at this time.
0 commit comments