File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " ng-template" ,
3
3
"displayName" : " Angular Langauge Service" ,
4
4
"description" : " Editor services for Angular templates" ,
5
- "version" : " 0.0.7 " ,
5
+ "version" : " 0.0.8 " ,
6
6
"publisher" : " Google" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.4.0"
Original file line number Diff line number Diff line change @@ -101,12 +101,14 @@ class ProjectLoggerImpl implements ProjectLogger {
101
101
}
102
102
}
103
103
104
+ declare function unescape ( text : string ) : string ;
105
+
104
106
function uriToFileName ( uri : string ) : string {
105
107
const parsedUrl = url . parse ( uri ) ;
106
108
switch ( parsedUrl . protocol ) {
107
109
case 'file:' :
108
110
case 'private:' :
109
- return parsedUrl . path
111
+ return unescape ( parsedUrl . path ) ;
110
112
}
111
113
}
112
114
Original file line number Diff line number Diff line change @@ -641,7 +641,11 @@ export class LSHost implements ts.LanguageServiceHost {
641
641
}
642
642
643
643
getScriptVersion ( filename : string ) {
644
- return this . getScriptInfo ( filename ) . svc . latestVersion ( ) . toString ( ) ;
644
+ const info = this . getScriptInfo ( filename ) ;
645
+ if ( info ) {
646
+ return info . svc . latestVersion ( ) . toString ( ) ;
647
+ }
648
+ return "<unknown>" ;
645
649
}
646
650
647
651
getCurrentDirectory ( ) : string {
You can’t perform that action at this time.
0 commit comments