Skip to content

Commit f46dd04

Browse files
committed
Current version now logged when document opened
1 parent 45f6f6a commit f46dd04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/project/workspace.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@ export class Workspace implements IWorkspace {
191191
openDocument(document: TextDocument): void {
192192
const normalisedUri = document.uri.toFilePath().toFileUri();
193193
const projectDocument = this.projectDocuments.get(normalisedUri);
194+
Services.logger.debug(`existing: ${projectDocument?.version ?? 'None'}`, 1);
194195
if (projectDocument) {
195196
projectDocument.open();
196-
if (document.version > projectDocument?.version) {
197+
if (document.version > projectDocument.version) {
197198
this.parseDocument(projectDocument);
198199
}
199200
this.connection.sendDiagnostics(projectDocument.languageServerDiagnostics());

0 commit comments

Comments
 (0)