Skip to content

Commit

Permalink
Fix #1484
Browse files Browse the repository at this point in the history
  • Loading branch information
cereschen committed Aug 14, 2020
1 parent 0b4b747 commit 114e6ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/modes/template/interpolationMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { IServiceHost } from '../../services/typescriptService/serviceHost';
import { languageServiceIncludesFile } from '../script/javascript';
import { getFileFsPath } from '../../utils/paths';
import { mapBackRange, mapFromPositionToOffset } from '../../services/typescriptService/sourceMap';
import { URI } from 'vscode-uri';
import * as ts from 'typescript';
import { T_TypeScript } from '../../services/dependencyService';
import * as _ from 'lodash';
Expand Down Expand Up @@ -294,7 +295,7 @@ export class VueInterpolationMode implements LanguageMode {
: convertRange(definitionTargetDoc, r.textSpan);

definitionResults.push({
uri: definitionTargetDoc.uri.toString(),
uri: URI.file(definitionTargetDoc.uri).toString(),
range
});
}
Expand Down Expand Up @@ -342,7 +343,7 @@ export class VueInterpolationMode implements LanguageMode {
: convertRange(referenceTargetDoc, r.textSpan);

referenceResults.push({
uri: referenceTargetDoc.uri.toString(),
uri: URI.file(referenceTargetDoc.uri).toString(),
range
});
}
Expand Down

0 comments on commit 114e6ca

Please sign in to comment.