How to use the vscode.Uri.file function in vscode

To help you get started, we’ve selected a few vscode 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 DonJayamanne / pythonVSCode / src / client / common / configSettings.ts View on Github external
constructor(
        workspaceFolder: Resource,
        private readonly interpreterAutoSelectionService: IInterpreterAutoSeletionProxyService,
        workspace?: IWorkspaceService) {
        this.workspace = workspace || new WorkspaceService();
        this.workspaceRoot = workspaceFolder ? workspaceFolder : Uri.file(__dirname);
        this.initialize();
    }
    // tslint:disable-next-line:function-name
github microsoft / vscode-service-fabric-reliable-services / src / yo / index.ts View on Github external
function openFolder(folderPath: string) {
	let uri = Uri.file(folderPath);
	commands.executeCommand('vscode.openFolder', uri);
}
github wx-minapp / minapp-vscode / src / plugin / lib / ScriptFile.ts View on Github external
.forEach(mat => {
      const property = mat[2] || mat[3] || prop
      let pos = getPositionFromIndex(content, mat.index + mat[0].indexOf(property))
      let endPos = new Position(pos.line, pos.character + property.length)
      locs.push({
        loc: new Location(Uri.file(file), new Range(pos, endPos)),
        name: property,
        detail: mat[1] || mat[0],
      })
    })
  return locs
github JohnstonCode / svn-scm / src / repository.ts View on Github external
show(filePath: string) {
    const config = workspace.getConfiguration("files", Uri.file(filePath));
    const encoding = config.get("encoding");

    return this.repository.show(filePath, { encoding });
  }
}

vscode

## ⚠️ Deprecated, use @types/vscode and vscode-test instead ⚠️

MIT
Latest version published 5 years ago

Package Health Score

47 / 100
Full package analysis