@@ -302,44 +302,41 @@ public IProblemRequestor getProblemRequestor(ICompilationUnit workingCopy) {
302
302
303
303
public void didClose (DidCloseTextDocumentParams params ) {
304
304
documentVersions .remove (params .getTextDocument ().getUri ());
305
- ISchedulingRule rule = JDTUtils .getRule (params .getTextDocument ().getUri ());
306
305
try {
307
306
ResourcesPlugin .getWorkspace ().run (new IWorkspaceRunnable () {
308
307
@ Override
309
308
public void run (IProgressMonitor monitor ) throws CoreException {
310
309
handleClosed (params );
311
310
}
312
- }, rule , IWorkspace .AVOID_UPDATE , new NullProgressMonitor ());
311
+ }, null , IWorkspace .AVOID_UPDATE , new NullProgressMonitor ());
313
312
} catch (CoreException e ) {
314
313
JavaLanguageServerPlugin .logException ("Handle document close " , e );
315
314
}
316
315
}
317
316
318
317
public void didOpen (DidOpenTextDocumentParams params ) {
319
318
documentVersions .put (params .getTextDocument ().getUri (), params .getTextDocument ().getVersion ());
320
- ISchedulingRule rule = JDTUtils .getRule (params .getTextDocument ().getUri ());
321
319
try {
322
320
ResourcesPlugin .getWorkspace ().run (new IWorkspaceRunnable () {
323
321
@ Override
324
322
public void run (IProgressMonitor monitor ) throws CoreException {
325
323
handleOpen (params );
326
324
}
327
- }, rule , IWorkspace .AVOID_UPDATE , new NullProgressMonitor ());
325
+ }, null , IWorkspace .AVOID_UPDATE , new NullProgressMonitor ());
328
326
} catch (CoreException e ) {
329
327
JavaLanguageServerPlugin .logException ("Handle document open " , e );
330
328
}
331
329
}
332
330
333
331
public void didChange (DidChangeTextDocumentParams params ) {
334
332
documentVersions .put (params .getTextDocument ().getUri (), params .getTextDocument ().getVersion ());
335
- ISchedulingRule rule = JDTUtils .getRule (params .getTextDocument ().getUri ());
336
333
try {
337
334
ResourcesPlugin .getWorkspace ().run (new IWorkspaceRunnable () {
338
335
@ Override
339
336
public void run (IProgressMonitor monitor ) throws CoreException {
340
337
handleChanged (params );
341
338
}
342
- }, rule , IWorkspace .AVOID_UPDATE , new NullProgressMonitor ());
339
+ }, null , IWorkspace .AVOID_UPDATE , new NullProgressMonitor ());
343
340
} catch (CoreException e ) {
344
341
JavaLanguageServerPlugin .logException ("Handle document change " , e );
345
342
}
0 commit comments