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';
2
2
import { getType , KeywordType } from './wordinfo' ;
3
3
4
4
export 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 ;
7
8
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 ) {
9
10
} 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 ;
12
14
}
13
- return DocInfo . docInfoScaned ;
15
+ return DocInfo . docInfoScanned ;
14
16
}
15
17
16
18
lines : Asmline [ ] ;
You can’t perform that action at this time.
0 commit comments