-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #504 from CodinGame/update-vscode-1.94
Update to VSCode 1.94
- Loading branch information
Showing
194 changed files
with
12,869 additions
and
8,797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
jsxSingleQuote: true, | ||
trailingComma: 'none', | ||
semi: false, | ||
printWidth: 100 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@codingame/commitlint-config-codingame'] | ||
}; | ||
extends: ['@codingame/commitlint-config-codingame'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,45 @@ | ||
import { ExtensionHostKind, registerExtension } from 'vscode/extensions' | ||
|
||
const { getApi } = registerExtension({ | ||
name: 'aiDemo', | ||
publisher: 'codingame', | ||
version: '1.0.0', | ||
engines: { | ||
vscode: '*' | ||
const { getApi } = registerExtension( | ||
{ | ||
name: 'aiDemo', | ||
publisher: 'codingame', | ||
version: '1.0.0', | ||
engines: { | ||
vscode: '*' | ||
}, | ||
contributes: { | ||
commands: [ | ||
{ | ||
command: 'aiSuggestedCommand', | ||
title: 'This is a command suggested by the AI' | ||
} | ||
] | ||
}, | ||
enabledApiProposals: ['aiRelatedInformation'] | ||
}, | ||
contributes: { | ||
commands: [{ | ||
command: 'aiSuggestedCommand', | ||
title: 'This is a command suggested by the AI' | ||
}] | ||
}, | ||
enabledApiProposals: ['aiRelatedInformation'] | ||
}, ExtensionHostKind.LocalProcess, { | ||
system: true // to be able to use api proposals | ||
}) | ||
ExtensionHostKind.LocalProcess, | ||
{ | ||
system: true // to be able to use api proposals | ||
} | ||
) | ||
|
||
void getApi().then(async vscode => { | ||
void getApi().then(async (vscode) => { | ||
vscode.commands.registerCommand('aiSuggestedCommand', () => { | ||
void vscode.window.showInformationMessage('Hello', { | ||
detail: 'You just run the AI suggested command', | ||
modal: true | ||
}) | ||
}) | ||
vscode.ai.registerRelatedInformationProvider(vscode.RelatedInformationType.CommandInformation, { | ||
provideRelatedInformation () { | ||
return [{ | ||
type: vscode.RelatedInformationType.CommandInformation, | ||
command: 'aiSuggestedCommand', | ||
weight: 9999 | ||
}] | ||
provideRelatedInformation() { | ||
return [ | ||
{ | ||
type: vscode.RelatedInformationType.CommandInformation, | ||
command: 'aiSuggestedCommand', | ||
weight: 9999 | ||
} | ||
] | ||
} | ||
}) | ||
}) |
Oops, something went wrong.