Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 5fb638c

Browse files
colin-grant-workkenneth-marut-workpaul-marechalTomas Sisohore
authored
Memory Inspector: UI and UX Updates and New Features (#119)
* Wrap packages in latest Theia Signed-off-by: Colin Grant <[email protected]> Signed-off-by: Kenneth Marut <[email protected]> Co-authored-by: Colin Grant <[email protected]> Co-authored-by: Kenneth Marut <[email protected]> * Use 'long' library to handle addresses In theory, we could have problems reading addresses as JS numbers, since JS numbers don't have full 64 bits precision. This patch makes use of the 'long' library, which stores 64-bit numbers as two 32-bit halves. Signed-off-by: Vincent Fugnitto <[email protected]> Signed-off-by: Simon Marchi <[email protected]> Signed-off-by: Paul Maréchal <[email protected]> * Prototype showing variables in memory view This patch makes it so we hightlight the local variables of the current frame in the memory view. The idea is simple, we get the size and address of all locals of the current frame through GDB (sizeof(foo) and &foo). If the bytes backing these variables are in the scope of the memory view, we highlight them with a different color for each variable. Signed-off-by: Simon Marchi <[email protected]> Signed-off-by: Paul Maréchal <[email protected]> Signed-off-by: Vincent Fugnitto <[email protected]> * Rework UI and frontend of memory viewer Signed-off-by: Colin Grant <[email protected]> Signed-off-by: Kenneth Marut <[email protected]> Signed-off-by: Tomas Sisohore <[email protected]> Co-authored-by: Colin Grant <[email protected]> Co-authored-by: Kenneth Marut <[email protected]> Co-authored-by: Tomas Sisohore <[email protected]> * Update to use newest CDT-GDB Signed-off-by: Colin Grant <[email protected]> * Base 64 Signed-off-by: Colin Grant <[email protected]> * Implement MemoryProviderService, retain GDB & DAP compatibility Co-authored-by: Kenneth Marut <[email protected]> Co-authored-by: Paul Maréchal <[email protected]> Co-authored-by: Tomas Sisohore <[email protected]>
1 parent 0a5deb4 commit 5fb638c

File tree

105 files changed

+20506
-1687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+20506
-1687
lines changed

.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
module.exports = {
3+
root: true,
4+
extends: [
5+
'./configs/base.eslintrc.json',
6+
'./configs/warnings.eslintrc.json',
7+
'./configs/errors.eslintrc.json',
8+
'./configs/xss.eslintrc.json'
9+
],
10+
ignorePatterns: [
11+
'**/{node_modules,lib}',
12+
'plugins'
13+
],
14+
parserOptions: {
15+
tsconfigRootDir: __dirname,
16+
project: 'tsconfig.json'
17+
}
18+
};

.gitignore

+30-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
1-
/**/*.log
2-
/**/.browser_modules
3-
/**/.nyc_output
4-
/**/errorShots
5-
/**/examples/cpp-debug-workspace/build/
6-
/**/lib
7-
/**/node_modules
8-
/**/src-gen
9-
/**/webpack.config.js
10-
/**/yarn.lock
11-
gen-webpack.config.js
12-
/**/plugins
1+
.DS_Store
2+
node_modules
3+
build
4+
lib
5+
*.log
6+
.idea
7+
.metadata
8+
*.iml
9+
jdt.ls-java-project
10+
lerna-debug.log
11+
.nyc_output
12+
coverage
13+
errorShots
14+
examples/*/src-gen
15+
examples/*/gen-webpack.config.js
16+
examples/*/.theia
17+
examples/*/.vscode
18+
examples/*/.test
19+
.browser_modules
20+
**/docs/api
21+
package-backup.json
22+
.history
23+
.Trash-*
24+
packages/plugin/typedoc
25+
plugins
26+
gh-pages
27+
.vscode/ipch
28+
dev-packages/electron/compile_commands.json
29+
*.tsbuildinfo
30+
.eslintcache

.npmignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.DS_Store
2+
node_modules
3+
build
4+
*.log
5+
.idea
6+
.metadata
7+
jdt.ls-java-project
8+
lerna-debug.log
9+
.nyc_output
10+
coverage
11+
.browser_modules
12+
download
13+
*ui-spec.ts
14+
*slow-spec.ts
15+
test-resources

.theia/settings.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.insertSpaces": true,
4+
"[typescript]": {
5+
"editor.tabSize": 4
6+
},
7+
"[json]": {
8+
"editor.tabSize": 2
9+
},
10+
"[jsonc]": {
11+
"editor.tabSize": 2
12+
},
13+
"typescript.tsdk": "node_modules/typescript/lib",
14+
"clang-format.language.typescript.enable": false
15+
}

.vscode/c_cpp_properties.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "@theia/electron (Linux)",
5+
"compileCommands": "${workspaceFolder}/dev-packages/electron/compile_commands.json",
6+
"defines": [],
7+
"cStandard": "c89",
8+
"intelliSenseMode": "${default}"
9+
},
10+
{
11+
"name": "@theia/electron Debug (Windows)",
12+
"compileCommands": "${workspaceFolder}\\dev-packages\\electron\\Debug\\compile_commands.json",
13+
"defines": [],
14+
"cStandard": "c89",
15+
"intelliSenseMode": "${default}"
16+
},
17+
{
18+
"name": "@theia/electron Release (Windows)",
19+
"compileCommands": "${workspaceFolder}\\dev-packages\\electron\\Release\\compile_commands.json",
20+
"defines": [],
21+
"cStandard": "c89",
22+
"intelliSenseMode": "${default}"
23+
}
24+
],
25+
"version": 4
26+
}

