Skip to content

50 Mb limit fix suggestion. #88

@JalmarazMartn

Description

@JalmarazMartn

About 50 mb file limit, I can tell you that I developed too a xliff help extension(I won´t put here the link because I don´t want to be a spammer) , and I had the same issue. I think the problem is using in xlf-document.ts class, function loadFromURI the sentence workspace.openTextDocument(sourceUri)).getText();
Instead using openTextDocument you can use:

   var fs = require('fs');
    const content = fs.readFileSync(FilePath,{encoding:'utf8', flag:'r'});

If you need a further split this content into lines you can do this:
const Lines = content.split('\r\n');

I am not sure 100 % you can fix the issue this way, but I remember this issue.

I hope this can help. Thank you for your extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions