Skip to content

Commit 021db82

Browse files
author
Tim Etchells
committed
tiny changes, add DCO, clean up top-level
1 parent c41482f commit 021db82

File tree

10 files changed

+60
-131
lines changed

10 files changed

+60
-131
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ node_modules/
55

66
.DS_STORE
77
.nyc_output
8+
9+
todo.txt
10+
unused.txt
11+
*.code-workspace

DCO.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Developer Certificate of Origin
2+
Version 1.1
3+
4+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
5+
1 Letterman Drive
6+
Suite D4700
7+
San Francisco, CA, 94129
8+
9+
Everyone is permitted to copy and distribute verbatim copies of this
10+
license document, but changing it is not allowed.
11+
12+
13+
Developer's Certificate of Origin 1.1
14+
15+
By making a contribution to this project, I certify that:
16+
17+
(a) The contribution was created in whole or in part by me and I
18+
have the right to submit it under the open source license
19+
indicated in the file; or
20+
21+
(b) The contribution is based upon previous work that, to the best
22+
of my knowledge, is covered under an appropriate open source
23+
license and I have the right under that license to submit that
24+
work with modifications, whether created in whole or in part
25+
by me, under the same open source license (unless I am
26+
permitted to submit under a different license), as indicated
27+
in the file; or
28+
29+
(c) The contribution was provided directly to me by some other
30+
person who certified (a), (b) or (c) and I have not modified
31+
it.
32+
33+
(d) I understand and agree that this project and the contribution
34+
are public and that a record of the contribution (including all
35+
personal information I submit with it, including my sign-off) is
36+
maintained indefinitely and may be redistributed consistent with
37+
this project or the open source license(s) involved.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ For the README packaged with this extension, see [the extension README](https://
2828
- Toggle project auto-build
2929
- Easily scope your VSCode workspace to a Microclimate project or your `microclimate-workspace`
3030
- Manually initiate project builds
31-
- Disable, Enable, and Delete projects
31+
- Disable, Enable, and Delete projects

dev/src/Logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class Log {
110110
const label = `[${level}: ${getDateTime()}${caller}]:`;
111111
const msg: string = `${label} ${argsStr}${os.EOL}`;
112112

113-
return new Promise<void>( (resolve, _) => {
113+
return new Promise<void>( (resolve) => {
114114
// Send the message to both the 'console' and the logfile.
115115
const consoleFn = level === this.Levels.ERROR ? console.error : console.log;
116116
if (args.length > 0) {

dev/src/microclimate/connection/EventTypes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
// non-nls-file
33

4+
/**
5+
* Socket events we listen for from Microclimate Portal
6+
* See MCSocket
7+
*/
48
enum EventTypes {
59
PROJECT_CHANGED = "projectChanged",
610
PROJECT_STATUS_CHANGED = "projectStatusChanged",

dev/src/microclimate/connection/MCSocket.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ import Translator from "../../constants/strings/translator";
1212
import ProjectState from "../project/ProjectState";
1313
import attachDebuggerCmd from "../../command/AttachDebuggerCmd";
1414

15+
/**
16+
* Receives and reacts to socket events from Portal
17+
*
18+
* Each Connection has exactly one socket
19+
*/
1520
export default class MCSocket {
1621

1722
private static readonly STATUS_SUCCESS: string = "success"; // non-nls
@@ -155,6 +160,9 @@ export default class MCSocket {
155160
Translator.t(StringNamespaces.DEFAULT, "restartDebugAttachFailure",
156161
{ startMode: StartModes.getUserFriendlyStartMode(startMode) })
157162
);
163+
164+
// restart is "done", and failed.
165+
return;
158166
}
159167
}
160168
catch (err) {

dev/src/microclimate/project/ProjectState.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ const KEY_CLOSED_STATE: string = "state"; // non-nls
88
const KEY_START_MODE: string = "startMode"; // non-nls
99
const KEY_BUILD_DETAIL: string = "detailedBuildStatus"; // non-nls
1010

11+
/**
12+
* Represents the project's state in Microclimate. This means app state, build state, and any status details.
13+
*
14+
* Immutable
15+
*/
1116
export class ProjectState {
1217
public readonly appState: ProjectState.AppStates;
1318
public readonly buildState: ProjectState.BuildStates;

mc-vscode.code-workspace

Lines changed: 0 additions & 14 deletions
This file was deleted.

todo.txt

Lines changed: 0 additions & 70 deletions
This file was deleted.

unused.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)