-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresis bug
Milestone
Description
Found by @bwilkerson:
This is likely because of this hack:
Dart-Code/src/extension/analysis/analyzer_lsp_snippet_text_edits.ts
Lines 46 to 50 in bb045c4
| // HACK: This should be checking InsertTextFormat: | |
| // https://github.com/microsoft/language-server-protocol/issues/724#issuecomment-800334721 | |
| const hasSnippet = /\$(\d+|\{\d+:([^}]*)\})/.test(textEdit.newText); | |
| // if ((textEdit as any).insertTextFormat === InsertTextFormat.Snippet) { | |
| if (hasSnippet) { |
We should find a way to access insertTextFormat to make this reliable (but if it's not quick, we need to improve this regex to handle choices in the short-term).
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresis bug

