Sort imports (#6101)
* add package.json Signed-off-by: Jess Frazelle <github@jessfraz.com> initial run; Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> more fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> clientsidescne Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> paths Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> fix styles Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> combine Signed-off-by: Jess Frazelle <github@jessfraz.com> eslint rule Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> my ocd Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> constants file Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> no more import sceneInfra Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> try fix circular import Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
		@ -1,10 +1,11 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
import * as os from 'os'
 | 
			
		||||
import type { Config } from './config'
 | 
			
		||||
import { log, isValidExecutable } from './util'
 | 
			
		||||
import type { PersistentState } from './persistent_state'
 | 
			
		||||
import { exec } from 'child_process'
 | 
			
		||||
import * as os from 'os'
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
 | 
			
		||||
import type { Config } from './config'
 | 
			
		||||
import type { PersistentState } from './persistent_state'
 | 
			
		||||
import { isValidExecutable, log } from './util'
 | 
			
		||||
 | 
			
		||||
export async function bootstrap(
 | 
			
		||||
  context: vscode.ExtensionContext,
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import * as lc from 'vscode-languageclient/node'
 | 
			
		||||
import type * as vscode from 'vscode'
 | 
			
		||||
import * as lc from 'vscode-languageclient/node'
 | 
			
		||||
 | 
			
		||||
export async function createClient(
 | 
			
		||||
  traceOutputChannel: vscode.OutputChannel,
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,8 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import { spawnSync } from 'child_process'
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
 | 
			
		||||
import type { Cmd, CtxInit } from './ctx'
 | 
			
		||||
import { spawnSync } from 'child_process'
 | 
			
		||||
 | 
			
		||||
export function serverVersion(ctx: CtxInit): Cmd {
 | 
			
		||||
  return async () => {
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,11 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import * as Is from 'vscode-languageclient/lib/common/utils/is'
 | 
			
		||||
import * as os from 'os'
 | 
			
		||||
import * as path from 'path'
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
import { log, type Env } from './util'
 | 
			
		||||
import * as Is from 'vscode-languageclient/lib/common/utils/is'
 | 
			
		||||
 | 
			
		||||
import { expectNotUndefined, unwrapUndefinable } from './undefinable'
 | 
			
		||||
import { type Env, log } from './util'
 | 
			
		||||
 | 
			
		||||
export type RunnableEnvCfgItem = {
 | 
			
		||||
  mask?: string
 | 
			
		||||
 | 
			
		||||
@ -1,20 +1,20 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
import type * as lc from 'vscode-languageclient/node'
 | 
			
		||||
import { TransportKind } from 'vscode-languageclient/node'
 | 
			
		||||
 | 
			
		||||
import { Config, prepareVSCodeConfig } from './config'
 | 
			
		||||
import { bootstrap } from './bootstrap'
 | 
			
		||||
import { createClient } from './client'
 | 
			
		||||
import {
 | 
			
		||||
  isKclDocument,
 | 
			
		||||
  isKclEditor,
 | 
			
		||||
  LazyOutputChannel,
 | 
			
		||||
  log,
 | 
			
		||||
  type KclEditor,
 | 
			
		||||
} from './util'
 | 
			
		||||
import { Config, prepareVSCodeConfig } from './config'
 | 
			
		||||
import type { ServerStatusParams } from './lsp_ext'
 | 
			
		||||
import { PersistentState } from './persistent_state'
 | 
			
		||||
import { bootstrap } from './bootstrap'
 | 
			
		||||
import { TransportKind } from 'vscode-languageclient/node'
 | 
			
		||||
import {
 | 
			
		||||
  type KclEditor,
 | 
			
		||||
  LazyOutputChannel,
 | 
			
		||||
  isKclDocument,
 | 
			
		||||
  isKclEditor,
 | 
			
		||||
  log,
 | 
			
		||||
} from './util'
 | 
			
		||||
 | 
			
		||||
// We only support local folders, not eg. Live Share (`vlsl:` scheme), so don't activate if
 | 
			
		||||
// only those are in use. We use "Empty" to represent these scenarios
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,6 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import type * as vscode from 'vscode'
 | 
			
		||||
 | 
			
		||||
import { log } from './util'
 | 
			
		||||
 | 
			
		||||
export class PersistentState {
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,5 @@
 | 
			
		||||
import * as path from 'path'
 | 
			
		||||
 | 
			
		||||
import { runTests } from '@vscode/test-electron'
 | 
			
		||||
import * as path from 'path'
 | 
			
		||||
 | 
			
		||||
async function main() {
 | 
			
		||||
  try {
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,8 @@
 | 
			
		||||
import * as assert from 'assert'
 | 
			
		||||
 | 
			
		||||
// You can import and use all API from the 'vscode' module
 | 
			
		||||
// as well as import your extension to test it
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
 | 
			
		||||
// import * as myExtension from '../../extension';
 | 
			
		||||
 | 
			
		||||
suite('Extension Test Suite', () => {
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,5 @@
 | 
			
		||||
import * as path from 'path'
 | 
			
		||||
 | 
			
		||||
const Mocha = require('mocha')
 | 
			
		||||
const { glob } = require('glob')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,8 @@
 | 
			
		||||
/* eslint suggest-no-throw/suggest-no-throw: 0 */
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
import { strict as nativeAssert } from 'assert'
 | 
			
		||||
import { exec, type ExecOptions, spawnSync } from 'child_process'
 | 
			
		||||
import { type ExecOptions, exec, spawnSync } from 'child_process'
 | 
			
		||||
import { inspect } from 'util'
 | 
			
		||||
import * as vscode from 'vscode'
 | 
			
		||||
 | 
			
		||||
export interface Env {
 | 
			
		||||
  [name: string]: string
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user