File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export class TypingHintProvider {
11
11
private typeContainer : DataTypeContainer ;
12
12
private fromTypingImport : boolean = false ;
13
13
private typingPrefix : string = "typing" ;
14
- private typingImports : string [ ] = [ ] ;
15
14
16
15
/**
17
16
* Constructs a new TypingHintProvider.
@@ -37,10 +36,6 @@ export class TypingHintProvider {
37
36
38
37
if ( m ) {
39
38
this . fromTypingImport = true ;
40
- const typings = m [ 1 ] . split ( "," ) ;
41
- typings . forEach ( t => {
42
- this . typingImports . push ( t . trim ( ) ) ;
43
- } ) ;
44
39
return true ;
45
40
} else {
46
41
m = new RegExp (
@@ -49,7 +44,7 @@ export class TypingHintProvider {
49
44
) . exec ( this . docText ) ;
50
45
if ( m ) {
51
46
if ( m [ 2 ] ) {
52
- this . typingPrefix = m [ 3 ] ;
47
+ this . typingPrefix = m [ 2 ] ;
53
48
}
54
49
return true ;
55
50
}
@@ -127,8 +122,6 @@ export class TypingHintProvider {
127
122
128
123
private toTypingString ( typeName : string ) : string {
129
124
const typingName = capitalized ( typeName ) ;
130
- return this . fromTypingImport && this . typingImports . includes ( typingName )
131
- ? `${ typingName } [`
132
- : `${ this . typingPrefix } .${ typingName } [` ;
125
+ return this . fromTypingImport ? `${ typingName } [` : `${ this . typingPrefix } .${ typingName } [` ;
133
126
}
134
127
}
You can’t perform that action at this time.
0 commit comments