File tree Expand file tree Collapse file tree
src/org/eclipse/lsp4e/internal/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Manifest-Version: 1.0
22Bundle-ManifestVersion : 2
33Bundle-Name : Language Server Protocol client for Eclipse IDE (Incubation)
44Bundle-SymbolicName : org.eclipse.lsp4e;singleton:=true
5- Bundle-Version : 0.19.11 .qualifier
5+ Bundle-Version : 0.19.12 .qualifier
66Bundle-RequiredExecutionEnvironment : JavaSE-21
77Require-Bundle : org.eclipse.core.runtime;bundle-version="3.12.0",
88 org.eclipse.equinox.common;bundle-version="3.8.0",
Original file line number Diff line number Diff line change 1010 </parent >
1111 <artifactId >org.eclipse.lsp4e</artifactId >
1212 <packaging >eclipse-plugin</packaging >
13- <version >0.19.11 -SNAPSHOT</version >
13+ <version >0.19.12 -SNAPSHOT</version >
1414
1515 <build >
1616 <plugins >
Original file line number Diff line number Diff line change 1313package org .eclipse .lsp4e .internal .files ;
1414
1515import java .net .URI ;
16+ import java .nio .file .FileSystemNotFoundException ;
1617import java .nio .file .Path ;
1718import java .nio .file .Paths ;
1819import java .util .ArrayList ;
@@ -50,14 +51,16 @@ public final class FileSystemWatcherManager {
5051
5152 public FileSystemWatcherManager (final @ Nullable IProject project ) {
5253 Path watchedFilesBasePath = null ;
54+ if (project != null ) {
5355 try {
54- if (project != null ) {
55- final var loc = project .getLocationURI ();
56- if (loc != null )
57- watchedFilesBasePath = Paths .get (loc );
56+ final var loc = project .getLocationURI ();
57+ if (loc != null )
58+ watchedFilesBasePath = Paths .get (loc );
59+ } catch (IllegalArgumentException ex ) {
60+ LanguageServerPlugin .logError (ex );
61+ } catch (FileSystemNotFoundException ex ) {
62+ LanguageServerPlugin .logWarning ("Watched files notification disabled for project " + project .getName () + " because of: " + ex .getMessage ()); //$NON-NLS-1$ //$NON-NLS-2$
5863 }
59- } catch (IllegalArgumentException ex ) {
60- LanguageServerPlugin .logError (ex );
6164 }
6265 this .basePath = watchedFilesBasePath ;
6366 }
You can’t perform that action at this time.
0 commit comments