Skip to content

Commit 780fbf3

Browse files
committed
Fix qf
1 parent 5b65769 commit 780fbf3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/context/ServerContext.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,20 @@ public void populateContext() {
8686
populateContext(files);
8787
}
8888

89-
public void populateContext(List<File> uris) {
90-
var workDoneProgressReporter = workDoneProgressHelper.createProgress(uris.size(), " files");
89+
public void populateContext(List<File> files) {
90+
var workDoneProgressReporter = workDoneProgressHelper.createProgress(files.size(), " files");
9191
workDoneProgressReporter.beginProgress("Populating context...");
9292

9393
LOGGER.debug("Populating context...");
9494
contextLock.writeLock().lock();
9595

96-
uris.parallelStream().forEach((File file) -> {
96+
files.parallelStream().forEach((File file) -> {
9797

9898
workDoneProgressReporter.tick();
9999

100100
var documentContext = getDocument(file.toURI());
101101
if (documentContext == null) {
102-
documentContext = createDocumentContext(file, 0);
102+
documentContext = createDocumentContext(file);
103103
documentContext.freezeComputedData();
104104
documentContext.clearSecondaryData();
105105
}
@@ -181,9 +181,9 @@ public Configuration getConfiguration() {
181181
protected abstract DocumentContext lookupDocumentContext(URI absoluteURI);
182182

183183
@SneakyThrows
184-
private DocumentContext createDocumentContext(File file, int version) {
184+
private DocumentContext createDocumentContext(File file) {
185185
String content = FileUtils.readFileToString(file, StandardCharsets.UTF_8);
186-
return createDocumentContext(file.toURI(), content, version);
186+
return createDocumentContext(file.toURI(), content, 0);
187187
}
188188

189189
private DocumentContext createDocumentContext(URI uri, String content, int version) {

0 commit comments

Comments
 (0)