File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
22
22
} from 'vscode-languageserver-protocol' ;
23
23
24
24
import * as RoslynProtocol from './roslynProtocol' ;
25
- import * as Is from 'vscode-languageclient/lib/common/utils/is' ;
26
25
import * as UUID from 'vscode-languageclient/lib/common/utils/uuid' ;
27
26
28
27
export class OnAutoInsertFeature implements DynamicFeature < RoslynProtocol . OnAutoInsertRegistrationOptions > {
@@ -123,15 +122,13 @@ export class OnAutoInsertFeature implements DynamicFeature<RoslynProtocol.OnAuto
123
122
124
123
private getRegistrationOptions (
125
124
documentSelector : DocumentSelector | undefined ,
126
- capability : undefined | boolean | RoslynProtocol . OnAutoInsertOptions
125
+ capability : undefined | RoslynProtocol . OnAutoInsertOptions
127
126
) : ( RoslynProtocol . OnAutoInsertRegistrationOptions & { documentSelector : DocumentSelector } ) | undefined {
128
127
if ( ! documentSelector || ! capability ) {
129
128
return undefined ;
130
129
}
131
- return (
132
- Is . boolean ( capability ) && capability === true
133
- ? { documentSelector }
134
- : Object . assign ( { } , capability , { documentSelector } )
135
- ) as RoslynProtocol . OnAutoInsertRegistrationOptions & { documentSelector : DocumentSelector } ;
130
+ return Object . assign ( { } , capability , { documentSelector } ) as RoslynProtocol . OnAutoInsertRegistrationOptions & {
131
+ documentSelector : DocumentSelector ;
132
+ } ;
136
133
}
137
134
}
You can’t perform that action at this time.
0 commit comments