|
16 | 16 |
|
17 | 17 | import com.broadcom.lsp.domain.cobol.databus.api.DataBusBroker;
|
18 | 18 | import com.broadcom.lsp.domain.cobol.event.api.EventObserver;
|
19 |
| -import com.broadcom.lsp.domain.cobol.event.model.DataEventType; |
20 | 19 | import com.broadcom.lsp.domain.cobol.event.model.AnalysisFinishedEvent;
|
| 20 | +import com.broadcom.lsp.domain.cobol.event.model.DataEventType; |
21 | 21 | import com.broadcom.lsp.domain.cobol.event.model.RunAnalysisEvent;
|
22 | 22 | import com.ca.lsp.cobol.service.delegates.actions.CodeActions;
|
23 | 23 | import com.ca.lsp.cobol.service.delegates.communications.Communications;
|
|
63 | 63 | public class MyTextDocumentService implements TextDocumentService, EventObserver<RunAnalysisEvent> {
|
64 | 64 | private static final List<String> COBOL_IDS = Arrays.asList("cobol", "cbl", "cob");
|
65 | 65 | private static final String GIT_FS_URI = "gitfs:/";
|
| 66 | + public static final String GITFS_URI_NOT_SUPPORTED = "GITFS URI not supported"; |
66 | 67 |
|
67 | 68 | private final Map<String, MyDocumentModel> docs = new ConcurrentHashMap<>();
|
68 | 69 |
|
@@ -166,10 +167,10 @@ public CompletableFuture<List<Either<Command, CodeAction>>> codeAction(CodeActio
|
166 | 167 | @Override
|
167 | 168 | public void didOpen(DidOpenTextDocumentParams params) {
|
168 | 169 | String uri = params.getTextDocument().getUri();
|
169 |
| - // A better implementation that will cover the gitfs scenario will be implementated later based |
170 |
| - // on issue #173 |
| 170 | + |
| 171 | + // git FS URIs are not currently supported |
171 | 172 | if (uri.startsWith(GIT_FS_URI)) {
|
172 |
| - communications.notifyThatExtensionIsUnsupported("gitfs"); |
| 173 | + log.warn(String.join(" ", GITFS_URI_NOT_SUPPORTED, uri)); |
173 | 174 | }
|
174 | 175 |
|
175 | 176 | String text = params.getTextDocument().getText();
|
|
0 commit comments