Skip to content

Commit

Permalink
feat(developer): reduce log verbosity
Browse files Browse the repository at this point in the history
Fixes: #12789
  • Loading branch information
srl295 committed Dec 27, 2024
1 parent ea7dc33 commit ca78a25
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions developer/src/vscode-plugin/src/ldmleditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export class LdmlEditorProvider implements vscode.CustomTextEditorProvider {
throw new Error('Method not implemented.'); // TODO-LDML-EDITOR
}
async openCustomDocument(uri: vscode.Uri, openContext: vscode.CustomDocumentOpenContext, token: vscode.CancellationToken): Promise<LdmlDocument> {
console.log(`openCustom ${uri}`);
const document : LdmlDocument = await LdmlDocument.create(uri, openContext.backupId, {
getFileData: async() => {
return new Uint8Array(); // TODO-LDML-EDITOR
Expand Down Expand Up @@ -126,11 +125,9 @@ export class LdmlEditorProvider implements vscode.CustomTextEditorProvider {

const nonce = crypto.randomUUID().toString();

console.dir({indexUri});
const indexRaw = await vscode.workspace.fs.readFile(indexUri);
const indexText = new TextDecoder('UTF-8').decode(indexRaw);
const html = fixupIndexHtml(indexText, buildUri.toString(), nonce, webview.cspSource);
console.log(html);
webview.html = html;
} catch(e) {
console.error(e);
Expand Down

0 comments on commit ca78a25

Please sign in to comment.