Found by @bwilkerson:


This is likely because of this hack:
|
// 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).
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
We should find a way to access
insertTextFormatto make this reliable (but if it's not quick, we need to improve this regex to handle choices in the short-term).