@@ -22,10 +22,10 @@ exports.provider = {
22
22
return Promise . resolve ( [ ] ) ;
23
23
if ( ! fs . existsSync ( filePath ) )
24
24
return Promise . resolve ( [ ] ) ;
25
- var pathMatchers = [ 'reference.path.quoted. string' , 'require.path.quoted. string' , 'es6import.path.quoted. string' ] ;
25
+ var pathMatchers = [ 'reference.path.string.quoted ' , 'require.path.string.quoted ' , 'es6import.path.string.quoted ' ] ;
26
26
var lastScope = options . scopeDescriptor . scopes [ options . scopeDescriptor . scopes . length - 1 ] ;
27
27
if ( pathMatchers . some ( function ( p ) { return lastScope === p ; } ) ) {
28
- return parent . getRelativePathsInProject ( { filePath : filePath , prefix : options . prefix , includeExternalModules : lastScope !== 'reference.path.quoted. string' } )
28
+ return parent . getRelativePathsInProject ( { filePath : filePath , prefix : options . prefix , includeExternalModules : lastScope !== 'reference.path.string.quoted ' } )
29
29
. then ( function ( resp ) {
30
30
return resp . files . map ( function ( file ) {
31
31
var relativePath = file . relativePath ;
@@ -36,17 +36,17 @@ exports.provider = {
36
36
rightLabelHTML : '<span>' + file . name + '</span>' ,
37
37
type : 'path'
38
38
} ;
39
- if ( lastScope == 'reference.path.quoted. string' ) {
39
+ if ( lastScope == 'reference.path.string.quoted ' ) {
40
40
suggestion . atomTS_IsReference = {
41
41
relativePath : relativePath
42
42
} ;
43
43
}
44
- if ( lastScope == 'require.path.quoted. string' ) {
44
+ if ( lastScope == 'require.path.string.quoted ' ) {
45
45
suggestion . atomTS_IsImport = {
46
46
relativePath : relativePath
47
47
} ;
48
48
}
49
- if ( lastScope == 'es6import.path.quoted. string' ) {
49
+ if ( lastScope == 'es6import.path.string.quoted ' ) {
50
50
suggestion . atomTS_IsES6Import = {
51
51
relativePath : relativePath
52
52
} ;
0 commit comments