mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-12 19:59:27 +00:00
feat: expose Arduino state to VS Code extensions
- Update a shared state on fqbn, port, sketch path, and etc. changes. VS Code extensions can access it and listen on changes. - Force VISX activation order: API VSIX starts first. Signed-off-by: dankeboy36 <dankeboy36@gmail.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
BoardsService,
|
||||
CoreService,
|
||||
SketchesService,
|
||||
isCompileSummary,
|
||||
} from '../../common/protocol';
|
||||
import { createBaseContainer, startDaemon } from './test-bindings';
|
||||
|
||||
@@ -31,7 +32,7 @@ describe('core-service-impl', () => {
|
||||
afterEach(() => toDispose.dispose());
|
||||
|
||||
describe('compile', () => {
|
||||
it('should execute a command with the build path', async function () {
|
||||
it('should execute a command with the compile summary, including the build path', async function () {
|
||||
this.timeout(testTimeout);
|
||||
const coreService = container.get<CoreService>(CoreService);
|
||||
const sketchesService = container.get<SketchesService>(SketchesService);
|
||||
@@ -56,7 +57,7 @@ describe('core-service-impl', () => {
|
||||
const [, args] = executedBuildDidCompleteCommands[0];
|
||||
expect(args.length).to.be.equal(1);
|
||||
const arg = args[0];
|
||||
expect(typeof arg).to.be.equal('object');
|
||||
expect(isCompileSummary(arg)).to.be.true;
|
||||
expect('buildOutputUri' in arg).to.be.true;
|
||||
expect(arg.buildOutputUri).to.be.not.undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user