Skip to content

Commit

Permalink
Fix angular verification build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Oct 7, 2024
1 parent 986697e commit 47f700a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 1 addition & 8 deletions verify/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@

import { AfterViewInit, Component } from '@angular/core';
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper';
import { useWorkerFactory } from 'monaco-editor-wrapper/workerFactory';
import { jsonClientUserConfig } from 'monaco-languageclient-examples/json-client';

useWorkerFactory({
rootPath: window.location.href + '../..',
basePath: '../assets',
});

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
Expand All @@ -24,10 +18,9 @@ export class MonacoEditorComponent implements AfterViewInit {

async ngAfterViewInit(): Promise<void> {
const wrapper = new MonacoEditorLanguageClientWrapper();
const htmlElement = document.getElementById('monaco-editor-root');

try {
await wrapper.initAndStart(jsonClientUserConfig, htmlElement);
await wrapper.initAndStart(jsonClientUserConfig);
} catch (e) {
console.error(e);
}
Expand Down
3 changes: 2 additions & 1 deletion verify/angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"noPropertyAccessFromIndexSignature": true,
"types": [
"vscode"
]
],
"skipLibCheck": true
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down

0 comments on commit 47f700a

Please sign in to comment.