Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ export class WorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
if (suffix.length) {
name = name + ' (' + suffix + ')';
}
const range: vscode.Range = new vscode.Range(symbol.location.range.start.line, symbol.location.range.start.character, symbol.location.range.end.line, symbol.location.range.end.character);
const uri: vscode.Uri = vscode.Uri.parse(symbol.location.uri.toString());
const vscodeSymbol: vscode.SymbolInformation = new vscode.SymbolInformation(
name,
symbol.kind,
symbol.containerName,
symbol.location
new vscode.Location(uri, range)
);
resultSymbols.push(vscodeSymbol);
});
Expand Down
8 changes: 7 additions & 1 deletion Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,16 @@ export interface LocalizeDocumentSymbol {
children: LocalizeDocumentSymbol[];
}

/** Differs from vscode.Location, which has a uri of type vscode.Uri. */
interface Location {
uri: string;
range: Range;
}

interface LocalizeSymbolInformation {
name: string;
kind: vscode.SymbolKind;
location: vscode.Location;
location: Location;
containerName: string;
suffix: LocalizeStringParams;
}
Expand Down
4 changes: 2 additions & 2 deletions Extension/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export function getInstalledBinaryPlatform(): string | undefined {
return installedPlatform;
}

/* Check if the core binaries exists in extension's installation folder */
/** Check if the core binaries exists in extension's installation folder */
export async function checkInstallBinariesExist(): Promise<boolean> {
if (!checkInstallLockFile()) {
return false;
Expand All @@ -540,7 +540,7 @@ export async function checkInstallBinariesExist(): Promise<boolean> {
return installBinariesExist;
}

/* Check if the core Json files exists in extension's installation folder */
/** Check if the core Json files exists in extension's installation folder */
export async function checkInstallJsonsExist(): Promise<boolean> {
let installJsonsExist: boolean = true;
const jsonFiles: string[] = [
Expand Down