Skip to content

Commit c97dd4b

Browse files
authored
deps: bump @types/vscode to 1.68 #3880
previous: 5439f95
1 parent cc7ad02 commit c97dd4b

File tree

10 files changed

+29
-572
lines changed

10 files changed

+29
-572
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3866,7 +3866,7 @@
38663866
"@types/sinonjs__fake-timers": "^8.1.2",
38673867
"@types/tcp-port-used": "^1.0.1",
38683868
"@types/uuid": "^9.0.1",
3869-
"@types/vscode": "^1.65.0",
3869+
"@types/vscode": "^1.68.0",
38703870
"@types/vscode-webview": "^1.57.1",
38713871
"@types/webpack-env": "^1.18.1",
38723872
"@types/xml2js": "^0.4.11",

src/codewhisperer/service/inlineCompletionItemProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ export class CWInlineCompletionItemProvider implements vscode.InlineCompletionIt
130130
provideInlineCompletionItems(
131131
document: vscode.TextDocument,
132132
position: vscode.Position,
133-
context: vscode.InlineCompletionContext,
134-
token: vscode.CancellationToken
133+
_context: vscode.InlineCompletionContext,
134+
_token: vscode.CancellationToken
135135
): vscode.ProviderResult<vscode.InlineCompletionItem[] | vscode.InlineCompletionList> {
136136
if (position.line < 0 || position.isBefore(this.startPos)) {
137137
application()._clearCodeWhispererUIListener.fire()

src/codewhisperer/util/commonUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function asyncCallWithTimeout<T>(asyncPromise: Promise<T>, message: strin
2626
}
2727

2828
export function isInlineCompletionEnabled() {
29-
return semver.gte(vscode.version, '1.68.0') && getInlineSuggestEnabled() && !isCloud9()
29+
return getInlineSuggestEnabled() && !isCloud9()
3030
}
3131

3232
// This is the VS Code version that started to have regressions in inline completion API

src/shared/ui/inputPrompter.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ export const defaultInputboxOptions: vscode.InputBoxOptions = {
3939
*/
4040
export function createInputBox(options?: ExtendedInputBoxOptions): InputBoxPrompter {
4141
const inputBox = vscode.window.createInputBox() as InputBox
42-
assign({ ...defaultInputboxOptions, ...options }, inputBox)
42+
assign(
43+
{
44+
...defaultInputboxOptions,
45+
...options,
46+
valueSelection: options?.valueSelection as InputBox['valueSelection'],
47+
},
48+
inputBox
49+
)
4350
inputBox.buttons = options?.buttons ?? []
4451

4552
const prompter = new InputBoxPrompter(inputBox)

src/shared/vscode/inlineCompletion.ts

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

0 commit comments

Comments
 (0)