| 1303 | } |
| 1304 | |
| 1305 | public initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector): void { |
| 1306 | if (!capabilities.completionProvider || !documentSelector) { |
| 1307 | return; |
| 1308 | } |
| 1309 | this.register(this.messages, { |
| 1310 | id: UUID.generateUuid(), |
| 1311 | registerOptions: Object.assign({}, { documentSelector: documentSelector }, capabilities.completionProvider) |
| 1312 | }); |
| 1313 | } |
| 1314 | |
| 1315 | protected registerLanguageProvider(options: CompletionRegistrationOptions): Disposable { |
| 1316 | let triggerCharacters = options.triggerCharacters || []; |