已合并
[bugfix][ide-plugins] #55 更新废弃依赖 #77
[bugfix][ide-plugins] #55 更新废弃依赖 #77
已合并
Qunka创建于 11 天前
5 个文件变更+10-10
@@ -152,7 +152,7 @@
152 "compile:coverage": "webpack --mode none --devtool source-map",152 "compile:coverage": "webpack --mode none --devtool source-map",
153 "watch": "webpack --watch",153 "watch": "webpack --watch",
154 "package": "webpack --mode production --devtool hidden-source-map",154 "package": "webpack --mode production --devtool hidden-source-map",
155- "compile-tests": "rm -rf out/test && tsc -p tsconfig.test.json",155+ "compile-tests": "node -e \"require('fs').rmSync('out/test',{force:true,recursive:true})\" && tsc -p tsconfig.test.json",
156 "watch-tests": "tsc -p . -w --outDir out",156 "watch-tests": "tsc -p . -w --outDir out",
157 "lint": "eslint src test",157 "lint": "eslint src test",
158 "test": "npm run test:coverage",158 "test": "npm run test:coverage",
@@ -182,8 +182,8 @@
182 "json5": "^2.2.3",182 "json5": "^2.2.3",
183 "lodash": "^4.17.21",183 "lodash": "^4.17.21",
184 "strip-ansi": "^7.1.0",184 "strip-ansi": "^7.1.0",
185- "vsce": "^2.15.0",185+ "@vscode/vsce": "^3.7.1",
186- "vscode-debugadapter": "^1.51.0",186+ "@vscode/debugadapter": "^1.68.0",
187- "vscode-debugprotocol": "^1.51.0"187+ "@vscode/debugprotocol": "^1.68.0"
188 }188 }
189}189}
@@ -18,8 +18,8 @@ import * as fs from 'fs';
18import * as path from 'path';18import * as path from 'path';
19import { WorkspaceFolder, DebugConfiguration, CancellationToken, Event, EventEmitter } from 'vscode';19import { WorkspaceFolder, DebugConfiguration, CancellationToken, Event, EventEmitter } from 'vscode';
20import { getBundleName, getDefaultShell, getLibPath, KeelsDeviceManager } from './utils';20import { getBundleName, getDefaultShell, getLibPath, KeelsDeviceManager } from './utils';
21-import { DebugProtocol } from 'vscode-debugprotocol';21+import { DebugProtocol } from '@vscode/debugprotocol';
22-import { TerminatedEvent } from 'vscode-debugadapter';22+import { TerminatedEvent } from '@vscode/debugadapter';
23import { executeSDK } from './keelsCreate';23import { executeSDK } from './keelsCreate';
24import { KeelsDebugAdapterConfigProvider } from './keelsDebugConfigProvider';24import { KeelsDebugAdapterConfigProvider } from './keelsDebugConfigProvider';
25import { RemotePlatform } from './types';25import { RemotePlatform } from './types';
@@ -221,7 +221,7 @@ export class KeelsDebugAdapter implements vscode.DebugAdapter {
221 command: 'setBreakpoints',221 command: 'setBreakpoints',
222 success: true,222 success: true,
223 body: {223 body: {
224- breakpoints: args.lines?.map(line => ({ verified: true, line })) || []224+ breakpoints: args.lines?.map((line: number) => ({ verified: true, line })) || []
225 }225 }
226 };226 };
227 this.sendMessage(response);227 this.sendMessage(response);
@@ -16,7 +16,7 @@
16import * as assert from 'assert';16import * as assert from 'assert';
17import * as path from 'path';17import * as path from 'path';
18import * as vscode from 'vscode';18import * as vscode from 'vscode';
19-import { DebugProtocol } from 'vscode-debugprotocol';19+import { DebugProtocol } from '@vscode/debugprotocol';
20 20 
21import { createKeelsDebugAdapterForTest, KeelsConfigurationProvider } from '../../src/keelsRun';21import { createKeelsDebugAdapterForTest, KeelsConfigurationProvider } from '../../src/keelsRun';
22import { RemotePlatform } from '../../src/types';22import { RemotePlatform } from '../../src/types';
@@ -17,7 +17,7 @@ import * as assert from 'assert';
17import * as fs from 'fs';17import * as fs from 'fs';
18import * as path from 'path';18import * as path from 'path';
19import * as vscode from 'vscode';19import * as vscode from 'vscode';
20-import { DebugProtocol } from 'vscode-debugprotocol';20+import { DebugProtocol } from '@vscode/debugprotocol';
21 21 
22import { createKeelsDebugAdapterForTest, KeelsDebugAdapter } from '../../src/keelsRun';22import { createKeelsDebugAdapterForTest, KeelsDebugAdapter } from '../../src/keelsRun';
23import { KeelsDebugAdapterConfigProvider } from '../../src/keelsDebugConfigProvider';23import { KeelsDebugAdapterConfigProvider } from '../../src/keelsDebugConfigProvider';
@@ -18,7 +18,7 @@ import * as fs from 'fs';
18import * as os from 'os';18import * as os from 'os';
19import * as path from 'path';19import * as path from 'path';
20import * as vscode from 'vscode';20import * as vscode from 'vscode';
21-import { DebugProtocol } from 'vscode-debugprotocol';21+import { DebugProtocol } from '@vscode/debugprotocol';
22 22 
23import {23import {
24 KeelsDebugAdapter,24 KeelsDebugAdapter,