mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-08-30 21:37:25 +00:00
allow skipping bootstrap step and expose github actions extension build in CI on every push
This commit is contained in:
parent
5747a9d9b1
commit
554777d0da
5 changed files with 36 additions and 16 deletions
|
@ -12,6 +12,7 @@ const platforms: { [key: string]: string } = {
|
|||
'x64 win32': 'x86_64-windows-msvc',
|
||||
'x64 linux': 'x86_64-unknown-linux-gnu',
|
||||
'x64 darwin': 'x86_64-apple-darwin',
|
||||
'arm64 darwin': 'aarch64-apple-darwin'
|
||||
}
|
||||
|
||||
export class Extension {
|
||||
|
@ -38,7 +39,11 @@ export class Extension {
|
|||
this.extensionContext = context
|
||||
this.state = new PersistentState(context.globalState)
|
||||
|
||||
if(!process.env['MCSHADER_DEBUG']) await this.bootstrap()
|
||||
if(!process.env['MCSHADER_DEBUG'] && !(vscode.workspace.getConfiguration('mcglsl').get('skipBootstrap') as boolean)) {
|
||||
await this.bootstrap()
|
||||
} else {
|
||||
log.info('skipping language server bootstrap')
|
||||
}
|
||||
|
||||
this.registerCommand('graphDot', commands.generateGraphDot)
|
||||
this.registerCommand('restart', commands.restartExtension)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue