@@ -192,7 +192,7 @@ impl Client {
192192 text_document: Some(lsp::TextDocumentClientCapabilities {
193193 completion: Some(lsp::CompletionClientCapabilities {
194194 completion_item: Some(lsp::CompletionItemCapability {
195− snippet_support: Some(false), // TODO
195+ snippet_support: Some(false),
196196 ..Default::default()
197197 }),
198198 completion_item_kind: Some(lsp::CompletionItemKindCapability {
@@ -284,7 +284,6 @@ impl Client {
284284 mut character,
285285 } = pos;
286286
287− // TODO: there should be a better way here
288287 for ch in text.chars() {
289288 if ch == '\n' {
290289 line += 1;
@@ -299,8 +298,6 @@ impl Client {
299298 let old_text = old_text.slice(..);
300299 let new_text = new_text.slice(..);
301300
302− // TODO: verify this function, specifically line num counting
303−
304301 while let Some(change) = iter.next() {
305302 let len = match change {
306303 Delete(i) | Retain(i) => *i,
@@ -355,7 +352,6 @@ impl Client {
355352 changes
356353 }
357354
358− // TODO: trigger any time history.commit_revision happens
359355 pub async fn text_document_did_change(
360356 &self,
361357 text_document: lsp::VersionedTextDocumentIdentifier,
@@ -365,7 +361,7 @@ impl Client {
365361 ) -> Result<()> {
366362 // figure out what kind of sync the server supports
367363
368− let capabilities = self.capabilities.as_ref().unwrap(); // TODO: needs post init
364+ let capabilities = self.capabilities.as_ref().unwrap();
369365
370366 let sync_capabilities = match capabilities.text_document_sync {
371367 Some(lsp::TextDocumentSyncCapability::Kind(kind)) => kind,
@@ -384,7 +380,7 @@ impl Client {
384380 range: None, //Some(Range)
385381 range_length: None, // u64 apparently deprecated
386382 text: "".to_string(),
387− }] // TODO: probably need old_state here too?
383+ }]
388384 }
389385 lsp::TextDocumentSyncKind::Incremental => {
390386 Self::changeset_to_changes(old_text, new_text, changes)
@@ -416,7 +412,7 @@ impl Client {
416412 text_document: lsp::TextDocumentIdentifier,
417413 text: &Rope,
418414 ) -> Result<()> {
419− let capabilities = self.capabilities.as_ref().unwrap(); // TODO: needs post init
415+ let capabilities = self.capabilities.as_ref().unwrap();
420416
421417 let include_text = match &capabilities.text_document_sync {
422418 Some(lsp::TextDocumentSyncCapability::Options(lsp::TextDocumentSyncOptions {
@@ -446,8 +442,6 @@ impl Client {
446442 text_document: lsp::TextDocumentIdentifier,
447443 position: lsp::Position,
448444 ) -> Result<Vec<lsp::CompletionItem>> {
449− // TODO: figure out what should happen when you complete with multiple cursors
450−
451445 let params = lsp::CompletionParams {
452446 text_document_position: lsp::TextDocumentPositionParams {
453447 text_document,
@@ -489,7 +483,6 @@ impl Client {
489483 text_document,
490484 position,
491485 },
492− // TODO: support these tokens
493486 work_done_progress_params: lsp::WorkDoneProgressParams {
494487 work_done_token: None,
495488 },
@@ -514,7 +507,6 @@ impl Client {
514507 text_document,
515508 position,
516509 },
517− // TODO: support these tokens
518510 work_done_progress_params: lsp::WorkDoneProgressParams {
519511 work_done_token: None,
520512 },
@@ -533,7 +525,7 @@ impl Client {
533525 text_document: lsp::TextDocumentIdentifier,
534526 options: lsp::FormattingOptions,
535527 ) -> anyhow::Result<Vec<lsp::TextEdit>> {
536− let capabilities = self.capabilities.as_ref().unwrap(); // TODO: needs post init
528+ let capabilities = self.capabilities.as_ref().unwrap();
537529
538530 // check if we're able to format
539531 let _capabilities = match capabilities.document_formatting_provider {
@@ -547,7 +539,6 @@ impl Client {
547539 let params = lsp::DocumentFormattingParams {
548540 text_document,
549541 options,
550− // TODO: support these tokens
551542 work_done_progress_params: lsp::WorkDoneProgressParams {
552543 work_done_token: None,
553544 },
@@ -564,7 +555,7 @@ impl Client {
564555 range: lsp::Range,
565556 options: lsp::FormattingOptions,
566557 ) -> anyhow::Result<Vec<lsp::TextEdit>> {
567− let capabilities = self.capabilities.as_ref().unwrap(); // TODO: needs post init
558+ let capabilities = self.capabilities.as_ref().unwrap();
568559
569560 // check if we're able to format
570561 let _capabilities = match capabilities.document_range_formatting_provider {
@@ -579,7 +570,6 @@ impl Client {
579570 text_document,
580571 range,
581572 options,
582− // TODO: support these tokens
583573 work_done_progress_params: lsp::WorkDoneProgressParams {
584574 work_done_token: None,
585575 },