File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
editor/src/runtime/extensions/visualizer Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type * as monaco from "monaco-editor" ;
2
- import { lifecycle , event } from "vscode-lib" ;
2
+ import { event , lifecycle } from "vscode-lib" ;
3
3
import { CompiledCodeModel } from "../../../models/CompiledCodeModel" ;
4
4
import SourceModelCompiler from "../../compiler/SourceModelCompiler" ;
5
5
import { TypeChecker } from "./TypeChecker" ;
6
6
7
7
export type VisualizersByPath = { [ key : string ] : string [ ] } ;
8
8
9
9
export class VisualizerExtension extends lifecycle . Disposable {
10
- private readonly typeChecker = new TypeChecker (
11
- this . documentId ,
12
- this . monacoInstance
13
- ) ;
10
+ private readonly typeChecker : TypeChecker ;
14
11
15
12
private readonly _onUpdateVisualizers : event . Emitter < VisualizersByPath > =
16
13
this . _register ( new event . Emitter < VisualizersByPath > ( ) ) ;
@@ -24,6 +21,7 @@ export class VisualizerExtension extends lifecycle.Disposable {
24
21
private readonly monacoInstance : typeof monaco
25
22
) {
26
23
super ( ) ;
24
+ this . typeChecker = new TypeChecker ( this . documentId , this . monacoInstance ) ;
27
25
compiler . compiledModels . forEach ( ( m ) => this . registerModel ( m ) ) ;
28
26
this . _register (
29
27
compiler . onDidCreateCompiledModel ( ( m ) => {
Original file line number Diff line number Diff line change 1
1
import { startSupabase } from "../supabase/test/supabaseCLIUtil" ;
2
2
3
3
export default async function ( ) {
4
+ // in CI, supabase is already started
4
5
if ( ! process . env . CI ) {
5
6
await startSupabase ( ) ;
6
7
}
You can’t perform that action at this time.
0 commit comments