已合并
[bugfix][ide-plugins] #55 更新废弃依赖 #77
Qunka创建于 11 天前
[bugfix][ide-plugins] #55 更新废弃依赖 #77
已合并
共 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'; | |||
| 18 | import * as path from 'path'; | 18 | import * as path from 'path'; |
| 19 | import { WorkspaceFolder, DebugConfiguration, CancellationToken, Event, EventEmitter } from 'vscode'; | 19 | import { WorkspaceFolder, DebugConfiguration, CancellationToken, Event, EventEmitter } from 'vscode'; |
| 20 | import { getBundleName, getDefaultShell, getLibPath, KeelsDeviceManager } from './utils'; | 20 | import { 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'; |
| 23 | import { executeSDK } from './keelsCreate'; | 23 | import { executeSDK } from './keelsCreate'; |
| 24 | import { KeelsDebugAdapterConfigProvider } from './keelsDebugConfigProvider'; | 24 | import { KeelsDebugAdapterConfigProvider } from './keelsDebugConfigProvider'; |
| 25 | import { RemotePlatform } from './types'; | 25 | import { 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 @@ | |||
| 16 | import * as assert from 'assert'; | 16 | import * as assert from 'assert'; |
| 17 | import * as path from 'path'; | 17 | import * as path from 'path'; |
| 18 | import * as vscode from 'vscode'; | 18 | import * as vscode from 'vscode'; |
| 19 | -import { DebugProtocol } from 'vscode-debugprotocol'; | 19 | +import { DebugProtocol } from '@vscode/debugprotocol'; |
| 20 | 20 | ||
| 21 | import { createKeelsDebugAdapterForTest, KeelsConfigurationProvider } from '../../src/keelsRun'; | 21 | import { createKeelsDebugAdapterForTest, KeelsConfigurationProvider } from '../../src/keelsRun'; |
| 22 | import { RemotePlatform } from '../../src/types'; | 22 | import { RemotePlatform } from '../../src/types'; |
| @@ -17,7 +17,7 @@ import * as assert from 'assert'; | |||
| 17 | import * as fs from 'fs'; | 17 | import * as fs from 'fs'; |
| 18 | import * as path from 'path'; | 18 | import * as path from 'path'; |
| 19 | import * as vscode from 'vscode'; | 19 | import * as vscode from 'vscode'; |
| 20 | -import { DebugProtocol } from 'vscode-debugprotocol'; | 20 | +import { DebugProtocol } from '@vscode/debugprotocol'; |
| 21 | 21 | ||
| 22 | import { createKeelsDebugAdapterForTest, KeelsDebugAdapter } from '../../src/keelsRun'; | 22 | import { createKeelsDebugAdapterForTest, KeelsDebugAdapter } from '../../src/keelsRun'; |
| 23 | import { KeelsDebugAdapterConfigProvider } from '../../src/keelsDebugConfigProvider'; | 23 | import { KeelsDebugAdapterConfigProvider } from '../../src/keelsDebugConfigProvider'; |
| @@ -18,7 +18,7 @@ import * as fs from 'fs'; | |||
| 18 | import * as os from 'os'; | 18 | import * as os from 'os'; |
| 19 | import * as path from 'path'; | 19 | import * as path from 'path'; |
| 20 | import * as vscode from 'vscode'; | 20 | import * as vscode from 'vscode'; |
| 21 | -import { DebugProtocol } from 'vscode-debugprotocol'; | 21 | +import { DebugProtocol } from '@vscode/debugprotocol'; |
| 22 | 22 | ||
| 23 | import { | 23 | import { |
| 24 | KeelsDebugAdapter, | 24 | KeelsDebugAdapter, |