.vscode/extensions.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"dbaeumer.vscode-eslint"
7+
],
8+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
9+
"unwantedRecommendations": []
10+
}

.vscode/settings.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// If one would like to add/remove/modify user preferences without modifying the content of the
2+
// workspace settings file, then one would need to modify the `settings.json` under here:
3+
// - Windows: %APPDATA%\Code\User\settings.json
4+
// - Linux: $HOME/.config/Code/User/settings.json
5+
// - Mac: $HOME/Library/Application Support/Code/User/settings.json
6+
{
7+
"tslint.enable": true,
8+
"editor.formatOnSave": true,
9+
"search.exclude": {
10+
"**/node_modules": true,
11+
"**/lib": true,
12+
"**/coverage": true
13+
},
14+
"lcov.path": [
15+
"packages/core/coverage/lcov.info",
16+
"packages/editor/coverage/lcov.info",
17+
"packages/filesystem/coverage/lcov.info",
18+
"packages/go/coverage/lcov.info",
19+
"packages/java/coverage/lcov.info",
20+
"packages/languages/coverage/lcov.info",
21+
"packages/monaco/coverage/lcov.info",
22+
"packages/navigator/coverage/lcov.info",
23+
"packages/keymaps/coverage/lcov.info",
24+
"packages/preferences/coverage/lcov.info",
25+
"packages/process/coverage/lcov.info",
26+
"packages/python/coverage/lcov.info",
27+
"packages/terminal/coverage/lcov.info",
28+
"packages/workspace/coverage/lcov.info",
29+
"packages/task/coverage/lcov.info",
30+
"packages/monaco-textmate/coverage/lcov.info"
31+
],
32+
"lcov.watch": [
33+
{
34+
"pattern": "**/*.spec.ts",
35+
"command": "yarn test:theia"
36+
}
37+
],
38+
"editor.insertSpaces": true,
39+
"[typescript]": {
40+
"editor.tabSize": 4,
41+
"editor.defaultFormatter": "vscode.typescript-language-features",
42+
},
43+
"[javascript]": {
44+
"editor.tabSize": 4,
45+
"editor.defaultFormatter": "vscode.typescript-language-features"
46+
},
47+
"[json]": {
48+
"editor.tabSize": 2,
49+
"editor.defaultFormatter": "vscode.json-language-features",
50+
},
51+
"[jsonc]": {
52+
"editor.tabSize": 2,
53+
"editor.defaultFormatter": "vscode.json-language-features",
54+
},
55+
"typescript.tsdk": "node_modules/typescript/lib",
56+
"files.insertFinalNewline": true,
57+
"clang-format.language.typescript.enable": false,
58+
"editor.rulers": [
59+
180
60+
], // ESLint `max-len` rule.
61+
}

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unsafe-disable-integrity-migration true

browser-app/compile.tsconfig.json

-9
This file was deleted.

browser-app/package.json

-46
This file was deleted.

configs/base.eslintrc.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"sourceType": "module",
5+
"ecmaVersion": 6,
6+
"ecmaFeatures": {
7+
"jsx": true
8+
}
9+
},
10+
"plugins": [
11+
"@theia",
12+
"@typescript-eslint",
13+
"@typescript-eslint/tslint",
14+
"import",
15+
"no-null"
16+
],
17+
"env": {
18+
"browser": true,
19+
"mocha": true,
20+
"node": true
21+
},
22+
"ignorePatterns": [
23+
"node_modules",
24+
"lib"
25+
]
26+
}

configs/base.tsconfig.json

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"compilerOptions": {
3-
"skipLibCheck": true,
4-
"declaration": true,
5-
"declarationMap": true,
6-
"noImplicitAny": true,
7-
"noEmitOnError": false,
8-
"noImplicitThis": true,
9-
"noUnusedLocals": true,
10-
"strictNullChecks": true,
11-
"experimentalDecorators": true,
12-
"emitDecoratorMetadata": true,
13-
"downlevelIteration": true,
14-
"resolveJsonModule": true,
15-
"module": "commonjs",
16-
"moduleResolution": "node",
17-
"target": "es5",
18-
"jsx": "react",
19-
"lib": [
20-
"es6",
21-
"dom"
22-
],
23-
"sourceMap": true
24-
}
2+
"compilerOptions": {
3+
"skipLibCheck": true,
4+
"declaration": true,
5+
"declarationMap": true,
6+
"noImplicitAny": true,
7+
"noEmitOnError": false,
8+
"noImplicitThis": true,
9+
"noUnusedLocals": true,
10+
"strictNullChecks": true,
11+
"experimentalDecorators": true,
12+
"emitDecoratorMetadata": true,
13+
"downlevelIteration": true,
14+
"resolveJsonModule": true,
15+
"module": "commonjs",
16+
"moduleResolution": "node",
17+
"target": "es5",
18+
"jsx": "react",
19+
"lib": [
20+
"es6",
21+
"dom"
22+
],
23+
"sourceMap": true
24+
}
2525
}

configs/build.eslintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"./base.eslintrc.json",
4+
"./errors.eslintrc.json"
5+
]
6+
}

configs/build.tslint.json

-8
This file was deleted.

0 commit comments

Comments
 (0)