You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
/// Set the characters that will cause the editor to automatically
8
+
/// trigger completion.
9
+
/// TODO(dantup): There are several characters that we want to conditionally
10
+
/// allow to trigger completion, but they can only be added when the completion
11
+
/// provider is able to handle them in context:
12
+
///
13
+
/// { trigger if being typed in a string immediately after a $
14
+
/// ' trigger if the opening quote for an import/export
15
+
/// " trigger if the opening quote for an import/export
16
+
/// / trigger if as part of a path in an import/export
17
+
/// \ trigger if as part of a path in an import/export
18
+
/// : don't trigger when typing case expressions (`case x:`)
19
+
///
20
+
/// Additionally, we need to prefix `filterText` on completion items
21
+
/// with spaces for those that can follow whitespace (eg. `foo` in
22
+
/// `myArg: foo`) to ensure they're not filtered away when the user
23
+
/// types space.
24
+
///
25
+
/// See https://github.com/Dart-Code/Dart-Code/blob/68d1cd271e88a785570257d487adbdec17abd6a3/src/providers/dart_completion_item_provider.ts#L36-L64
@@ -80,33 +86,10 @@ class InitializeMessageHandler
80
86
true, // hoverProvider
81
87
newCompletionOptions(
82
88
true, // resolveProvider
83
-
// Set the characters that will cause the editor to automatically
84
-
// trigger completion.
85
-
// TODO(dantup): There are several characters that we want to conditionally
86
-
// allow to trigger completion, but they can only be added when the completion
87
-
// provider is able to handle them in context:
88
-
//
89
-
// { trigger if being typed in a string immediately after a $
90
-
// ' trigger if the opening quote for an import/export
91
-
// " trigger if the opening quote for an import/export
92
-
// / trigger if as part of a path in an import/export
93
-
// \ trigger if as part of a path in an import/export
94
-
// : don't trigger when typing case expressions (`case x:`)
95
-
//
96
-
// Additionally, we need to prefix `filterText` on completion items
97
-
// with spaces for those that can follow whitespace (eg. `foo` in
98
-
// `myArg: foo`) to ensure they're not filtered away when the user
99
-
// types space.
100
-
//
101
-
// See https://github.com/Dart-Code/Dart-Code/blob/68d1cd271e88a785570257d487adbdec17abd6a3/src/providers/dart_completion_item_provider.ts#L36-L64
102
-
// for the VS Code implementation of this.
103
-
r'''.=($'''.split(''),
89
+
dartCompletionTriggerCharacters,
104
90
),
105
91
newSignatureHelpOptions(
106
-
// TODO(dantup): Signature help triggering is even more sensitive to
107
-
// bad chars, so we'll need to implement the logic described here:
0 commit comments