How to use the coc.nvim.workspace.getConfiguration function in coc

To help you get started, we’ve selected a few coc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NullVoxPopuli / coc-ember / src / index.ts View on Github external
function getConfig(): WorkspaceConfiguration {
  let config = workspace.getConfiguration('ember');

  return config;
}
github neoclide / coc-tsserver / src / server / index.ts View on Github external
constructor(private pluginManager: PluginManager) {
    const config = workspace.getConfiguration('tsserver')
    const enableJavascript = !!config.get('enableJavascript')
    this.enable = config.get('enable')
    this.descriptions = standardLanguageDescriptions.filter(o => {
      return enableJavascript ? true : o.id != 'javascript'
    })
    this.selector = this.descriptions.reduce((arr, c) => {
      return arr.concat(c.modeIds)
    }, [])
  }
github neoclide / coc-tsserver / src / server / typescriptServiceClientHost.ts View on Github external
private configurationChanged(): void {
    const config = workspace.getConfiguration('tsserver')
    this.reportStyleCheckAsWarnings = config.get('reportStyleChecksAsWarnings', true)
  }
github neoclide / coc-tsserver / src / server / features / fileConfigurationManager.ts View on Github external
public enableJavascript(): boolean {
    const config = workspace.getConfiguration('tsserver')
    return !!config.get('enableJavascript')
  }

coc

ISC
Latest version published 10 years ago

Package Health Score

40 / 100
Full package analysis