File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function activate(context: ExtensionContext) {
15
15
// Otherwise the run options are used
16
16
let serverOptions : ServerOptions = {
17
17
run : { module : serverModule , transport : TransportKind . ipc } ,
18
- debug : { module : serverModule , transport : TransportKind . ipc /*, options: debugOptions */ }
18
+ debug : { module : serverModule , transport : TransportKind . ipc /* * , options: debugOptions /* */ }
19
19
}
20
20
21
21
// Options to control the language client
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class ProjectLoggerImpl implements ProjectLogger {
101
101
}
102
102
}
103
103
104
+ declare function escape ( text : string ) : string ;
104
105
declare function unescape ( text : string ) : string ;
105
106
106
107
function uriToFileName ( uri : string ) : string {
@@ -118,7 +119,10 @@ function uriToFileName(uri: string): string {
118
119
119
120
const fileProtocol = "file://" ;
120
121
export function fileNameToUri ( fileName : string ) : string {
121
- return encodeURI ( fileProtocol + fileName ) ;
122
+ if ( fileName . match ( / ^ \w : / ) ) {
123
+ fileName = '/' + fileName ;
124
+ }
125
+ return fileProtocol + escape ( fileName ) ;
122
126
}
123
127
124
128
export interface NgServiceInfo {
@@ -257,6 +261,7 @@ export class TextDocuments {
257
261
}
258
262
return { fileName, languageId} ;
259
263
}
264
+ return { } ;
260
265
}
261
266
262
267
public ifUnchanged ( f : ( ) => void ) : ( ) => void {
You can’t perform that action at this time.
0 commit comments