File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 6363 " onFileSystem:objectscript" ,
6464 " onDebugInitialConfigurations"
6565 ],
66- "main" : " ./out /extension" ,
66+ "main" : " ./dist /extension" ,
6767 "contributes" : {
6868 "menus" : {
6969 "commandPalette" : [
720720 "webpack" : " webpack --mode development" ,
721721 "webpack-dev" : " webpack --mode development --watch" ,
722722 "package" : " vsce package" ,
723- "compile" : " tsc -p ./" ,
723+ "compile" : " webpack --mode production && tsc -p ./" ,
724724 "watch" : " tsc -w -p ./tsconfig.json" ,
725725 "pretest" : " npm run compile" ,
726726 "test" : " node ./out/test/runTest.js" ,
Original file line number Diff line number Diff line change 1- const extensionId = "daimor.vscode-objectscript" ;
1+ export const extensionId = "daimor.vscode-objectscript" ;
22
33import vscode = require( "vscode" ) ;
44
Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ import { before } from "mocha";
33
44// You can import and use all API from the 'vscode' module
55// as well as import your extension to test it
6- import * as vscode from "vscode" ;
7- // import * as myExtension from ' ../extension' ;
6+ import { window , extensions } from "vscode" ;
7+ import { extensionId } from " ../../ extension" ;
88
99suite ( "Extension Test Suite" , ( ) => {
10+ suiteSetup ( async function ( ) {
11+ // make sure git is activated
12+ const ext = extensions . getExtension ( extensionId ) ;
13+ await ext ?. activate ( ) ;
14+ } ) ;
15+
1016 before ( ( ) => {
11- vscode . window . showInformationMessage ( "Start all tests." ) ;
17+ window . showInformationMessage ( "Start all tests." ) ;
1218 } ) ;
1319
1420 test ( "Sample test" , ( ) => {
You can’t perform that action at this time.
0 commit comments